One Logo Pool Ball
CloudKit · IOS API REFERENCE

CKRecord.ID

class · iOS 8.0+ · SDK 27.1

class ID

Members (4)

init · iOS 8.0+

init

TypeScript
static initRecordName(recordName: string): CKRecord_ID
Swift declaration
convenience init(recordName: String)
get · iOS 8.0+

recordName

TypeScript
get recordName(): string
Swift declaration
var recordName: String { get }
get · iOS 8.0+

zoneID

TypeScript
get zoneID(): CKRecordZone_ID
Swift declaration
@NSCopying var zoneID: CKRecordZone.ID { get }
init · iOS 8.0+

init

TypeScript
static initRecordNameZoneID(recordName?: string, zoneID?: CKRecordZone_ID): CKRecord_ID
Swift declaration
convenience init(recordName: String = UUID().uuidString, zoneID: CKRecordZone.ID = CKRecordZone.ID.default)

Creates a new record ID with the specified name and zone information. - Parameters: - recordName: The name that identifies the record. The string must contain only ASCII characters, must not exceed 255 characters, and must not start with an underscore. If you specify an empty string for this parameter, the method throws an exception. - zoneID: The ID of the record zone where you want to store the record. This parameter must not be `nil`. Use this method when you create or search for records in a zone other than the default zone. The value in the `zoneID` parameter must represent a zone that already exists in the database. If the record zone doesn't exist, save the corresponding ``CKRecordZone`` object to the database before attempting to save any ``CKRecord`` objects in that zone.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

CKRecord.ID.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All CloudKit types →