Package com.gimbal.android
Class Gimbal
java.lang.Object
com.gimbal.android.Gimbal
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidenablePushMessaging(boolean enable) Deprecated.static StringReturns the instance identifierStringfor a specific client installation of the Android SDKstatic booleanReturnstrueif thePlaceManager,CommunicationManagerandEstablishedLocationsManagerare all startedstatic voidResets the Application Instance Identifier for this SDK instance.static voidLinks an instance of an Android app with a Gimbal Manager application.static voidsetApiKeyWithOptions(android.app.Application application, String apiKey, Map<String, String> options) static voidstart()Starts all Gimbal SDK services.static voidstop()Stops all Gimbal services.
-
Method Details
-
setApiKey
Links an instance of an Android app with a Gimbal Manager application. This must be called before any otherGimbalmethods are called, e.g.Gimbal.start(),PlaceManager.addListener(), etc., and only needs to be called once for a given application install. Additional calls with the same API key have no effect.- Parameters:
application- the currently running AndroidApplicationapiKey- the API key string copied from the corresponding application in Gimbal Manager
-
setApiKeyWithOptions
-
getApplicationInstanceIdentifier
Returns the instance identifierStringfor a specific client installation of the Android SDK- Returns:
- this application instance's identifier
-
enablePushMessaging
public static void enablePushMessaging(boolean enable) Deprecated.useCommunicationManager.enablePushMessaging()insteadEnables or disables push messaging for the application instance. This only needs to be called once per app instance. If
Gimbal.registerForPush()had been called on an existing app instance with a previous version of the SDK, the V4 SDK will migrate this setting to effectively callenablePushMessaging(true).In order for push messages to be received, the
CommunicationManagerwill need to be started, and Firebase will need to be configured for the application. See the Developer's Guide for additional information.- Parameters:
enable-trueto enable push messaging- Since:
- 4.0.0
-
resetApplicationInstanceIdentifier
public static void resetApplicationInstanceIdentifier()Resets the Application Instance Identifier for this SDK instance. Dissociates a device from its data (e.g. place events) reported by an application instance. The open place sightings get closed on the server. Instance-specific data on device also gets cleared. This call is rarely required. -
start
public static void start()Starts all Gimbal SDK services. This includes the generation of events based on the user's location and proximity to geofences and beacons, the reception of place- and time-based Communications, and the generation of established locations based on the user's movements. This is a shortcut for starting thePlaceManager,CommunicationManagerandEstablishedLocationsManager. -
stop
public static void stop()Stops all Gimbal services. This is a shortcut for stopping thePlaceManager,CommunicationManagerandEstablishedLocationsManager. -
isStarted
public static boolean isStarted()Returnstrueif thePlaceManager,CommunicationManagerandEstablishedLocationsManagerare all started- Returns:
trueif all Gimbal services are started
-
CommunicationManager.enablePushMessaging()instead