NativeLensTaskRequirements constructor
const
NativeLensTaskRequirements({
- bool requiresCamera = false,
- bool requiresMicrophone = false,
- bool requiresStableNetwork = false,
- bool requiresUnmeteredNetwork = false,
- bool requiresHevcEncoder = false,
- bool requiresMediaCodecs = false,
- List<
String> requiredSensors = const <String>[], - List<
String> requiredSystemFeatures = const <String>[], - int? minBatteryLevel,
- double? minRefreshRate,
- int? minCameraCount,
- int? minSensorCount,
- int? minCodecCount,
- 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,
});