object Glean (source)
In contrast with other glean-ac classes (i.e. Configuration), we can’t
use typealias to export mozilla.telemetry.glean.Glean, as we need to provide
a different default Configuration. Moreover, we can’t simply delegate other
methods or inherit, since that doesn’t work for
object in Kotlin.
Get whether or not Glean is allowed to record and upload data.
Register the pings generated from
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.
Indicate that an experiment is no longer running.
Enable or disable Glean collection and upload.
Returns the stored data for the requested active experiment, for testing purposes only.
Tests whether an experiment is active, for testing purposes only.
Loads a file from the resources folder and returns its content as a string object.