MethodChannelFlutterMicSelector class

Method-channel implementation backed by the native Android plugin.

Inheritance

Constructors

MethodChannelFlutterMicSelector({MethodChannel? methodChannel, EventChannel? devicesEventChannel, EventChannel? levelsEventChannel})
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
levelsEventChannel → EventChannel
Event channel used for microphone input level events.
final
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

clearSelectedDevice() → Future<void>
Clears the preferred device id from the native session layer.
override
getDevices() → Future<List<MicInputDevice>>
Returns available audio input devices.
override
getSelectedDeviceId() → Future<String?>
Returns the preferred device id persisted by the native platform layer.
override
hasPermission() → Future<MicPermissionStatus>
Checks Android RECORD_AUDIO permission.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPermission() → Future<MicPermissionStatus>
Requests Android RECORD_AUDIO permission.
override
selectDevice(String deviceId) → Future<void>
Sends the preferred device id to the native session layer.
override
start({String? deviceId}) → Future<void>
Starts an app-owned microphone session, optionally routed to deviceId.
override
stop() → Future<void>
Stops the app-owned microphone session.
override
toString() → String
A string representation of this object.
inherited
watchDevices() → Stream<List<MicInputDevice>>
Watches platform audio input device connection changes.
override
watchInputLevel() → Stream<MicInputLevel>
Watches microphone input levels while the native session is active.
override

Operators

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