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... | |
ApiEvents class enumerates events that Navigation can generate.
Navigation events can be processed by registering a callback with remote app.
|
static |
Event occurs when application exits or internal error occurs.
|
static |
Event occurs when navigation has started.
|
static |
Event occurs when the bitmap is clicked.
|
static |
Event occurs when the border is crossed.
|
static |
Event occurs when you exit browse map.
|
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"
|
static |
Deprecated.
Event used to occur when user changed screen orientation of Navigation application. The event is not generated on Android anymore.
|
static |
Event occurs when user show context menu.
|
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.
|
static |
Event occurs when return to navigation from any menu.
|
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
|
static |
Event occurs when user click on the navigation window.
|
static |
Event occurs when a navigation display next instruction.
|
static |
Event occurs when a route is recomputed.
|
static |
Event occurs when the poi is clicked.
|
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
|
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)
|
static |
Event occurs when on a restricted road.
|
static |
Event occurs when new route is computed.
|
static |
Event occurs when the end of the route is reached.
|
static |
Event occurs when user destroys route.
|
static |
Event occurs when the speed is exceeded.
|
static |
Event occurs when a waipoint is visited.
The strData parameter will return the waypoint ID.