MBMSettings
@interface MBMSettings : NSObject
Settings class provides non-persistent, in-process key-value storage.
-
Unavailable
Undocumented
Declaration
Objective-C
- (nonnull instancetype)init NS_UNAVAILABLE;
-
Unavailable
Undocumented
Declaration
Objective-C
+ (nonnull instancetype)new NS_UNAVAILABLE;
-
Sets setting value for a specified key.
Declaration
Objective-C
+ (void)setForKey:(nonnull NSString *)key value:(nonnull id)value;
Swift
class func setForKey(_ key: String, value: Any)
Parameters
key
- Key
value
- Value
-
Return value for provided key.
Declaration
Objective-C
+ (nonnull id)getForKey:(nonnull NSString *)key;
Swift
class func getForKey(_ key: String) -> Any
Parameters
key
- Key
Return Value
Value if key is presented in settings otherwise - NullValue