object Glean
(source)
enum class PingEvent
Enumeration of different metric lifetimes. |
fun getMetricsEnabled(): Boolean
Get the status of metrics enabled. |
|
fun handleEvent(pingEvent: PingEvent): Job
Handle an event and send the appropriate pings. |
|
fun initialize(applicationContext: Context, configuration: Configuration): Unit
Initialize glean. |
|
fun setExperimentActive(experimentId: String, branch: String, extra: Map<String, String>? = null): Unit
Indicate that an experiment is running. Glean will then add an experiment annotation to the environment which is sent with pings. This information is not persisted between runs. |
|
fun setExperimentInactive(experimentId: String): Unit
Indicate that an experiment is no longer running. |
|
fun setMetricsEnabled(enabled: Boolean): Unit
Enable or disable metric collection. |