VOPersistManager
@interface VOPersistManager : NSObject <VOPersistManagerProtocol>
VOPersistManager
is the default implementation of the VOPersistManagerProtocol
.
It is responsible for saving values indefinitely. By default it uses NSUserDefaults to save values.
-
Default initializer for
VOPersistManager
.Declaration
Objective-C
- (nonnull instancetype)initWithUserDefaults: (nonnull NSUserDefaults *)userDefaults;
Swift
init(userDefaults: UserDefaults)
Parameters
userDefaults
- The NSUserDefaults object to be used by the
VOPersistManager
to save data.Return Value
Instance of
VOPersistManager
.