DevicesModel class
Devices list model (contains list of avaialable audio/video devices)
- Inheritance
-
- Object
- ChangeNotifier
- DevicesModel
Constructors
- DevicesModel.new([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 selected speaker device
no setter
-
recording
→ List<
MediaDevice> -
List of audio microphone devices
no setter
- recordingIndex → int
-
Index of selected microphone 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 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. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
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
-
setRecordingDevice(
int? index) → Future< void> - Set current microphone 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