sensors property

Future<Sensors> sensors

Returns the presence of device sensors accelerometer, gyroscope, magnetometer

These core Sensors are used by the motion activity-recognition system -- when any of these sensors are missing from a device (particularly on cheap Android devices), the performance of the motion activity-recognition system will be severely degraded and highly inaccurate.

Example

Sensors sensors = await BackgroundGeolocation.sensors;
print(sensors);

Implementation

static Future<Sensors> get sensors async {
  Map data = (await _methodChannel.invokeMapMethod('getSensors'))!;
  return Sensors(data);
}