enableSensors static method

Future<SahhaSensorStatus> enableSensors()

Implementation

static Future<SahhaSensorStatus> enableSensors() async {
  try {
    int statusInt = await _channel.invokeMethod('enableSensors');
    SahhaSensorStatus status = SahhaSensorStatus.values[statusInt];
    return status;
  } on PlatformException catch (error) {
    return Future.error(error);
  }
}