android-components / mozilla.components.service.experiments / Configuration
Configuration
data class Configuration
(source)
The Configuration class describes how to configure Experiments.
Constructors
Name | Summary |
---|---|
<init> |
Configuration(httpClient: Client , kintoEndpoint: String = ExperimentsUpdater.KINTO_ENDPOINT_PROD) The Configuration class describes how to configure Experiments. |
Properties
Name | Summary |
---|---|
httpClient |
val httpClient: Client The HTTP client implementation to use for uploading pings. |
kintoEndpoint |
val kintoEndpoint: String the endpoint to fetch experiments from, must be one of: ExperimentsUpdater.KINTO_ENDPOINT_DEV, ExperimentsUpdater.KINTO_ENDPOINT_STAGING, or ExperimentsUpdater.KINTO_ENDPOINT_PROD |
Extension Functions
Name | Summary |
---|---|
loadResourceAsString |
fun Any .loadResourceAsString(path: String ): String Loads a file from the resources folder and returns its content as a string object. |