File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,10 @@ - (void)postNotificationName:(NSString *)name value:(id)value {
39
39
userInfo: @{name : value}];
40
40
}
41
41
42
+ - (void )setAnalyticsCollectionEnabled : (BOOL )analyticsCollectionEnabled {
43
+ [self setAnalyticsCollectionEnabled: analyticsCollectionEnabled persistSetting: YES ];
44
+ }
45
+
42
46
- (void )setAnalyticsCollectionEnabled : (BOOL )analyticsCollectionEnabled
43
47
persistSetting : (BOOL )shouldPersist {
44
48
// Persist the measurementEnabledState. Use FIRAnalyticsEnabledState values instead of YES/NO.
Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ static NSString *const kFIRAnalyticsConfigurationSetSessionTimeoutIntervalNotifi
43
43
// / Returns the shared instance of FIRAnalyticsConfiguration.
44
44
+ (FIRAnalyticsConfiguration *)sharedInstance ;
45
45
46
+ // Sets whether analytics collection is enabled for this app on this device. This setting is
47
+ // persisted across app sessions. By default it is enabled.
48
+ - (void )setAnalyticsCollectionEnabled : (BOOL )analyticsCollectionEnabled ;
49
+
46
50
// / Sets whether analytics collection is enabled for this app on this device, and a flag to persist
47
51
// / the value or not. The setting should not be persisted if being set by the global data collection
48
52
// / flag.
You can’t perform that action at this time.
0 commit comments