PlatformAnalytics

Interface to abstract platform-specific functionalities, primarily for analytics and related services that differ between product flavors.

Properties

Link copied to clipboard

Indicates whether platform-specific services (like Google Play Services or Datadog) are available and initialized.

Functions

Link copied to clipboard
abstract fun setDeviceAttributes(firmwareVersion: String, model: String)

Sets device-specific attributes (e.g., firmware version, hardware model) for analytics.

Link copied to clipboard
abstract fun track(event: String, vararg properties: DataPair)
Link copied to clipboard
open fun trackConnect(firmwareVersion: String?, transportType: String?, hardwareModel: String?, nodes: Int, connectionRestored: Boolean)

Tracks a successful device connection as a custom RUM action, aligned with the Meshtastic-Apple DataDog integration for cross-platform analytics comparison.