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()
CommunicationManagerIllegalStateException - if init(Context) wasn't invoked or no credentials were providedpublic static LocationManager locationManager()
LocationManagerIllegalStateException - if init(Context) wasn't invoked or no credentials were providedpublic static Configuration configuration()
ConfigurationIllegalStateException - if init(Context) wasn't invoked or no credentials were providedpublic static DirectionsManager directionsManager()
DirectionsManagerIllegalStateException - if init(Context) wasn't invoked or no credentials were providedpublic static NavigationManager navigationManager()
NavigationManagerIllegalStateException - 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