CloudStorage
public protocol CloudStorage : StorageInterface
The CloudStorage
represents StorageInterface
s that are synchronized from a cloud-based store.
-
The
NSURL
that points to the store fileDeclaration
Swift
var cacheFileURL: URL { get }
-
Options that tell the
DataStack
how to setup the persistent storeDeclaration
Swift
var cloudStorageOptions: CloudStorageOptions { get }
-
The options dictionary for the specified
CloudStorageOptions
Declaration
Swift
func dictionary(forOptions options: CloudStorageOptions) -> [AnyHashable : Any]?
-
Called by the
DataStack
to perform actual deletion of the store file from disk. Do not call directly! ThesourceModel
argument is a hint for the existing store’s model version. Implementers can use thesourceModel
to perform necessary store operations. (Cloud stores for example, can set the NSPersistentStoreRemoveUbiquitousMetadataOption option before deleting)Declaration
Swift
func cs_eraseStorageAndWait(soureModel: NSManagedObjectModel) throws