Open ClassFoundation5.9.0
UserDefaults
class UserDefaults
Superclasses
class NSObject
The root class of most Foundation class hierarchies.
Citizens in Foundation
Conformances
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol NSObjectProtocol
The
NSObjectProtocol
groups methods that are fundamental to all Foundation objects.
Members
convenience init(
) init?(suiteName: String?
) nil suite means use the default search list that +standardUserDefaults uses
static let argumentDomain: String
static let didChangeNotification: NSNotification.Name
static let globalDomain: String
static let registrationDomain: String
class var standard: UserDefaults
class func resetStandardUserDefaults(
) var volatileDomainNames: [String]
func addSuite(named: String
) func array(forKey: String
) -> [Any]? func bool(forKey: String
) -> Bool func data(forKey: String
) -> Data? func dictionary(forKey: String
) -> [String : Any]? func dictionaryRepresentation(
) -> [String : Any] func double(forKey: String
) -> Double func float(forKey: String
) -> Float func integer(forKey: String
) -> Int func object(forKey: String
) -> Any? func objectIsForced(forKey: String
) -> Bool func objectIsForced(forKey: String, inDomain: String
) -> Bool func persistentDomain(forName: String
) -> [String : Any]? func register(defaults: [String : Any]
) func removeObject(forKey: String
) func removePersistentDomain(forName: String
) func removeSuite(named: String
) func removeVolatileDomain(forName: String
) func set(URL
?, forKey: String) func set(Bool, forKey: String
) func set(Double, forKey: String
) func set(Float, forKey: String
) func set(Int, forKey: String
) func set(Any
?, forKey: String) func setPersistentDomain([String : Any], forName: String
) func setVolatileDomain([String : Any], forName: String
) func string(forKey: String
) -> String? func stringArray(forKey: String
) -> [String]? func synchronize(
) -> Bool func url(forKey: String
) -> URL? func volatileDomain(forName: String
) -> [String : Any]