Java SDK for 2D
 All Classes Namespaces Functions Variables Pages
ApiEvents Class Reference

ApiEvents class enumerates events that Navigation can generate. More...

Static Public Attributes

static final int EVENT_APP_STARTED = 1010
 Event occurs when navigation has started. More...
 
static final int EVENT_ROUTE_USERCANCEL = 1101
 Event occurs when user destroys route. More...
 
static final int EVENT_WAIPOINT_VISITED = 1102
 Event occurs when a waipoint is visited. More...
 
static final int EVENT_ROUTE_FINISH = 1103
 Event occurs when the end of the route is reached. More...
 
static final int EVENT_ROUTE_COMPUTED = 1105
 Event occurs when new route is computed. More...
 
static final int EVENT_OFF_ROUTE = 1106
 Event occurs when a route is recomputed. More...
 
static final int EVENT_NEXT_INSTRUCTION = 1110
 Event occurs when a navigation display next instruction. More...
 
static final int EVENT_APP_EXIT = 1100
 Event occurs when application exits or internal error occurs. More...
 
static final int EVENT_MAIN_MENU = 1150
 Event occurs when user click on the navigation window. More...
 
static final int EVENT_CONTEXT_MENU = 1151
 Event occurs when user show context menu. More...
 
static final int EVENT_EXIT_MENU = 1152
 Event occurs when return to navigation from any menu. More...
 
static final int EVENT_CUSTOM_MENU = 1153
 Event occurs after the user clicks on some custom button in the menu. More...
 
static final int EVENT_CHANGE_LANGUAGE = 1160
 Event occurs when user change language of Drive application. More...
 
static final int EVENT_CHANGE_ORIENTATION = 1161
 Deprecated. More...
 
static final int EVENT_RADAR_WARNING = 1170
 Event occurs when a radar warning is invoked. More...
 
static final int EVENT_POI_WARNING = 1171
 Event occurs when a poi warning is invoked. More...
 
static final int EVENT_GEOFENCE = 1172
 Event occurs when a geofence event is invoked. More...
 
static final int EVENT_RESTRICTED_ROAD = 1173
 Event occurs when on a restricted road. More...
 
static final int EVENT_BORDER_CROSSING = 1180
 Event occurs when the border is crossed. More...
 
static final int EVENT_SPEED_EXCEEDING = 1181
 Event occurs when the speed is exceeded. More...
 
static final int EVENT_BITMAP_CLICK = 1190
 Event occurs when the bitmap is clicked. More...
 
static final int EVENT_POI_CLICK = 1191
 Event occurs when the poi is clicked. More...
 
static final int EVENT_BROWSE_MAP_EXIT = 1192
 Event occurs when you exit browse map. More...
 

Detailed Description

ApiEvents class enumerates events that Navigation can generate.

Navigation events can be processed by registering a callback with remote app.

Member Data Documentation

final int EVENT_APP_EXIT = 1100
static

Event occurs when application exits or internal error occurs.

final int EVENT_APP_STARTED = 1010
static

Event occurs when navigation has started.

final int EVENT_BITMAP_CLICK = 1190
static

Event occurs when the bitmap is clicked.

final int EVENT_BORDER_CROSSING = 1180
static

Event occurs when the border is crossed.

final int EVENT_BROWSE_MAP_EXIT = 1192
static

Event occurs when you exit browse map.

final int EVENT_CHANGE_LANGUAGE = 1160
static

Event occurs when user change language of Drive application.

The strData contains the name of the lang file, e.g. the user selects English in the menu, so it returns "english.lang"

final int EVENT_CHANGE_ORIENTATION = 1161
static

Deprecated.

Event used to occur when user changed screen orientation of Navigation application. The event is not generated on Android anymore.

final int EVENT_CONTEXT_MENU = 1151
static

Event occurs when user show context menu.

final int EVENT_CUSTOM_MENU = 1153
static

Event occurs after the user clicks on some custom button in the menu.

The strData parameter will return the command parameter (defined in menu.ini file) of this button.

final int EVENT_EXIT_MENU = 1152
static

Event occurs when return to navigation from any menu.

final int EVENT_GEOFENCE = 1172
static

Event occurs when a geofence event is invoked.

The strData parameter has following format: "%d,%d"
the first parameter is geofence event type. 0 mean enter to the restricted area, 1 mean leave the restricted area. the second parameter is restricted area ID

final int EVENT_MAIN_MENU = 1150
static

Event occurs when user click on the navigation window.

final int EVENT_NEXT_INSTRUCTION = 1110
static

Event occurs when a navigation display next instruction.

final int EVENT_OFF_ROUTE = 1106
static

Event occurs when a route is recomputed.

final int EVENT_POI_CLICK = 1191
static

Event occurs when the poi is clicked.

final int EVENT_POI_WARNING = 1171
static

Event occurs when a poi warning is invoked.

The strData parameter has following format: "%s,%s,{%d,%d}"
the first parameter is category name (use ApiPoi#getPoiCategoryList(int) function to get list of poi categories)
the second parameter is poi name
the third parameter is longitude
the fourth parameter is latitude

final int EVENT_RADAR_WARNING = 1170
static

Event occurs when a radar warning is invoked.

The strData parameter has following format: "%d,%d"
first parameter is speed camera type (see Api.SpeedCameraType enum)
second parameter is allowed speed (km / h)

final int EVENT_RESTRICTED_ROAD = 1173
static

Event occurs when on a restricted road.

final int EVENT_ROUTE_COMPUTED = 1105
static

Event occurs when new route is computed.

final int EVENT_ROUTE_FINISH = 1103
static

Event occurs when the end of the route is reached.

final int EVENT_ROUTE_USERCANCEL = 1101
static

Event occurs when user destroys route.

final int EVENT_SPEED_EXCEEDING = 1181
static

Event occurs when the speed is exceeded.

final int EVENT_WAIPOINT_VISITED = 1102
static

Event occurs when a waipoint is visited.

The strData parameter will return the waypoint ID.