create
Service
fun <S> createService( serviceClass: Class<S>, okhttpClient: OkHttpClient, baseURl: String): S
Content copied to clipboard
Method to create Service with Retrofit without adapter factory
Return
instance of S used for interacting with web service
Parameters
serviceClass
the class service to create
okhttpClient
okHttpClient, with defined header
baseURl
Base Url for endpoint