DataStoreStorageType
@objcMembers
open class DataStoreStorageType : NSObject
Constants that provide information regarding storage type of data store manager.
-
Creates a new instance with the specified raw value.
If there is no value of the type that corresponds with the specified string value, this initializer returns nil.
Declaration
Swift
public required init?(rawValue: String)
Parameters
rawValue
The raw value to use for the new instance.
-
Creates a new instance with the specified raw value.
Declaration
Swift
init(_ rawValue: String)
Parameters
rawValue
The raw value to use for the new instance.
-
The corresponding value of the raw type.
Declaration
Swift
public final var rawValue: String
-
The storage type UserDefaults.
Declaration
Swift
public static let userDefaults: DataStoreStorageType
-
The storage type FileManager with the search path document directory (
~/Documents
).Declaration
Swift
public static let documentDirectory: DataStoreStorageType
-
The storage type FileManager with the search path user home directories (
/Users
).Declaration
Swift
public static let userDirectory: DataStoreStorageType
-
The storage type FileManager with the search path various user-visible documentation, support, and configuration files (
/Library
).Declaration
Swift
public static let libraryDirectory: DataStoreStorageType
-
The storage type FileManager with the search path supported applications (
/Applications
).Declaration
Swift
public static let applicationDirectory: DataStoreStorageType
-
The storage type FileManager with the search path core services (
/System/Library/CoreServices
).Declaration
Swift
public static let coreServiceDirectory: DataStoreStorageType
-
The storage type FileManager with the temporary directory for the current user (
/tmp
).Declaration
Swift
public static let temporaryDirectory: DataStoreStorageType
-
The storage type NSCache.
Declaration
Swift
public static let cache: DataStoreStorageType
-
The storage type Security with kSecClass value defined as kSecClassGenericPassword.
Declaration
Swift
public static let genericKeychain: DataStoreStorageType
-
The storage type Security with kSecClass value defined as kSecClassGenericPassword.
Declaration
Swift
public static let internetKeychain: DataStoreStorageType
-
The storage type CoreData.
Declaration
Swift
public static let coreData: DataStoreStorageType
-
The storage type CloudKit with privateCloudDatabase.
Declaration
Swift
public static let privateCloudDatabase: DataStoreStorageType
-
The storage type CloudKit with publicCloudDatabase.
Declaration
Swift
public static let publicCloudDatabase: DataStoreStorageType
-
The storage type CloudKit with sharedCloudDatabase.
Declaration
Swift
public static let sharedCloudDatabase: DataStoreStorageType
-
The storage type NSUbiquitousKeyValueStore.
Declaration
Swift
public static let ubiquitousCloudStore: DataStoreStorageType
-
A collection of all values of this type.
Declaration
Swift
public static var allCases: [DataStoreStorageType] { get }
-
Setup entities before DataStoreStorageType receives its first message.
Declaration
Swift
public static func setupEntities()
-
A textual representation of this instance.
Declaration
Swift
open override var description: String { get }
-
A textual representation of this instance, suitable for debugging.
Declaration
Swift
open override var debugDescription: String { get }