Untitled Document
ApplicationEvents Enumeration
GPS NAVIGATION SDK
version 8.3 build 47035

ApplicationEvents enum enumerates events that Drive can generate.
Drive events can be processed by registering ApplicationHandler in InitApi function.

public enum ApplicationEvents

Members

Member Name Description
EVENT_ROUTE_USERCANCEL Event occurs when user destroys route.
EVENT_WAIPOINT_VISITED Event occurs when a waypoint is visited. The strData parameter will return the waypoint ID.
EVENT_ROUTE_FINISH Event occurs when user reaches route destination.
EVENT_ROUTE_COMPUTED Event occurs when new route is computed.
EVENT_OFF_ROUTE Event occurs when a route is recomputed.
EVENT_APP_EXIT Event occurs when application exits or internal error occurs.
EVENT_MAIN_MENU Event occurs when user click on the navigation window
EVENT_CONTEXT_MENU Event occurs when user show context menu
EVENT_EXIT_MENU Event occurs when return to navigation from any menu
EVENT_CUSTOM_MENU 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.
EVENT_CHANGE_LANGUAGE 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”
EVENT_CHANGE_ORIENTATION Event occurs when user change screen orientation of Drive application. The strData has the values "1", "2", "3" or "4", according to the screen rotation.
EVENT_RADAR_WARNING Event occurs when a radar warning is invoked. The strData parameter has following format: "%d,%d"
first parameter is speed camera type (see ApplicationAPI.SpeedCameraType enum)
second parameter is allowed speed (km / h)
EVENT_POI_WARNING 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 CApplicationAPI.GetPoiCategoryList function to get list of poi categories)
the second parameter is poi name
the third parameter is longitude
the fourth parameter is latitude
EVENT_GEOFENCE 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
EVENT_RESTRICTED_ROAD
EVENT_BORDER_CROSSING Event occurs when the border is crossed
EVENT_SPEED_EXCEEDING Event occurs when the speed limit is exceeding
EVENT_BITMAP_CLICK Event occurs when the user click on bitmap in browsemap
EVENT_POI_CLICK Event occurs when the user click on POI in browsemap

Requirements

Namespace: ApplicationAPI

Assembly: ApplicationAPI.NET (in ApplicationAPI.NET.dll)

See Also

ApplicationAPI Namespace