DevicesModel class

Devices model (contains list of avaialable audio/video devices and status of foreground mode)

Inheritance

Constructors

DevicesModel([ILogsModel? _logs])
Create instance and set event handler

Properties

foregroundModeEnabled → bool
Returns true if android service works in foreground mode (Android only!)
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
playout → List<MediaDevice>
List of audio speaker devices
no setter
playoutIndex → int
Index of the selected speaker device
no setter
recording → List<MediaDevice>
List of audio microphone devices
no setter
recordingIndex → int
Index of the selected microphone device
no setter
ringtoneIndex → int
Index of selected ringtone device
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
video → List<MediaDevice>
List of audio camera devices
no setter
videoIndex → int
Index of the selected camera device
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Discards any resources used by the object.
inherited
load() → void
Load list of available devices
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
onAudioDevicesChanged() → void
Handle event raised by library (notifies that list of audio devices has changed)
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
setForegroundMode(bool enabled) → Future<void>
Set foreground mode of the CallNotifService service (Android only)
setPlayoutDevice(int? index) → Future<void>
Set current speaker device by its index
setPlayoutDeviceSysDef() → Future<void>
Set current speaker as system's default device (Windows only)
setRecordingDevice(int? index) → Future<void>
Set current microphone device by its index
setRecordingDeviceSysDef() → Future<void>
Set current microphone device as system's default device (Windows only)
setRingtoneDevice(int? index) → Future<void>
Set current speaker device by its index
setVideoDevice(int? index) → Future<void>
Set current camera device by its index
toString() → String
A string representation of this object.
inherited

Operators

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