Protocols
The following protocols are available globally.
-
A protocol indicating that a update listener can be cancelled.
Implementations of this protocol must call the
See morecancel
function ondeinit
.Declaration
Swift
public protocol Cancellable : AnyObject, Hashable
-
A protocol that indicates that a value can be stored in
NSUbiquitousKeyValueStore
. This protocol is used to provide type safety and should not be conformed to outside of Persist.Declaration
Swift
public protocol StorableInNSUbiquitousKeyValueStore
-
A protocol that defines the interface to store, remove, and retrieve values by a string key.
See moreDeclaration
Swift
public protocol Storage : AnyObject
-
A protocol that indicates a type that can perform transformations of values.
See moreDeclaration
Swift
public protocol Transformer
-
A protocol that indicates that a value can be stored in
UserDefaults
. This protocol is used to provide type safety and should not be conformed to outside of Persist.Declaration
Swift
public protocol StorableInUserDefaults