Proyectos de Subversion Iphone Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
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
#if __has_include(<FBLPromises/FBLPromises.h>)
18
#import <FBLPromises/FBLPromises.h>
19
#else
20
#import "FBLPromises.h"
21
#endif
22
 
23
@class FIRCLSApplicationIdentifierModel;
24
@class FIRCLSDataCollectionToken;
25
@class FIRCLSFileManager;
26
@class FIRCLSInstallIdentifierModel;
27
@class FIRCLSSettings;
28
 
29
NS_ASSUME_NONNULL_BEGIN
30
 
31
/**
32
 * Use this class to retrieve remote settings for the application from crashlytics backend.
33
 */
34
@interface FIRCLSSettingsManager : NSObject
35
 
36
/**
37
 * Designated Initializer.
38
 */
39
- (instancetype)initWithAppIDModel:(FIRCLSApplicationIdentifierModel *)appIDModel
40
                    installIDModel:(FIRCLSInstallIdentifierModel *)installIDModel
41
                          settings:(FIRCLSSettings *)settings
42
                       fileManager:(FIRCLSFileManager *)fileManager
43
                       googleAppID:(NSString *)googleAppID NS_DESIGNATED_INITIALIZER;
44
- (instancetype)init NS_UNAVAILABLE;
45
+ (instancetype)new NS_UNAVAILABLE;
46
 
47
/**
48
 * This method kicks off downloading settings for the app.
49
 * @param googleAppID (required) GMP id for the app.
50
 * @param token (required) Data collection token signifying we can make network calls
51
 */
52
- (void)beginSettingsWithGoogleAppId:(NSString *)googleAppID
53
                               token:(FIRCLSDataCollectionToken *)token;
54
 
55
@end
56
 
57
NS_ASSUME_NONNULL_END