OTHER_SENSORS property

PermissionResourceType OTHER_SENSORS
final

Indicates permission to access generic sensor. Generic Sensor covers ambient-light-sensor, accelerometer, gyroscope, and magnetometer.

Officially Supported Platforms/Implementations:

Implementation

static final OTHER_SENSORS = PermissionResourceType._internalMultiPlatform(
  'OTHER_SENSORS',
  () {
    switch (defaultTargetPlatform) {
      case TargetPlatform.windows:
        return 5;
      default:
        break;
    }
    return null;
  },
);