dataTypeSamplingSchemes property

  1. @override
DataTypeSamplingSchemeMap? dataTypeSamplingSchemes
override

Sampling schemes for all the sensors available on this device.

Implementations of DeviceConfiguration should simply return a map of all supported sampling schemes here.

Implementation

@override
DataTypeSamplingSchemeMap? get dataTypeSamplingSchemes =>
    DataTypeSamplingSchemeMap.from([
      DataTypeSamplingScheme(
          CarpDataTypes().types[CarpDataTypes.GEOLOCATION_TYPE_NAME]!,
          GranularitySamplingConfiguration(Granularity.Balanced)),
      DataTypeSamplingScheme(
        CarpDataTypes().types[CarpDataTypes.STEP_COUNT_TYPE_NAME]!,
        NoOptionsSamplingConfiguration(),
      ),
      DataTypeSamplingScheme(CarpDataTypes()
          .types[CarpDataTypes.NON_GRAVITATIONAL_ACCELERATION_TYPE_NAME]!),
      DataTypeSamplingScheme(
          CarpDataTypes().types[CarpDataTypes.ACCELERATION_TYPE_NAME]!),
    ]);