1 |
efrain |
1 |
// Copyright 2019 Google
|
|
|
2 |
//
|
|
|
3 |
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
4 |
// you may not use this file except in compliance with the License.
|
|
|
5 |
// You may obtain a copy of the License at
|
|
|
6 |
//
|
|
|
7 |
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
8 |
//
|
|
|
9 |
// Unless required by applicable law or agreed to in writing, software
|
|
|
10 |
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
12 |
// See the License for the specific language governing permissions and
|
|
|
13 |
// limitations under the License.
|
|
|
14 |
|
|
|
15 |
#import <Foundation/Foundation.h>
|
|
|
16 |
|
|
|
17 |
extern NSString *const FIRCLSUserDefaultsPathComponent;
|
|
|
18 |
|
|
|
19 |
@interface FIRCLSUserDefaults : NSObject
|
|
|
20 |
|
|
|
21 |
+ (instancetype)standardUserDefaults;
|
|
|
22 |
|
|
|
23 |
- (id)objectForKey:(NSString *)key;
|
|
|
24 |
- (NSString *)stringForKey:(NSString *)key;
|
|
|
25 |
- (BOOL)boolForKey:(NSString *)key;
|
|
|
26 |
- (NSInteger)integerForKey:(NSString *)key;
|
|
|
27 |
|
|
|
28 |
- (void)setObject:(id)object forKey:(NSString *)key;
|
|
|
29 |
- (void)setString:(NSString *)string forKey:(NSString *)key;
|
|
|
30 |
- (void)setBool:(BOOL)boolean forKey:(NSString *)key;
|
|
|
31 |
- (void)setInteger:(NSInteger)integer forKey:(NSString *)key;
|
|
|
32 |
|
|
|
33 |
- (void)removeObjectForKey:(NSString *)key;
|
|
|
34 |
- (void)removeAllObjects;
|
|
|
35 |
|
|
|
36 |
- (NSDictionary *)dictionaryRepresentation;
|
|
|
37 |
|
|
|
38 |
- (void)migrateFromNSUserDefaults:(NSArray *)keysToMigrate;
|
|
|
39 |
- (id)objectForKeyByMigratingFromNSUserDefaults:(NSString *)keyToMigrateOrNil;
|
|
|
40 |
- (void)synchronize;
|
|
|
41 |
|
|
|
42 |
@end
|