AndroidUsageType enum

"why" you are playing a sound, what is this sound used for. This is achieved with the "usage" information. Examples of usage are media and alarm. These two examples are the closest to stream types, but more detailed use cases are available. Usage information is more expressive than a stream type, and allows certain platforms or routing policies to use this information for more refined volume or routing decisions. Usage is the most important information to supply in AudioContextAndroid and it is recommended to build any instance with this information supplied.

Inheritance

Constructors

AndroidUsageType(int value)
const
AndroidUsageType.fromInt(int value)
factory

Values

unknown → const AndroidUsageType

Usage value to use when the usage is unknown.

const AndroidUsageType(0)
media → const AndroidUsageType

Usage value to use when the usage is media, such as music, or movie soundtracks.

const AndroidUsageType(1)
voiceCommunication → const AndroidUsageType

Usage value to use when the usage is voice communications, such as telephony or VoIP.

const AndroidUsageType(2)
voiceCommunicationSignalling → const AndroidUsageType

Usage value to use when the usage is in-call signalling, such as with a "busy" beep, or DTMF tones.

const AndroidUsageType(3)
alarm → const AndroidUsageType

Usage value to use when the usage is an alarm (e.g. wake-up alarm).

const AndroidUsageType(4)
notification → const AndroidUsageType

Usage value to use when the usage is notification. See other notification usages for more specialized uses.

const AndroidUsageType(5)
notificationRingtone → const AndroidUsageType

Usage value to use when the usage is telephony ringtone.

const AndroidUsageType(6)
notificationCommunicationRequest → const AndroidUsageType

Usage value to use when the usage is a request to enter/end a communication, such as a VoIP communication or video-conference.

const AndroidUsageType(7)
notificationCommunicationInstant → const AndroidUsageType

Usage value to use when the usage is notification for an "instant" communication such as a chat, or SMS.

const AndroidUsageType(8)
notificationCommunicationDelayed → const AndroidUsageType

Usage value to use when the usage is notification for a non-immediate type of communication such as e-mail.

const AndroidUsageType(9)
notificationEvent → const AndroidUsageType

Usage value to use when the usage is to attract the user's attention, such as a reminder or low battery warning.

const AndroidUsageType(10)
assistanceAccessibility → const AndroidUsageType

Usage value to use when the usage is for accessibility, such as with a screen reader.

const AndroidUsageType(11)
assistanceNavigationGuidance → const AndroidUsageType

Usage value to use when the usage is driving or navigation directions.

const AndroidUsageType(12)
assistanceSonification → const AndroidUsageType

Usage value to use when the usage is sonification, such as with user interface sounds.

const AndroidUsageType(13)
game → const AndroidUsageType

Usage value to use when the usage is for game audio.

const AndroidUsageType(14)
virtualSource → const AndroidUsageType

@hide

Usage value to use when feeding audio to the platform and replacing "traditional" audio source, such as audio capture devices.

const AndroidUsageType(15)
assistant → const AndroidUsageType

Usage value to use for audio responses to user queries, audio instructions or help utterances.

const AndroidUsageType(16)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
final

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<AndroidUsageType>
A constant List of the values in this enum, in order of their declaration.