Hardware class

Properties

canSwitchSpeakerphone bool
no setter
forceSpeakerOutput bool
if true, will force speaker output even if headphones or bluetooth is connected only supported on iOS for now
no setter
hashCode int
The hash code for this object.
no setterinherited
isAutomaticConfigurationEnabled bool
no setter
onDeviceChange StreamController<List<MediaDevice>>
final
preferSpeakerOutput bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedAudioInput MediaDevice?
getter/setter pair
selectedAudioOutput MediaDevice?
getter/setter pair
selectedVideoInput MediaDevice?
getter/setter pair
speakerOn bool?
no setter

Methods

audioInputs() Future<List<MediaDevice>>
audioOutputs() Future<List<MediaDevice>>
enumerateDevices({String? type}) Future<List<MediaDevice>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openCamera({MediaDevice? device, bool? facingMode}) Future<MediaStream>
selectAudioInput(MediaDevice device) Future<void>
selectAudioOutput(MediaDevice device) Future<void>
setAutomaticConfigurationEnabled({required bool enable}) → void
setPreferSpeakerOutput(bool enable) Future<void>
setSpeakerphoneOn(bool enable, {bool forceSpeakerOutput = false}) Future<void>
enable set speakerphone on or off, by default wired/bluetooth headsets will still be prioritized even if set to true. forceSpeakerOutput if true, will force speaker output even if headphones or bluetooth is connected, only supported on iOS for now
toString() String
A string representation of this object.
inherited
videoInputs() Future<List<MediaDevice>>

Operators

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

Static Properties

instance Hardware
final