aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Core/Private/FIRAnalyticsConfiguration+Internal.h
diff options
context:
space:
mode:
authorGravatar Ryan Wilson <wilsonryan@google.com>2018-05-21 21:49:57 -0400
committerGravatar GitHub <noreply@github.com>2018-05-21 21:49:57 -0400
commit503d2debdddd85331ce2e8556bbd50d53f3aa19d (patch)
tree609f6d8a584f91c081f5b80d383b46d3234ef813 /Firebase/Core/Private/FIRAnalyticsConfiguration+Internal.h
parent11933c038df81f57c0e7d15f5a8795b74e874843 (diff)
Add conformance to data collection switch for Analytics. (#1296)
* Add conformance to data collection switch for Analytics. * Fix method documentation per PR comments.
Diffstat (limited to 'Firebase/Core/Private/FIRAnalyticsConfiguration+Internal.h')
-rw-r--r--Firebase/Core/Private/FIRAnalyticsConfiguration+Internal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Firebase/Core/Private/FIRAnalyticsConfiguration+Internal.h b/Firebase/Core/Private/FIRAnalyticsConfiguration+Internal.h
index 8ea4cea..be624b4 100644
--- a/Firebase/Core/Private/FIRAnalyticsConfiguration+Internal.h
+++ b/Firebase/Core/Private/FIRAnalyticsConfiguration+Internal.h
@@ -37,3 +37,13 @@ static NSString *const kFIRAnalyticsConfigurationSetMinimumSessionIntervalNotifi
@"FIRAnalyticsConfigurationSetMinimumSessionIntervalNotification";
static NSString *const kFIRAnalyticsConfigurationSetSessionTimeoutIntervalNotification =
@"FIRAnalyticsConfigurationSetSessionTimeoutIntervalNotification";
+
+@interface FIRAnalyticsConfiguration (Internal)
+
+/// Sets whether analytics collection is enabled for this app on this device, and a flag to persist
+/// the value or not. The setting should not be persisted if being set by the global data collection
+/// flag.
+- (void)setAnalyticsCollectionEnabled:(BOOL)analyticsCollectionEnabled
+ persistSetting:(BOOL)shouldPersist;
+
+@end