typedef enum { VM_EVENT_PAINT = 1, VM_EVENT_CREATE = 4, VM_EVENT_QUIT = 5, VM_EVENT_CARD_PLUG_OUT = 7, VM_EVENT_CELL_INFO_CHANGE = 15, VM_EVENT_LOW_BATTERY = 16, VM_EVENT_UPDATE_FAIL = 20 } VM_SYSTEM_EVENT;
typedef enum { VM_EVENT_PAINT = 1, VM_EVENT_CREATE = 4, VM_EVENT_QUIT = 5, VM_EVENT_CARD_PLUG_OUT = 7, VM_EVENT_CELL_INFO_CHANGE = 15, VM_EVENT_LOW_BATTERY = 16, VM_EVENT_UPDATE_FAIL = 20 } VM_SYSTEM_EVENT;
System events for LinkIt applications. Use vm_pmng_register_system_event_callback to register.
vmsystem.h
|
Members |
Description |
|
VM_EVENT_PAINT = 1 |
The graphics system is ready for application to use. Application can use graphics APIs, e.g. vm_graphic_draw_line, after receiving this event. The application can ignore this event if it does not invoke graphics APIs. |
|
VM_EVENT_CREATE = 4 |
This is the first message sent to the application. The application can perform initialization and setup resources. |
|
VM_EVENT_QUIT = 5 |
This is the last message sent to the application, denoting the application is about to terminate. |
|
VM_EVENT_CARD_PLUG_OUT = 7 |
This events notifies application that memory card has been plug out. This is only available on hardwares with SD card slots. |
|
VM_EVENT_CELL_INFO_CHANGE = 15 |
This event notifices that GSM cell information has updated. Refer to vm_gsm_cell_open for details. |
|
VM_EVENT_LOW_BATTERY = 16 |
This event alerts application that the battery on the devices is running low. The application should preserve critical data accordingly. |
|
VM_EVENT_UPDATE_FAIL = 20 |
This event is sent when vm_pmng_exit_and_update_app fails. The framework re-launches the application, and send this event to system event handler. The error code VM_PMNG_UPDATE_RESULT will be sent as event parameter in handler callback. |
Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at
support@toolsfactory.com.