public class SitumSdk extends Object
init(Context)
inside Application.onCreate()
in your Application to initialize the SDK.
After initialized, you can provide the authentication credentials and configure the Situm SDK with configuration()
Constructor and Description |
---|
SitumSdk() |
Modifier and Type | Method and Description |
---|---|
static CommunicationManager |
communicationManager()
Returns the manager of server communications.
|
static Configuration |
configuration()
Returns the public configuration holder.
|
static DirectionsManager |
directionsManager()
Returns the manager of routes.
|
static long |
getDeviceID() |
static void |
init(android.content.Context context)
Initialize SDK.
|
static LocationManager |
locationManager()
Returns the manager of locations.
|
static NavigationManager |
navigationManager()
Returns the manager of navigation.
|
static void |
setDebugOption(int key,
String value)
Internal debug options.
|
public static void init(android.content.Context context)
context
- Your application context.public static CommunicationManager communicationManager()
CommunicationManager
IllegalStateException
- if init(Context)
wasn't invoked or no credentials were providedpublic static LocationManager locationManager()
LocationManager
IllegalStateException
- if init(Context)
wasn't invoked or no credentials were providedpublic static Configuration configuration()
Configuration
IllegalStateException
- if init(Context)
wasn't invoked or no credentials were providedpublic static DirectionsManager directionsManager()
DirectionsManager
IllegalStateException
- if init(Context)
wasn't invoked or no credentials were providedpublic static NavigationManager navigationManager()
NavigationManager
IllegalStateException
- if init(Context)
wasn't invoked or no credentials were providedpublic static void setDebugOption(int key, String value)
public static long getDeviceID()
IllegalStateException
- if init(Context)
wasn't invoked