AnalyticsManager
AnalyticsManager
Package: com.salesforce.marketingcloud.mobileappmessaging.analytics
SDK Version: Mobile App Messaging SDK v1.1.0 (Salesforce Marketing Cloud Unified SDK 11.0.0)
Platform: androidJvm
Overview
1interface AnalyticsManagerPublic 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
analyticsEnabledconfiguration 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
areAnalyticsEnabled
1abstract fun areAnalyticsEnabled(): BooleanIndicates whether the MobileAppMessaging analytics are enabled or disabled.
Returns: Boolean - The current analytics state
Note: The state is determined by the analyticsEnabled configuration parameter.
disableAnalytics
1abstract 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.
enableAnalytics
1abstract 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.
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!