MethodChannelFlutterMicSelector class

Method-channel implementation backed by the native Android plugin.

Inheritance

Constructors

MethodChannelFlutterMicSelector({MethodChannel? methodChannel, EventChannel? devicesEventChannel})
Creates a method-channel platform implementation.

Properties

devicesEventChannel → EventChannel
Event channel used for audio device change events.
final
hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
Method channel used for command and query calls.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearSelectedMicrophone() → Future<void>
Clears the preferred microphone selection.
override
getAvailableMicrophones() → Future<List<MicrophoneDevice>>
Returns available microphone input devices.
override
getSelectedMicrophone() → Future<MicrophoneDevice?>
Returns the currently selected microphone device, or null.
override
hasPermission() → Future<bool>
Checks whether the RECORD_AUDIO permission is granted.
override
microphoneDevicesChanged() → Stream<List<MicrophoneDevice>>
Stream of device list changes when microphones connect or disconnect.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPermission() → Future<bool>
Requests the RECORD_AUDIO permission.
override
selectMicrophone(MicrophoneDevice device) → Future<void>
Selects device as the preferred microphone.
override
selectMicrophoneById(String deviceId) → Future<void>
Selects a microphone by its native device deviceId.
override
toString() → String
A string representation of this object.
inherited

Operators

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