Proyectos de Subversion Iphone Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
/*
2
 * Copyright 2019 Google
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *      http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
 
17
#import <FirebaseRemoteConfig/FIRRemoteConfig.h>
18
#import "RCNConfigSettings.h"  // This import is needed to expose settings for the Swift API tests.
19
 
20
@class FIROptions;
21
@class RCNConfigContent;
22
@class RCNConfigDBManager;
23
@class RCNConfigFetch;
24
@protocol FIRAnalyticsInterop;
25
 
26
NS_ASSUME_NONNULL_BEGIN
27
 
28
@class RCNConfigSettings;
29
 
30
@interface FIRRemoteConfig () {
31
  NSString *_FIRNamespace;
32
}
33
 
34
/// Internal settings
35
@property(nonatomic, readonly, strong) RCNConfigSettings *settings;
36
 
37
/// Config settings are custom settings.
38
@property(nonatomic, readwrite, strong, nonnull) RCNConfigFetch *configFetch;
39
 
40
/// Returns the FIRRemoteConfig instance for your namespace and for the default Firebase App.
41
/// This singleton object contains the complete set of Remote Config parameter values available to
42
/// the app, including the Active Config and Default Config.. This object also caches values fetched
43
/// from the Remote Config Server until they are copied to the Active Config by calling
44
/// activateFetched. When you fetch values from the Remote Config Server using the default Firebase
45
/// namespace service, you should use this class method to create a shared instance of the
46
/// FIRRemoteConfig object to ensure that your app will function properly with the Remote Config
47
/// Server and the Firebase service. This API is used internally by 2P teams.
48
+ (FIRRemoteConfig *)remoteConfigWithFIRNamespace:(NSString *)remoteConfigNamespace
49
    NS_SWIFT_NAME(remoteConfig(FIRNamespace:));
50
 
51
/// Returns the FIRRemoteConfig instance for your namespace and for the default 3P developer's app.
52
/// This singleton object contains the complete set of Remote Config parameter values available to
53
/// the app, including the Active Config and Default Config. This object also caches values fetched
54
/// from the Remote Config Server until they are copied to the Active Config by calling
55
/// activateFetched. When you fetch values from the Remote Config Server using the default Firebase
56
/// namespace service, you should use this class method to create a shared instance of the
57
/// FIRRemoteConfig object to ensure that your app will function properly with the Remote Config
58
/// Server and the Firebase service.
59
+ (FIRRemoteConfig *)remoteConfigWithFIRNamespace:(NSString *)remoteConfigNamespace
60
                                              app:(FIRApp *)app
61
    NS_SWIFT_NAME(remoteConfig(FIRNamespace:app:));
62
 
63
/// Initialize a FIRRemoteConfig instance with all the required parameters directly. This exists so
64
/// tests can create FIRRemoteConfig objects without needing FIRApp.
65
- (instancetype)initWithAppName:(NSString *)appName
66
                     FIROptions:(FIROptions *)options
67
                      namespace:(NSString *)FIRNamespace
68
                      DBManager:(RCNConfigDBManager *)DBManager
69
                  configContent:(RCNConfigContent *)configContent
70
                      analytics:(nullable id<FIRAnalyticsInterop>)analytics;
71
 
72
@end
73
 
74
NS_ASSUME_NONNULL_END