ChromeAudio class

Properties

hashCode int
The hash code for this object.
no setterinherited
isAvailable bool
no setter
onDeviceListChanged EventStream<List<AudioDeviceInfo>>
Fired when audio devices change, either new devices being added, or existing devices being removed. |devices|: List of all present audio devices after the change.
no setter
onLevelChanged EventStream<LevelChangedEvent>
Fired when sound level changes for an active audio device.
no setter
onMuteChanged EventStream<MuteChangedEvent>
Fired when the mute state of the audio input or output changes. Note that mute state is system-wide and the new value applies to every audio device with specified stream type.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getDevices(DeviceFilter? filter) Future<List<AudioDeviceInfo>>
Gets a list of audio devices filtered based on |filter|. |filter|: Device properties by which to filter the list of returned audio devices. If the filter is not set or set to {}, returned device list will contain all available audio devices. |callback|: Reports the requested list of audio devices.
getMute(StreamType streamType) Future<bool>
Gets the system-wide mute state for the specified stream type. |streamType|: Stream type for which mute state should be fetched. |callback|: Callback reporting whether mute is set or not for specified stream type.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setActiveDevices(DeviceIdLists ids) Future<void>
Sets lists of active input and/or output devices. |ids|: Specifies IDs of devices that should be active. If either the input or output list is not set, devices in that category are unaffected.
setMute(StreamType streamType, bool isMuted) Future<void>
Sets mute state for a stream type. The mute state will apply to all audio devices with the specified audio stream type. |streamType|: Stream type for which mute state should be set. |isMuted|: New mute value.
setProperties(String id, DeviceProperties properties) Future<void>
Sets the properties for the input or output device.
toString() String
A string representation of this object.
inherited

Operators

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