DefaultCoreDataAdapterProvider
Default implementation of the AdapterProvider
. Creates a CoreDataAdapter
for the the given NSManagedObjectContext
and record zone ID.
@objc public class DefaultCoreDataAdapterProvider: NSObject, AdapterProvider
#
InheritanceAdapterProvider
, NSObject
#
Initializersinit(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.
#
Propertiesadapter
#
public private(set) var adapter: CoreDataAdapter!
#
MethodscloudKitSynchronizer(_:modelAdapterForRecordZoneID:)
#
public func cloudKitSynchronizer(_ synchronizer: CloudKitSynchronizer, modelAdapterForRecordZoneID recordZoneID: CKRecordZone.ID) -> ModelAdapter?
cloudKitSynchronizer(_:zoneWasDeletedWithZoneID:)
#
public func cloudKitSynchronizer(_ synchronizer: CloudKitSynchronizer, zoneWasDeletedWithZoneID recordZoneID: CKRecordZone.ID)