Gocator API

- Home
- Types
- Files

All Classes Files Functions Variables Typedefs Macros Modules Pages

kStatus GoAccelerator_SetAcceleratorUpdateHandler | ( | GoAccelerator | accelerator,
|  | kCallbackFx | function,
|  | kPointer | receiver
| ) |  |

Sets a handler for Accelerated sensor connect/disconnect updates for this object.

This handler will be called if the accelerator loses or regains connection to an attached sensor.

Parameters

  accelerator | GoAccelerator object.
  function | Connection update callback function (or kNULL to unregister).
  receiver | Receiver argument for callback.

Returns
  Operation status.