public class MapboxEventManager
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addLocationEvent(android.location.Location location)
Adds a Location Event to the system for processing
|
static java.lang.String |
generateCreateDate() |
java.lang.Boolean |
getConnectedToWifi() |
static MapboxEventManager |
getMapboxEventManager()
Primary Access method using Singleton pattern
|
void |
initialize(android.content.Context context,
java.lang.String accessToken)
Internal setup of MapboxEventsManager.
|
boolean |
isTelemetryEnabled() |
void |
pushEvent(java.util.Hashtable<java.lang.String,java.lang.Object> eventWithAttributes)
Push Interactive Events to the system for processing
|
void |
setTelemetryEnabled(boolean telemetryEnabled)
Enables / Disables Telemetry
|
public void initialize(android.content.Context context,
java.lang.String accessToken)
context - The context associated with MapViewaccessToken - The accessToken to load MapViewpublic static MapboxEventManager getMapboxEventManager()
public static java.lang.String generateCreateDate()
public boolean isTelemetryEnabled()
public void setTelemetryEnabled(boolean telemetryEnabled)
telemetryEnabled - True to start telemetry, false to stop itpublic void addLocationEvent(android.location.Location location)
location - Location eventpublic void pushEvent(java.util.Hashtable<java.lang.String,java.lang.Object> eventWithAttributes)
eventWithAttributes - Event with attributespublic java.lang.Boolean getConnectedToWifi()