MBMSettings

Deprecated


@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

    A name of the key.

    value

    The value for the key.

  • Return value for a key.

    Declaration

    Objective-C

    + (nonnull id)getForKey:(nonnull NSString *)key;

    Swift

    class func getForKey(_ key: String) -> Any

    Parameters

    key

    A name of the key.

    Return Value

    value if a key exists in settings otherwise a null value will be returned.