Plug-in Overview

This plug-in provides your application access to the user’s location through an enhanced version of the Android location manager. The plug-in provides location detection using the best available hardware on the device, automatically adjusting the location scanning rate based on the user’s selected Dynamix power profile.

  • Plug-in ID: org.ambientdynamix.contextplugins.location

Supported Context Types

Context Type Privacy Risk Level Data Types Description
<PLUGID> MAX ILocationContextInfo Represents the user’s detected location.
Descriptions of the data types above can be found in the JavaDocs at the end of this page.

Web App Usage

Integrate Dynamix into your Web app, as described here.

Add context support as follows:

Your app will then begin receiving location updates. See the JavaDocs below for details on the available context event data.

You can also request the last known location at any time like this:

Context events can be handled like this in your Web app’s dynamix_listener.js file:

Native App Usage

Integrate Dynamix into your native app, as described here.

Add context support as follows:

[DataType JAR Download data-type-download=””]

Your app will then begin receiving location updates. See the JavaDocs below for details on the available context event data.

You can also request the last known location at any time like this:

Context events can be handled like this:

[Context Info Blurb context-info-blurb=””]