MethodChannelAudioRouter class

An implementation of AudioRouterPlatform that uses method channels.

Inheritance

Constructors

MethodChannelAudioRouter()
Constructor

Properties

audioStateStream Stream<AudioState>
Audio state change stream
no setteroverride
eventChannel EventChannel
The event channel used to receive audio state changes from the native platform.
final
hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAvailableDevices({AndroidAudioOptions androidAudioOptions = const AndroidAudioOptions()}) Future<List<AudioDevice>>
Get available audio devices list (Android internal use)
override
getCurrentDevice() Future<AudioDevice?>
Get current audio device
override
hasExternalDevices() Future<bool>
Check if external devices are available (iOS only)
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAudioDevice(String deviceId) Future<void>
Set audio device (Android internal use)
override
showAudioRoutePicker() Future<void>
Show native audio route picker
override
toggleSpeakerReceiver() Future<void>
Toggle between speaker and receiver (iOS only)
override
toString() String
A string representation of this object.
inherited

Operators

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