Package-level declarations

Types

Link copied to clipboard

The consent settings set with setConsent, mirroring com.google.firebase.analytics.ConsentBuilder.

Link copied to clipboard
actual class FirebaseAnalytics
actual class FirebaseAnalytics

Real code over the platform SDK through native; see the common declaration.

expect class FirebaseAnalytics

The entry point of Firebase Analytics, mirroring com.google.firebase.analytics.FirebaseAnalytics; obtained with com.google.firebase.Firebase.analytics.

actual class FirebaseAnalytics

Real code over the platform SDK through native; see the common declaration.

actual class FirebaseAnalytics

Real code over the platform SDK through native; see the common declaration.

actual class FirebaseAnalytics

Real code over the platform SDK through native; see the common declaration.

Link copied to clipboard

The parameters of an event logged with logEvent, mirroring com.google.firebase.analytics.ParametersBuilder.

Properties

Link copied to clipboard
val <Error class: unknown class>.analytics: FirebaseAnalytics

The FirebaseAnalytics of the default app.

Functions

Link copied to clipboard
inline fun FirebaseAnalytics.logEvent(name: String, block: ParametersBuilder.() -> Unit)

Logs name with the parameters set in block, e.g. logEvent(FirebaseAnalytics.Event.LOGIN) { param(FirebaseAnalytics.Param.METHOD, "email") }.

Link copied to clipboard

Sets the consent settings assigned in block, e.g. setConsent { adStorage = FirebaseAnalytics.ConsentStatus.GRANTED }.