|
Gocator API
|
| kStatus GoAcceleratorMgr_SetAccelUpdateHandler | ( | GoAcceleratorMgr | manager, |
| kCallbackFx | function, | ||
| kPointer | context | ||
| ) |
Set up the update handler so that the SDK client can receive events from the Accelerator Manager about a sensor.
This step is optional. If update handler is not bound in, then client will not receive any event notifications. Update handler is called with a pointer to GoAcceleratorMgrAccelUpdate which contains event information about a sensor. The update handler does not free the memory for the GoAcceleratorMgrAccelUpdate structure.
| manager | GoAcceleratorMgr object. |
| function | Update callback handler function. |
| context | SDK client context for the callback handler. It is a pointer to GoAcceleratorMgrAccelUpdate. |