public final class Mapbox
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getAccessToken()
Access Token for this application.
|
static android.content.Context |
getApplicationContext()
Application context
|
static Mapbox |
getInstance(android.content.Context context,
java.lang.String accessToken)
Get an instance of Mapbox.
|
static java.lang.Boolean |
isConnected()
Determines whether we have an Internet connection available.
|
static void |
setConnected(java.lang.Boolean connected)
Manually sets the connectivity state of the app.
|
public static Mapbox getInstance(android.content.Context context, java.lang.String accessToken)
This class manages the active access token, application context and connectivity state.
context - Android context which holds or is an application contextaccessToken - Mapbox access tokenpublic static java.lang.String getAccessToken()
public static android.content.Context getApplicationContext()
public static void setConnected(java.lang.Boolean connected)
connected - flag to determine the connectivity state, true for connected, false for
disconnected, null for ConnectivityManager to determine.public static java.lang.Boolean isConnected()