DeviceCapabilities class

Describes the hardware capabilities of the current device.

Queried once at startup and used by the pool manager to set initial concurrency limits (e.g. max simultaneous hardware decoders).

Annotations

Constructors

DeviceCapabilities({required int maxHardwareDecoders, required List<String> supportedCodecs, required int totalMemoryBytes, String? maxSupportedResolution})
Creates a new DeviceCapabilities.
const
DeviceCapabilities.fromMap(Map<String, dynamic> map)
Creates a DeviceCapabilities from a platform channel map.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
maxHardwareDecoders int
Maximum number of simultaneous hardware video decoders.
final
maxSupportedResolution String?
Highest resolution the device can reliably decode (e.g. "3840x2160").
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportedCodecs List<String>
List of codec MIME types supported by hardware decoders.
final
totalMemoryBytes int
Total physical memory in bytes.
final

Methods

copyWith({int? maxHardwareDecoders, List<String>? supportedCodecs, int? totalMemoryBytes, String? maxSupportedResolution}) DeviceCapabilities
Creates a copy of this DeviceCapabilities with the given fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts this to a platform channel map.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override