Skip to main content

DefaultCoreDataAdapterProvider

Default implementation of the AdapterProvider. Creates a CoreDataAdapter for the the given NSManagedObjectContext and record zone ID.

@objc public class DefaultCoreDataAdapterProvider: NSObject, AdapterProvider 

Inheritance#

AdapterProvider, NSObject

Initializers#

init(managedObjectContext:zoneID:appGroup:)#

Create a new model adapter provider.

@objc public init(managedObjectContext: NSManagedObjectContext, zoneID: CKRecordZone.ID, appGroup: String? = nil) 

Parameters#

  • managedObjectContext: NSManagedObjectContext to be used by the model adapter.
  • zoneID: CKRecordZone.ID to be used by the model adapter.
  • appGroup: Optional app group.

Properties#

adapter#

public private(set) var adapter: CoreDataAdapter!

Methods#

cloudKitSynchronizer(_:modelAdapterForRecordZoneID:)#

public func cloudKitSynchronizer(_ synchronizer: CloudKitSynchronizer, modelAdapterForRecordZoneID recordZoneID: CKRecordZone.ID) -> ModelAdapter? 

cloudKitSynchronizer(_:zoneWasDeletedWithZoneID:)#

public func cloudKitSynchronizer(_ synchronizer: CloudKitSynchronizer, zoneWasDeletedWithZoneID recordZoneID: CKRecordZone.ID)