Package zendesk.core
Class CustomNetworkConfig
- java.lang.Object
- 
- zendesk.core.CustomNetworkConfig
 
- 
 
 public abstract class CustomNetworkConfig extends java.lang.ObjectAbstract class for customising network configuration, to be used by Zendesk SDKs in conjunction withRestServiceProvider#createRestService(Class, CustomNetworkConfig). It provides a way to add custom configuration to theOkHttpClientandRetrofitobjects used to power a generated Retrofit service API class, through implementing the configuration methods. Both are empty by default. This class should not be used directly by integrators.
- 
- 
Constructor SummaryConstructors Constructor and Description CustomNetworkConfig()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidconfigureOkHttpClient(OkHttpClient.Builder builder)Add custom configuration to theOkHttpClient.Builderwhich will be used by the object returned byRestServiceProvider#createRestService(Class, CustomNetworkConfig).voidconfigureRetrofit(Retrofit.Builder builder)Add custom configuration to theRetrofit.Builderwhich will be used by the object returned byRestServiceProvider#createRestService(Class, CustomNetworkConfig).
 
- 
- 
- 
Method Detail- 
configureOkHttpClientpublic void configureOkHttpClient(OkHttpClient.Builder builder) Add custom configuration to theOkHttpClient.Builderwhich will be used by the object returned byRestServiceProvider#createRestService(Class, CustomNetworkConfig).- Parameters:
- builder- a- OkHttpClient.Builderwith starting configuration from the Zendesk Core SDK.
 
 - 
configureRetrofitpublic void configureRetrofit(Retrofit.Builder builder) Add custom configuration to theRetrofit.Builderwhich will be used by the object returned byRestServiceProvider#createRestService(Class, CustomNetworkConfig).- Parameters:
- builder- a- Retrofit.Builderwith starting configuration from the Zendesk Core SDK.
 
 
- 
 
-