FirebaseAnalytics
Real code over the platform SDK through native; see the common declaration.
The entry point of Firebase Analytics, mirroring com.google.firebase.analytics.FirebaseAnalytics; obtained with com.google.firebase.Firebase.analytics.
On Android this class is a header stub for the real one (its bytecode is deleted after compilation); on the other platforms it is real code over the platform SDK through an internal NativeAnalytics. On the JVM it is a no-op, as firebase-java-sdk has no analytics. The JS SDK has no session timeout, session ID or analytics data reset (sessions are managed by gtag): on JS and wasmJs setSessionTimeoutDuration and resetAnalyticsData do nothing, getSessionId completes with null, and the three carry @dev.gitlive.firebase.UnsupportedOnJs, so code compiled for JS gets a warning until it opts in.
The Event, Param and UserProperty names are compile-time constants in the Android SDK (static finals); here they are vals with the same values, as an expect declaration cannot be const. Compare, match and concatenate them as usual, but off Android they cannot initialize a const val or be an annotation argument.
Real code over the platform SDK through native; see the common declaration.
Real code over the platform SDK through native; see the common declaration.
Real code over the platform SDK through native; see the common declaration.
Types
The recommended event names.
The recommended event names.
The recommended event names.
The recommended event names.
The recommended event names.
The recommended event names.
The recommended parameter names.
The recommended parameter names.
The recommended parameter names.
The recommended parameter names.
The recommended parameter names.
The recommended parameter names.
The recommended user property names.
The recommended user property names.
The recommended user property names.
The recommended user property names.
The recommended user property names.
The recommended user property names.
Properties
Functions
The app instance ID when it is known synchronously (Android, Apple), else null.
Completes with null: the JS SDK has no session ID (sessions are managed by gtag).
Completes with null: the JS SDK has no session ID (sessions are managed by gtag).
Does nothing: the JS SDK has no analytics data reset.
Does nothing: the JS SDK has no analytics data reset.
Sets the consent settings assigned in block, e.g. setConsent { adStorage = FirebaseAnalytics.ConsentStatus.GRANTED }.
Parameters added to every event; null clears them.
The session timeout in milliseconds.
The session timeout in milliseconds.
Does nothing: the JS SDK has no session timeout (sessions are managed by gtag).
The session timeout in milliseconds.
Does nothing: the JS SDK has no session timeout (sessions are managed by gtag).