FIRAnalyticsConfiguration.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #import <Foundation/Foundation.h>
  2. /**
  3. * This class provides configuration fields for Firebase Analytics.
  4. */
  5. @interface FIRAnalyticsConfiguration : NSObject
  6. /**
  7. * Returns the shared instance of FIRAnalyticsConfiguration.
  8. */
  9. + (FIRAnalyticsConfiguration *)sharedInstance;
  10. /**
  11. * Sets the minimum engagement time in seconds required to start a new session. The default value
  12. * is 10 seconds.
  13. */
  14. - (void)setMinimumSessionInterval:(NSTimeInterval)minimumSessionInterval;
  15. /**
  16. * Sets the interval of inactivity in seconds that terminates the current session. The default
  17. * value is 1800 seconds (30 minutes).
  18. */
  19. - (void)setSessionTimeoutInterval:(NSTimeInterval)sessionTimeoutInterval;
  20. /**
  21. * Sets whether analytics collection is enabled for this app on this device. This setting is
  22. * persisted across app sessions. By default it is enabled.
  23. */
  24. - (void)setAnalyticsCollectionEnabled:(BOOL)analyticsCollectionEnabled;
  25. /**
  26. * Deprecated. Sets whether measurement and reporting are enabled for this app on this device. By
  27. * default they are enabled.
  28. */
  29. - (void)setIsEnabled:(BOOL)isEnabled
  30. DEPRECATED_MSG_ATTRIBUTE("Use setAnalyticsCollectionEnabled: instead.");
  31. @end