Skip to content

About

No description, website, or topics provided.

Resources

Stars

6 stars

Watchers

13 watching

Forks

Repository files navigation

experiment-android-client

Android Client SDK for Experiment

Getting Started

See the Documentation for getting started.

Custom HTTP client

Experiment uses a shared OkHttp client by default for variant and flag configuration requests. To customize networking, supply a caller-owned OkHttpClient as the call factory when building the configuration:

val httpClient = OkHttpClient.Builder()
    .dns(myDns)
    .build()
val config = ExperimentConfig.builder()
    .callFactory(httpClient)
    .build()

Pass config to Experiment.initialize or Experiment.initializeWithAmplitudeAnalytics. The factory applies to both request types. Set it before the first initialization of an instance name and API key; later initialization calls for that instance return the existing client. Experiment does not change or close the supplied factory. Other Amplitude SDK network traffic is unaffected.

About

No description, website, or topics provided.

Resources

Stars

6 stars

Watchers

13 watching

Forks

Releases

Packages

Used by

Contributors

Languages