Skip to content

Application Events

Optional

Needed if your app has a user-facing UI (map, blue dot, calibration or navigation UI).

In order for Oriient to provide you with better insights and data analytics on user behavior, you are requested to report UI events. Please refer to the below APIs for reporting UI states and implement them in the corresponding app state changes. This will provide visibility to processes and enable us to segment the data, between background procedures and services exposed to the end-user, including initialization of the service, time to value, and performance.

Registering Application Events

To register an application event, simply call the following endpoint:

IPSCore.registerApplicationEvent(event)

The supported event types (IPSApplicationevent) are:

//When your calibration UI is presented / hidden
int CALIBRATION_DIALOG_PRESENTED = 0;
int CALIBRATION_DIALOG_HIDDEN = 1;

//Walk-to-lock progress bar
int WALK_TO_LOCK_INDICATOR_PRESENTED = 8;
int WALK_TO_LOCK_INDICATOR_HIDDEN = 9;

//When map image is presented on the map
int MAP_PRESENTED = 2;
int MAP_HIDDEN = 3;

//When blue dot is presented
int USER_POSITION_PRESENTED = 4;
int USER_POSITION_HIDDEN = 5;

//When route is drawn to a POI
int NAVIGATION_PATH_PRESENTED = 6;
int NAVIGATION_PATH_HIDDEN = 7;

Info

Since SDK 9.0.0 the calibration dialog is no longer part of the SDK (it is available in the Oriient sample app), so register the calibration dialog events whenever your calibration UI is presented / hidden — unless the dialog implementation you use already registers them.