AudioRouterPlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- AudioRouterPlatform
- Implementers
Constructors
- AudioRouterPlatform()
- Constructs an AudioRouterPlatform.
Properties
-
audioStateStream
→ Stream<
AudioState> -
Audio state change stream
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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)
-
getCurrentDevice(
) → Future< AudioDevice?> - Get current audio device
-
hasExternalDevices(
) → Future< bool> - Check if external devices are available (iOS only)
-
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)
-
showAudioRoutePicker(
) → Future< void> - Show native audio route picker
-
toggleSpeakerReceiver(
) → Future< void> - Toggle between speaker and receiver (iOS only)
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ AudioRouterPlatform
-
The default instance of AudioRouterPlatform to use.
getter/setter pair