Skip to main content

DefaultRealmAdapterProvider

@objc public class DefaultRealmAdapterProvider: NSObject, AdapterProvider 

Inheritance#

AdapterProvider, NSObject

Initializers#

init(targetConfiguration:zoneID:appGroup:)#

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

Properties#

zoneID#

@objc public let zoneID: CKRecordZone.ID

persistenceConfiguration#

@objc public let persistenceConfiguration: RLMRealmConfiguration

targetConfiguration#

@objc public let targetConfiguration: RLMRealmConfiguration

appGroup#

@objc public let appGroup: String?

adapter#

@objc public private(set) var adapter: RealmAdapter!

Methods#

cloudKitSynchronizer(_:modelAdapterForRecordZoneID:)#

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

cloudKitSynchronizer(_:zoneWasDeletedWithZoneID:)#

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

realmPath(appGroup:)#

public static func realmPath(appGroup: String?) -> String 
  • If using app groups, SyncKit offers the option to store its tracking database in the shared container so that it's
  • accessible by SyncKit from any of the apps in the group. This method returns the path used in this case.
  • @param appGroup Identifier of an App Group this app belongs to.
  • @return File path, in the shared container, where SyncKit will store its tracking database.