Skip navigation links
A B C E F G H I J M O P S T 

A

ApiCallHelper - Class in com.mapbox.core.utils
Static class with methods for assisting in making Mapbox API calls.

B

BASE_API_URL - Static variable in class com.mapbox.core.constants.Constants
Base URL for all API calls, not hardcoded to enable testing.
baseUrl() - Method in class com.mapbox.core.MapboxService
Should return base url for retrofit calls.

C

cancelCall() - Method in class com.mapbox.core.MapboxService
Wrapper method for Retrofits Call.cancel() call, important to manually cancel call if the user dismisses the calling activity or no longer needs the returned results.
checkNotNull(Object, String) - Static method in class com.mapbox.core.internal.Preconditions
Checks if the passed in value is not Null.
cloneCall() - Method in class com.mapbox.core.MapboxService
Wrapper method for Retrofits Call.clone() call, useful for getting call information.
ColorUtils - Class in com.mapbox.core.utils
Utils class for assisting with color transformations and other operations being done on colors.
com.mapbox.core - package com.mapbox.core
Contains common classes and methods shared between all other service modules.
com.mapbox.core.constants - package com.mapbox.core.constants
Contains the core service constant values useful for all other modules.
com.mapbox.core.exceptions - package com.mapbox.core.exceptions
Contains a simple services runtime exception which can be used throughout the project.
com.mapbox.core.internal - package com.mapbox.core.internal
Contains simple precondition checks which can be used throughout the project.
com.mapbox.core.utils - package com.mapbox.core.utils
Contains classes with utilities useful throughout the project.
Constants - Class in com.mapbox.core.constants
Includes common variables used throughout the Mapbox Service modules.

E

enableDebug(boolean) - Method in class com.mapbox.core.MapboxService
Enable for more verbose log output while making request.
enqueueCall(Callback<T>) - Method in class com.mapbox.core.MapboxService
Wrapper method for Retrofits Call.enqueue(Callback) call returning a response specific to the API implementing this class.
executeCall() - Method in class com.mapbox.core.MapboxService
Wrapper method for Retrofits Call.execute() call returning a response specific to the API implementing this class.

F

formatApproaches(String[]) - Static method in class com.mapbox.core.utils.TextUtils
Deprecated.
use FormatUtils.formatApproaches(List)
formatBearing(List<Double[]>) - Static method in class com.mapbox.core.utils.TextUtils
Deprecated.
use FormatUtils.formatBearing(List)
formatCoordinate(double) - Static method in class com.mapbox.core.utils.TextUtils
Useful to remove any trailing zeros and prevent a coordinate being over 7 significant figures.
formatCoordinate(double, int) - Static method in class com.mapbox.core.utils.TextUtils
Allows the specific adjusting of a coordinates precision.
formatDistributions(List<Integer[]>) - Static method in class com.mapbox.core.utils.TextUtils
Deprecated.
use FormatUtils.formatDistributions(List)
formatRadiuses(double[]) - Static method in class com.mapbox.core.utils.TextUtils
Deprecated.
use FormatUtils.formatRadiuses(List)
formatWaypointNames(String[]) - Static method in class com.mapbox.core.utils.TextUtils
Deprecated.
use FormatUtils.formatWaypointNames(List)

G

getCall() - Method in class com.mapbox.core.MapboxService
Get call if already created, otherwise get it from subclass implementation.
getCallFactory() - Method in class com.mapbox.core.MapboxService
Gets the call factory for creating Call instances.
getGsonBuilder() - Method in class com.mapbox.core.MapboxService
Gets the GsonConverterFactory.
getHeaderUserAgent(String) - Static method in class com.mapbox.core.utils.ApiCallHelper
Computes a full user agent header of the form: MapboxJava/1.2.0 Mac OS X/10.11.5 (x86_64).
getHeaderUserAgent(String, String, String, String) - Static method in class com.mapbox.core.utils.ApiCallHelper
Computes a full user agent header of the form: MapboxJava/1.2.0 Mac OS X/10.11.5 (x86_64).
getOkHttpClient() - Method in class com.mapbox.core.MapboxService
Used Internally.
getRetrofit() - Method in class com.mapbox.core.MapboxService
Returns the retrofit instance.
getService() - Method in class com.mapbox.core.MapboxService
Creates the Retrofit object and the service if they are not already created.

H

HEADER_USER_AGENT - Static variable in class com.mapbox.core.constants.Constants
User agent for HTTP requests.

I

initializeCall() - Method in class com.mapbox.core.MapboxService
Abstract method for getting Retrofit Call from the subclass.
isAccessTokenValid(String) - Static method in class com.mapbox.core.utils.MapboxUtils
Checks that the provided access token is not empty or null, and that it starts with the right prefixes.
isEmpty(CharSequence) - Static method in class com.mapbox.core.utils.TextUtils
Returns true if the string is null or 0-length.
isEnableDebug() - Method in class com.mapbox.core.MapboxService
Returns if debug logging is enabled in Okhttp.

J

join(CharSequence, Object[]) - Static method in class com.mapbox.core.utils.TextUtils
Returns a string containing the tokens joined by delimiters.

M

MAPBOX_USER - Static variable in class com.mapbox.core.constants.Constants
The default user variable used for all the Mapbox user names.
MapboxService<T,S> - Class in com.mapbox.core
Mapbox specific services used internally within the SDK.
MapboxService(Class<S>) - Constructor for class com.mapbox.core.MapboxService
Constructor for creating a new MapboxService setting the service type for use when initializing retrofit.
MapboxUtils - Class in com.mapbox.core.utils
Misc utils around Mapbox services.
MAX_URL_SIZE - Static variable in class com.mapbox.core.MapboxService
If the url length exceeds this value, the POST method is chosen by default.

O

okHttpClient - Variable in class com.mapbox.core.MapboxService
 

P

PRECISION_5 - Static variable in class com.mapbox.core.constants.Constants
Use a precision of 5 decimal places when encoding or decoding a polyline.
PRECISION_6 - Static variable in class com.mapbox.core.constants.Constants
Use a precision of 6 decimal places when encoding or decoding a polyline.
Preconditions - Class in com.mapbox.core.internal
Contains simple precondition checks.

S

ServicesException - Exception in com.mapbox.core.exceptions
A form of Throwable that indicates conditions that a reasonable application might want to catch.
ServicesException(String) - Constructor for exception com.mapbox.core.exceptions.ServicesException
A form of Throwable that indicates conditions that a reasonable application might want to catch.
setCallFactory(Call.Factory) - Method in class com.mapbox.core.MapboxService
Specify a custom call factory for creating Call instances.

T

TextUtils - Class in com.mapbox.core.utils
We avoid including a full library like org.apache.commons:commons-lang3 to avoid an unnecessary large number of methods, which is inconvenient to Android devs.
toHexString(int, int, int) - Static method in class com.mapbox.core.utils.ColorUtils
Converts red, green, blue values to a hex string that can then be used in a URL when making API request.
A B C E F G H I J M O P S T 
Skip navigation links