MCSubscriber
public class MCSubscriber: SubscriptionErrorHandler
This public class handles Magic Cloud’s CKQuerySubscriptions, allowing for receivers to be listen for changes while handling any errors that might arise.
-
This public class handles Magic Cloud’s CKQuerySubscriptions, allowing for receivers to be listen for changes while handling any errors that might arise (does NOT currently work with generic error handling).
Declaration
Swift
public init(forRecordType type: String, withConditions triggers: CKQuerySubscriptionOptions = [.firesOnRecordUpdate, .firesOnRecordDeletion, .firesOnRecordCreation], on db: MCDatabase = .publicDB)Parameters
typeCKRecord.recordType that subscription listens for changes with.
triggersCKQuerySubscriptionOptions for subscription.
dbDatabaseType for subscription to be registered to.
MCSubscriber Class Reference