getAccelerometerOffset method

Future<bool> getAccelerometerOffset()

Requests a read of the factory accelerometer offset values of the connected device.

The event AccelerometerOffsetRead is fired when the offset has been read. Returns true if the request was successfully made, false otherwise.

Implementation

Future<bool> getAccelerometerOffset() async {
  if (!connected) {
    throw ESenseException('Not connected to any eSense device.');
  }
  return await _eSenseManagerMethodChannel
          .invokeMethod<bool?>('getAccelerometerOffset') ??
      false;
}