T
- Type parameter.public abstract class MapboxService<T> extends Object
Constructor and Description |
---|
MapboxService() |
Modifier and Type | Method and Description |
---|---|
abstract void |
cancelCall() |
abstract retrofit2.Call<T> |
cloneCall() |
abstract void |
enqueueCall(retrofit2.Callback<T> callback) |
abstract retrofit2.Response<T> |
executeCall() |
okhttp3.Call.Factory |
getCallFactory()
Gets the call factory for creating
Call instances. |
static String |
getHeaderUserAgent(String clientAppName)
Computes a full user agent header of the form: MapboxJava/1.2.0 Mac OS X/10.11.5 (x86_64)
|
okhttp3.OkHttpClient |
getOkHttpClient()
Used Internally.
|
boolean |
isEnableDebug() |
void |
setCallFactory(okhttp3.Call.Factory callFactory)
Specify a custom call factory for creating
Call instances. |
void |
setEnableDebug(boolean enableDebug) |
public abstract retrofit2.Response<T> executeCall() throws IOException
IOException
public abstract void enqueueCall(retrofit2.Callback<T> callback)
public abstract void cancelCall()
public abstract retrofit2.Call<T> cloneCall()
public boolean isEnableDebug()
public void setEnableDebug(boolean enableDebug)
public okhttp3.Call.Factory getCallFactory()
Call
instances.public void setCallFactory(okhttp3.Call.Factory callFactory)
Call
instances.callFactory
- implementationpublic okhttp3.OkHttpClient getOkHttpClient()
© 2015–2016 Mapbox. All rights reserved.