Gocator API
 All Classes Files Functions Variables Typedefs Macros Modules Pages
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.

Parameters
managerGoAcceleratorMgr object.
functionUpdate callback handler function.
contextSDK client context for the callback handler.
Returns
Operation status.