NSUserDefaults+BUCrypt.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // NSUserDefaults+BUCrypt.h
  3. // BUFoundation
  4. //
  5. // Created by Willie on 2020/9/11.
  6. // Copyright © 2020 bytedance. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface NSUserDefaults (BUCrypt)
  11. - (void)setValue:(nullable id)value
  12. forKey:(NSString *)key
  13. crypt:(BOOL)crypt
  14. error:(NSError **)error __attribute__((deprecated("This method will become invalid in version 4300, please use '[BUPersistence commonPersistence] setObject:forkey'")));
  15. - (nullable id)valueForKey:(NSString *)defaultName
  16. crypt:(BOOL)crypt
  17. error:(NSError **)error __attribute__((deprecated("This method will become invalid in version 4300, please use '[BUPersistence commonPersistence] objectForKey:'")));
  18. - (void)removeObjectForKey:(NSString *)defaultName
  19. crypt:(BOOL)crypt
  20. error:(NSError **)error __attribute__((deprecated("This method will become invalid in version 4300, please use '[BUPersistence commonPersistence] removeObjectsForKeys:'")));;
  21. - (void)bu_synchronize;
  22. @end
  23. NS_ASSUME_NONNULL_END