AnalyticsManager

Public interface for interacting with the MobileAppMessaging Analytics features. Provides status checking and configuration-based analytics control following SDK patterns.

Note: Analytics state is controlled by the analyticsEnabled configuration parameter and cannot be changed at runtime. The enable/disable methods are provided for API compatibility but will only log warnings about the current configuration state.

Functions

Link copied to clipboard
abstract fun areAnalyticsEnabled(): Boolean

Indicates whether the MobileAppMessaging analytics are enabled or disabled. The state is determined by the analyticsEnabled configuration parameter.

Link copied to clipboard
abstract fun disableAnalytics()

Disable analytics collection. Note: Analytics state is controlled by configuration and cannot be changed at runtime. This method logs a warning about the current configuration state.

Link copied to clipboard
abstract fun enableAnalytics()

Enable analytics collection. Note: Analytics state is controlled by configuration and cannot be changed at runtime. This method logs a warning about the current configuration state.