configureArcGISHttpClient

Configures the ArcGISEnvironment with a new ArcGISHttpClient. Configuring a new ArcGISHttpClient should be done on application initialization, before any network requests may be invoked by the API or user code.

Note that calling this function will cause the previous ArcGISEnvironment.arcGISHttpClient to be closed and any calls on the old instance will fail.

For example, configure the ArcGISHttpClient with a network request interceptor :

ArcGISEnvironment.configureArcGISHttpClient {
interceptor(myInterceptor)
}

Since

200.2.0

Parameters

configure

a function called with an ArcGISHttpClient.Builder receiver, which can be used to configure a new ArcGISHttpClient. Passing null creates an ArcGISHttpClient with a default configuration.

See also