NativeLensTaskRequirements constructor

const NativeLensTaskRequirements({
  1. bool requiresCamera = false,
  2. bool requiresMicrophone = false,
  3. bool requiresStableNetwork = false,
  4. bool requiresUnmeteredNetwork = false,
  5. bool requiresHevcEncoder = false,
  6. bool requiresMediaCodecs = false,
  7. List<String> requiredSensors = const <String>[],
  8. List<String> requiredSystemFeatures = const <String>[],
  9. int? minBatteryLevel,
  10. double? minRefreshRate,
  11. int? minCameraCount,
  12. int? minSensorCount,
  13. int? minCodecCount,
  14. bool allowPowerSaveMode = true,
})

Creates custom task requirements.

Implementation

const NativeLensTaskRequirements({
  this.requiresCamera = false,
  this.requiresMicrophone = false,
  this.requiresStableNetwork = false,
  this.requiresUnmeteredNetwork = false,
  this.requiresHevcEncoder = false,
  this.requiresMediaCodecs = false,
  this.requiredSensors = const <String>[],
  this.requiredSystemFeatures = const <String>[],
  this.minBatteryLevel,
  this.minRefreshRate,
  this.minCameraCount,
  this.minSensorCount,
  this.minCodecCount,
  this.allowPowerSaveMode = true,
});