Skip to main content

DefaultRealmSwiftAdapterProvider

public class DefaultRealmSwiftAdapterProvider: NSObject, AdapterProvider 

Inheritance#

AdapterProvider, NSObject

Initializers#

init(targetConfiguration:zoneID:appGroup:)#

public init(targetConfiguration: Realm.Configuration, zoneID: CKRecordZone.ID, appGroup: String? = nil) 

Properties#

adapter#

public private(set) var adapter: RealmSwiftAdapter!

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.