MBMSettings.h 973 B

12345678910111213141516171819202122232425262728293031323334
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. /** Settings class provides non-persistent, in-process key-value storage. */
  4. NS_SWIFT_NAME(Settings)
  5. __attribute__((visibility ("default")))
  6. __attribute__((deprecated))
  7. @interface MBMSettings : NSObject
  8. // This class provides custom init which should be called
  9. - (nonnull instancetype)init NS_UNAVAILABLE;
  10. // This class provides custom init which should be called
  11. + (nonnull instancetype)new NS_UNAVAILABLE;
  12. /**
  13. * Sets setting value for a specified key.
  14. *
  15. * @param key A name of the key.
  16. * @param value The `value` for the key.
  17. */
  18. + (void)setForKey:(nonnull NSString *)key
  19. value:(nonnull id)value;
  20. /**
  21. * Return value for a key.
  22. *
  23. * @param key A name of the key.
  24. *
  25. * @return `value` if a key exists in settings otherwise a `null value` will be returned.
  26. */
  27. + (nonnull id)getForKey:(nonnull NSString *)key __attribute((ns_returns_retained));
  28. @end