Gocator API

◆ GoAcceleratorMgr_SetAccelUpdateHandler()

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.

Version
Introduced in firmware 5.2.18.3
Parameters
managerGoAcceleratorMgr object.
functionUpdate callback handler function.
contextSDK client context for the callback handler. It is a pointer to GoAcceleratorMgrAccelUpdate.
Returns
Operation status.