lpw
2023-07-20 80f7cc0c18ce7e590a4c14cd1011a82b296770f5
commit | author | age
e0ec42 1 /*
L 2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  * All rights reserved.
4  *
5  * This source code is licensed under the license found in the
6  * LICENSE file in the root directory of this source tree.
7  */
8
9 #import <Foundation/Foundation.h>
10
11 #import <FBSDKCoreKit_Basics/FBSDKLinking.h>
12
13 NS_ASSUME_NONNULL_BEGIN
14
15 /// An internal protocol used to describe a simple data store
16 NS_SWIFT_NAME(DataPersisting)
17 @protocol FBSDKDataPersisting
18
19 - (void)fb_setInteger:(NSInteger)integer
20                forKey:(NSString *)key;
21 - (void)fb_setObject:(id)object
22               forKey:(NSString *)key;
23 - (nullable NSData *)fb_dataForKey:(NSString *)key;
24 - (NSInteger)fb_integerForKey:(NSString *)key;
25 - (nullable NSString *)fb_stringForKey:(NSString *)key;
26 - (nullable id)fb_objectForKey:(NSString *)key;
27 - (void)fb_removeObjectForKey:(NSString *)key;
28
29 @end
30
31 FB_LINK_CATEGORY_INTERFACE(NSUserDefaults, DataPersisting)
32 @interface NSUserDefaults (DataPersisting) <FBSDKDataPersisting>
33
34 @end
35
36 NS_ASSUME_NONNULL_END