Type Method

removeUbiquitousContentAndPersistentStore(at:options:)

Deletes all ubiquitous content for all peers for the persistent store at a given URL and also delete the local store file.

Declaration

class func removeUbiquitousContentAndPersistentStore(at storeURL: URL, options: [AnyHashable : Any]? = nil) throws

Parameters

storeURL

The URL of the store to delete.

options

A dictionary containing the options normally passed to addPersistentStore(ofType:configurationName:at:options:).

error

If the operation fails, upon return contains an NSError object that describes the problem.

Return Value

true if the store was deleted, otherwise false.

Discussion

Errors may be returned as a result of file I/O, iCloud network or iCloud account issues.

See Also

Deprecated

static let NSPersistentStoreDidImportUbiquitousContentChanges: NSNotification.Name

Posted after records are imported from the ubiquitous content store.

Deprecated
enum NSPersistentStoreUbiquitousTransitionType

These constants are used as the value corresponding to the NSPersistentStoreUbiquitousTransitionTypeKey in the user info dictionary of NSPersistentStoreCoordinatorStoresWillChange and NSPersistentStoreCoordinatorStoresDidChange notifications to identify the type of event leading to a change.

Deprecated
class func metadataForPersistentStore(ofType: String?, at: URL) -> [String : Any]

Returns a dictionary containing the metadata stored in the persistent store at a given URL.

Deprecated
func unlock()

Relinquishes a previously acquired lock.

Deprecated
func lock()

Attempts to acquire a lock.

Deprecated
func tryLock() -> Bool

Attempts to acquire a lock.

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software