public class EstimoteSDK
extends java.lang.Object
EstimoteSDK
class contains static functions that handle global configuration
for the Estimote SDK.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VERSION
Version of Estimote SDK for Android.
|
Constructor and Description |
---|
EstimoteSDK() |
Modifier and Type | Method and Description |
---|---|
static void |
enableDebugLogging(boolean enableDebugLogging)
Enables debug logging of the Estimote SDK.
|
static void |
enableGpsPositioningForAnalytics(boolean enable)
When GPS Positioning is turned on analytics events
contains information about GPS Location.
|
static void |
enableMonitoringAnalytics(boolean enable)
Enables analytics requests on Enter/Exit monitoring events.
|
static void |
enableRangingAnalytics(boolean enable)
Enables analytics requests for ranging events.
|
static java.lang.String |
getAppId() |
static android.content.Context |
getApplicationContext()
Getters
|
static java.lang.String |
getAppToken() |
static java.lang.String |
getGoogleApiKey() |
static void |
initialize(android.content.Context applicationContext,
java.lang.String appId,
java.lang.String appToken)
Sets App ID and App Token, enabling communication with the Estimote Cloud API.
|
static boolean |
isGpsPositionAnalyticsEnabled()
Indicates current state of gps positioning analytics
|
static boolean |
isMonitoringAnalyticsEnabled()
Indicates current state of monitoring analytics.
|
static boolean |
isRangingAnalyticsEnabled()
Indicates current state of ranging analytics.
|
static void |
setGoogleApiKey(java.lang.String key)
Setups Google API key for resolving EIDs in Google cloud.
|
public static final java.lang.String VERSION
public static void initialize(android.content.Context applicationContext, java.lang.String appId, java.lang.String appToken)
applicationContext
- Android application context.appId
- Application ID.appToken
- Application token.public static void enableDebugLogging(boolean enableDebugLogging)
enableDebugLogging
- Whether enable debug logging.public static void enableMonitoringAnalytics(boolean enable)
enable
- flag indicating if analytics for monitoring should be enabledpublic static void enableRangingAnalytics(boolean enable)
enable
- flag indicating if analytics for ranging should be enabledpublic static void enableGpsPositioningForAnalytics(boolean enable)
enable
- flag indicating if GPS Positioning should be enabledpublic static void setGoogleApiKey(java.lang.String key)
key
- pregenerated user API keypublic static boolean isMonitoringAnalyticsEnabled()
public static boolean isRangingAnalyticsEnabled()
public static boolean isGpsPositionAnalyticsEnabled()
public static android.content.Context getApplicationContext()
public static java.lang.String getAppId()
public static java.lang.String getAppToken()
public static java.lang.String getGoogleApiKey()