-
Adds the contents of the specified dictionary to the registration domain.
Declaration
Swift
func register(defaults registration: [StoreKey : Any])
Parameters
defaults
The dictionary of keys and values you want to register.
-
Returns the
StorageData
associated with the specifiedStoreKey
.Declaration
Swift
func data<D>(forKey key: StoreKey) -> D? where D : StorageData
Parameters
key
A
StoreKey
in storage. -
Sets the value of the specified
StoreKey
to the specifiedStorageData
.Declaration
Swift
func set<D>(_ data: D?, forKey key: StoreKey) where D : StorageData
Parameters
data
StorageData
to store.key
The
StoreKey
with which to associate the value.