Gocator API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Macros Modules Pages

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

  manager | GoAcceleratorMgr object.
  function | Update callback handler function.
  context | SDK client context for the callback handler. It is a pointer to GoAcceleratorMgrAccelUpdate.

Returns
  Operation status.