AndroidAudioDeviceFilter enum

Audio device filter type for Android platform.

Determines which types of audio devices are shown in the device picker.

Inheritance
Available extensions

Values

communication → const AndroidAudioDeviceFilter

Communication devices only (VoIP, voice/video chat).

Uses AudioManager.availableCommunicationDevices internally. Includes:

  • Built-in speaker and receiver
  • Bluetooth SCO (hands-free profile for calls)
  • Wired headsets
  • USB headsets (communication capable)

Excludes:

  • Bluetooth A2DP (music-only profile)
  • General USB devices

This is the recommended option for VoIP and communication apps.

media → const AndroidAudioDeviceFilter

Media playback devices (music, video, games).

Uses AudioManager.getDevices(GET_DEVICES_OUTPUTS) internally. Includes:

  • Built-in speaker and receiver
  • Bluetooth A2DP (high-quality audio profile)
  • Bluetooth SCO
  • Wired headsets
  • All USB audio devices

This option is suitable for media playback applications.

all → const AndroidAudioDeviceFilter

All available output devices (no filtering).

Same as media but conceptually represents "show everything". Useful for debugging or apps with specialized audio requirements.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<AndroidAudioDeviceFilter>
A constant List of the values in this enum, in order of their declaration.