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
- Available extensions
Values
- unknown → const AndroidUsageType
-
Usage value to use when the usage is unknown.
- media → const AndroidUsageType
-
Usage value to use when the usage is media, such as music, or movie soundtracks.
- voiceCommunication → const AndroidUsageType
-
Usage value to use when the usage is voice communications, such as telephony or VoIP.
- voiceCommunicationSignalling → const AndroidUsageType
-
Usage value to use when the usage is in-call signalling, such as with a "busy" beep, or DTMF tones.
- alarm → const AndroidUsageType
-
Usage value to use when the usage is an alarm (e.g. wake-up alarm).
- notification → const AndroidUsageType
-
Usage value to use when the usage is notification. See other notification usages for more specialized uses.
- notificationRingtone → const AndroidUsageType
-
Usage value to use when the usage is telephony ringtone.
- 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.
- notificationCommunicationInstant → const AndroidUsageType
-
Usage value to use when the usage is notification for an "instant" communication such as a chat, or SMS.
- notificationCommunicationDelayed → const AndroidUsageType
-
Usage value to use when the usage is notification for a non-immediate type of communication such as e-mail.
- 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.
- assistanceAccessibility → const AndroidUsageType
-
Usage value to use when the usage is for accessibility, such as with a screen reader.
-
Usage value to use when the usage is driving or navigation directions.
- assistanceSonification → const AndroidUsageType
-
Usage value to use when the usage is sonification, such as with user interface sounds.
- game → const AndroidUsageType
-
Usage value to use when the usage is for game audio.
- virtualSource → const AndroidUsageType
-
@hide
Usage value to use when feeding audio to the platform and replacing "traditional" audio source, such as audio capture devices.
- assistant → const AndroidUsageType
-
Usage value to use for audio responses to user queries, audio instructions or help utterances.
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
- value → int
-
Available on AndroidUsageType, provided by the AndroidUsageTypeValue extension
no setter
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.