MCRecordable
public protocol MCRecordable
The MCRecordable protocol ensures that any conforming instances have what is necessary to be recorded in the cloud database. Conformance to this protocol is also necessary to interact with the Magic Cloud framework.
-
This is a token used with cloudkit to build CKRecordID for this object’s CKRecord.
Declaration
Swift
var recordType: String
-
This dictionary has to match all of the keys used in CKRecord in order for version conflicts and retry attempts to succeed. Its values should match the associated fields in CKRecord.
Declaration
Swift
var recordFields: Dictionary<String, CKRecordValue>
-
A record identifier used to store and recover conforming instance’s record. This ID is used to construct records and references, as well as query and fetch from the cloud database.
Warning
Must be unique in the database.Declaration
Swift
var recordID: CKRecordID
-
This init w/out parameters creates an empty recordable that can be overwritten by
prepare(from:)
global method.Declaration
Swift
init()