Package com.gimbal.android
Class Gimbal
java.lang.Object
com.gimbal.android.Gimbal
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
enablePushMessaging
(boolean enable) Deprecated.static String
Returns the instance identifierString
for a specific client installation of the Android SDKstatic boolean
Returnstrue
if thePlaceManager
,CommunicationManager
andEstablishedLocationsManager
are all startedstatic void
Resets the Application Instance Identifier for this SDK instance.static void
Links an instance of an Android app with a Gimbal Manager application.static void
setApiKeyWithOptions
(android.app.Application application, String apiKey, Map<String, String> options) static void
start()
Starts all Gimbal SDK services.static void
stop()
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 otherGimbal
methods 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 AndroidApplication
apiKey
- the API key string copied from the corresponding application in Gimbal Manager
-
setApiKeyWithOptions
-
getApplicationInstanceIdentifier
Returns the instance identifierString
for 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
CommunicationManager
will need to be started, and Firebase will need to be configured for the application. See the Developer's Guide for additional information.- Parameters:
enable
-true
to 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
,CommunicationManager
andEstablishedLocationsManager
. -
stop
public static void stop()Stops all Gimbal services. This is a shortcut for stopping thePlaceManager
,CommunicationManager
andEstablishedLocationsManager
. -
isStarted
public static boolean isStarted()Returnstrue
if thePlaceManager
,CommunicationManager
andEstablishedLocationsManager
are all started- Returns:
true
if all Gimbal services are started
-
CommunicationManager.enablePushMessaging()
instead