AudioUsageKind Enum

Definition

Enumerates values returned by several methods of AudioUsageKind.

public enum AudioUsageKind
type AudioUsageKind = 
Inheritance
AudioUsageKind

Fields

Name Value Description
Unknown 0

Usage value to use when the usage is unknown.

Android reference for android.media.AudioAttributes.USAGE_UNKNOWN.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Media 1

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

Android reference for android.media.AudioAttributes.USAGE_MEDIA.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

VoiceCommunication 2

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

Android reference for android.media.AudioAttributes.USAGE_VOICE_COMMUNICATION.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

VoiceCommunicationSignalling 3

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

Android reference for android.media.AudioAttributes.USAGE_VOICE_COMMUNICATION_SIGNALLING.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Alarm 4

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

Android reference for android.media.AudioAttributes.USAGE_ALARM.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Notification 5

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

Android reference for android.media.AudioAttributes.USAGE_NOTIFICATION.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

NotificationRingtone 6

Usage value to use when the usage is telephony ringtone.

Android reference for android.media.AudioAttributes.USAGE_NOTIFICATION_RINGTONE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

NotificationCommunicationRequest 7

This constant was deprecated in API level 33. Use USAGE_NOTIFICATION which is handled the same way as this usage by the audio framework

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

Android reference for android.media.AudioAttributes.USAGE_NOTIFICATION_COMMUNICATION_REQUEST.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

NotificationCommunicationInstant 8

This constant was deprecated in API level 33. Use USAGE_NOTIFICATION which is handled the same way as this usage by the audio framework

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

Android reference for android.media.AudioAttributes.USAGE_NOTIFICATION_COMMUNICATION_INSTANT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

NotificationCommunicationDelayed 9

This constant was deprecated in API level 33. Use USAGE_NOTIFICATION which is handled the same way as this usage by the audio framework

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

Android reference for android.media.AudioAttributes.USAGE_NOTIFICATION_COMMUNICATION_DELAYED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

NotificationEvent 10

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

Android reference for android.media.AudioAttributes.USAGE_NOTIFICATION_EVENT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

AssistanceAccessibility 11

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

Android reference for android.media.AudioAttributes.USAGE_ASSISTANCE_ACCESSIBILITY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

AssistanceNavigationGuidance 12

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

Android reference for android.media.AudioAttributes.USAGE_ASSISTANCE_NAVIGATION_GUIDANCE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

AssistanceSonification 13

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

Android reference for android.media.AudioAttributes.USAGE_ASSISTANCE_SONIFICATION.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Game 14

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

Android reference for android.media.AudioAttributes.USAGE_GAME.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Assistant 16

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

Android reference for android.media.AudioAttributes.USAGE_ASSISTANT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to