|
Gocator API
|
| kStatus GoAcceleratorMgr_SetAccelUpdateHandler | ( | GoAcceleratorMgr | manager, |
| kCallbackFx | function, | ||
| kPointer | context | ||
| ) |
Bind an update handler with the acceleration manager to get notification of acceleration events for a sensor.
Update handler is called with a pointer to GoAcceleratorMgrAccelUpdate which contains event information about a sensor. SDK client does not need to free the memory for the GoAcceleratorMgrAccelUpdate.
| manager | GoAcceleratorMgr object. |
| function | Update callback handler function. |
| context | SDK client context for the callback handler. |