googleDirectionLibrary / com.akexorcist.googledirection.config / GoogleDirectionConfiguration

GoogleDirectionConfiguration

open class GoogleDirectionConfiguration

Configuration class for the Google Direction Library.

Since
1.0.0

Constructors

<init>

GoogleDirectionConfiguration()

Configuration class for the Google Direction Library.

Functions

getCustomClient

open fun getCustomClient(): OkHttpClient

Get the custom OkHttpClient

getInstance

open static fun getInstance(): GoogleDirectionConfiguration

Call the class with singleton pattern

isLogEnabled

open fun isLogEnabled(): Boolean

Is the API request logging enable or disable

setCustomClient

open fun setCustomClient(customClient: OkHttpClient): Unit

Set the custom OkHttpClient to replace the default client in this library

setLogEnabled

open fun setLogEnabled(logEnabled: Boolean): Unit

Enable or disable the API request logging (Powered by OkHttp Logging Interceptor)