commit | author | age
|
2e29a3
|
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 |
NS_ASSUME_NONNULL_BEGIN |
|
12 |
|
|
13 |
/// An internal protocol used to describe a simple data store |
|
14 |
NS_SWIFT_NAME(DataPersisting) |
|
15 |
@protocol FBSDKDataPersisting |
|
16 |
|
|
17 |
- (void)setInteger:(NSInteger)value |
|
18 |
forKey:(NSString *)defaultName; |
|
19 |
- (void)setObject:(id)value |
|
20 |
forKey:(NSString *)defaultName; |
|
21 |
- (nullable NSData *)dataForKey:(NSString *)defaultName; |
|
22 |
- (NSInteger)integerForKey:(NSString *)defaultName; |
|
23 |
- (nullable NSString *)stringForKey:(NSString *)defaultName; |
|
24 |
- (nullable id)objectForKey:(NSString *)defaultName; |
|
25 |
- (void)removeObjectForKey:(NSString *)defaultName; |
|
26 |
|
|
27 |
@end |
|
28 |
|
|
29 |
NS_ASSUME_NONNULL_END |