AudioDeviceInfo constructor
AudioDeviceInfo({
- required String id,
- required StreamType streamType,
- required DeviceType deviceType,
- required String displayName,
- required String deviceName,
- required bool isActive,
- required int level,
- String? stableDeviceId,
Implementation
AudioDeviceInfo({
/// The unique identifier of the audio device.
required String id,
/// Stream type associated with this device.
required StreamType streamType,
/// Type of the device.
required DeviceType deviceType,
/// The user-friendly name (e.g. "USB Microphone").
required String displayName,
/// Device name.
required String deviceName,
/// True if this is the current active device.
required bool isActive,
/// The sound level of the device, volume for output, gain for input.
required int level,
/// The stable/persisted device id string when available.
String? stableDeviceId,
}) : _wrapped = $js.AudioDeviceInfo(
id: id,
streamType: streamType.toJS,
deviceType: deviceType.toJS,
displayName: displayName,
deviceName: deviceName,
isActive: isActive,
level: level,
stableDeviceId: stableDeviceId,
);