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. | |
| static final int | EVENT_ROUTE_USERCANCEL = 1101 |
| Event occurs when user destroys route. | |
| static final int | EVENT_WAIPOINT_VISITED = 1102 |
| Event occurs when a waipoint is visited. | |
| static final int | EVENT_ROUTE_FINISH = 1103 |
| Event occurs when the end of the route is reached. | |
| static final int | EVENT_ROUTE_COMPUTED = 1105 |
| Event occurs when new route is computed. | |
| static final int | EVENT_OFF_ROUTE = 1106 |
| Event occurs when a route is recomputed. | |
| static final int | EVENT_OFF_ROUTE_EXT = 1110 |
| Event occurs when a route is recomputed. | |
| static final int | EVENT_OFF_ROUTE_PRECOMPUTED = 1111 |
| Event occurs after deviation from precomputed route. | |
| static final int | EVENT_OPTIMIZATION_FINISHED = 1107 |
| Event occurs when optimization is finished. | |
| static final int | EVENT_ITINERARY_CHANGED = 1108 |
| Event occurs when itinerary has been changed manually. | |
| static final int | EVENT_ITINERARY_WARNING = 1109 |
| Event occurs when ETA to one or more of the itinerary waypoints is not in time window. | |
| static final int | EVENT_APP_EXIT = 1100 |
| Event occurs when application exits or internal error occurs. | |
| static final int | EVENT_MAIN_MENU = 1150 |
| Event occurs when user click on the navigation window. | |
| static final int | EVENT_CONTEXT_MENU = 1151 |
| Event occurs when user show context menu. | |
| static final int | EVENT_EXIT_MENU = 1152 |
| Event occurs when return to navigation from any menu. | |
| static final int | EVENT_CUSTOM_MENU = 1153 |
| Event occurs after the user clicks on some custom button in the menu. | |
| static final int | EVENT_ENTER_MENU = 1154 |
| Event occurs when user enters a menu dialog from navigation window. | |
| static final int | EVENT_CHANGE_LANGUAGE = 1160 |
| Event occurs when user change language of Drive application. | |
| static final int | EVENT_CHANGE_ORIENTATION = 1161 |
| Deprecated. | |
| static final int | EVENT_RADAR_WARNING = 1170 |
| Event occurs when a radar warning is invoked. | |
| static final int | EVENT_POI_WARNING = 1171 |
| Event occurs when a poi warning is invoked. | |
| static final int | EVENT_GEOFENCE = 1172 |
| Event occurs when a geofence event is invoked. | |
| static final int | EVENT_RESTRICTED_ROAD = 1173 |
| Event occurs when on a restricted road. | |
| static final int | EVENT_BORDER_CROSSING = 1180 |
| Event occurs when the border is crossed. | |
| static final int | EVENT_SPEED_EXCEEDING = 1181 |
| Event occurs when the speed is exceeded. | |
| static final int | EVENT_SPEED_LIMIT_CHANGED = 1182 |
| Event occurs when the speed limit is changed. | |
| static final int | BITMAP_CLICK = 1190 |
| Event occurs when the bitmap is clicked. | |
| static final int | EVENT_POI_CLICK = 1191 |
| Event occurs when the poi is clicked. | |
| static final int | EVENT_WAYPOINT_CLICKED = 1192 |
| Waypoint was clicked. | |
| static final int | EVENT_SHARE_POSITION = 1193 |
| Position was shared from the app menu (Special setting must be turned on to enable this feature). | |
| static final int | EVENT_BROWSE_MAP_EXIT = 1194 |
| Event occurs when you exit browsing map. | |
| static final int | EVENT_WAYPOINT_MARKED_AS_VISITED = 1195 |
| Event occurs when waypoint is marked as visited. | |
| static final int | EVENT_CALLBACK = 2000 |
| not used | |
ApiEvents class enumerates events that Navigation can generate.
Navigation events can be processed by registering a callback with remote app.
|
static |
Event occurs when the bitmap is clicked.
|
static |
Event occurs when application exits or internal error occurs.
|
static |
Event occurs when navigation has started.
|
static |
Event occurs when the border is crossed.
|
static |
Event occurs when you exit browsing map.
|
static |
not used
|
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 user enters a menu dialog from navigation window.
|
static |
Event occurs when return to navigation from any menu.
|
static |
Event occurs when a geofence event is invoked.
The strData parameter has the following format: "%d,%d"
the first parameter is geofence event type. 0 means enter to the restricted area, 1 means leave the restricted area. the second parameter is restricted area ID.
|
static |
Event occurs when itinerary has been changed manually.
|
static |
Event occurs when ETA to one or more of the itinerary waypoints is not in time window.
|
static |
Event occurs when user click on the navigation window.
|
static |
Event occurs when a route is recomputed.
|
static |
Event occurs when a route is recomputed.
Data contains information about itinerary ID.
|
static |
Event occurs after deviation from precomputed route.
Data contains information about itinerary ID. [RuntimeSettings]m_nOffRouteExtDistance has to be set to fire this event.
|
static |
Event occurs when optimization is finished.
Data is "0" if optimization was successful, other value otherwise.
|
static |
Event occurs when the poi is clicked.
Data contains string "{category_name},{poi_name},{lon,lat}"
|
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 |
Position was shared from the app menu (Special setting must be turned on to enable this feature).
Data contains JSON: { "lat": (int), "lon": (int) }
|
static |
Event occurs when the speed is exceeded.
|
static |
Event occurs when the speed limit is changed.
|
static |
Event occurs when a waipoint is visited.
The strData parameter will return the waypoint ID.
|
static |
Waypoint was clicked.
Data contains ID of waypoint (if set) or order of waypoint in itinerary (if ID was not set)
|
static |
Event occurs when waypoint is marked as visited.
Data contains info about waypoint ID and trigger of this event ("manual" or "sdk")