AudioUsage
Stay organized with collections
Save and categorize content based on your preferences.
Identify the audio usage of an SASS device.
Constant Summary
int |
A2DP
|
This constant is deprecated. Use
MEDIA
instead. |
int |
CALL
|
The usage of this audio event is call. |
int |
HFP
|
This constant is deprecated. Use
CALL
instead. |
int |
LE_AUDIO
|
This constant is deprecated. Use
MEDIA
or CALL
instead. |
int |
MEDIA
|
The usage of this audio event is media. |
int |
UNKNOWN
|
|
Inherited Method Summary
From interface java.lang.annotation.Annotation
abstract Class<? extends Annotation>
|
annotationType()
|
abstract boolean |
|
abstract int |
hashCode()
|
abstract String
|
toString()
|
Constants
public static final int
A2DP
This constant is deprecated.
Use MEDIA
instead.
Constant Value: 2
public static final int
CALL
public static final int
HFP
This constant is deprecated.
Use CALL
instead.
Constant Value: 1
public static final int
LE_AUDIO
This constant is deprecated.
Use MEDIA
or CALL
instead.
Constant Value: 3
public static final int
UNKNOWN
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eAudioUsage\u003c/code\u003e is an annotation used to identify the audio usage of an SASS device.\u003c/p\u003e\n"],["\u003cp\u003eIt defines constants representing different audio usages, such as \u003ccode\u003eCALL\u003c/code\u003e for calls and \u003ccode\u003eMEDIA\u003c/code\u003e for media playback.\u003c/p\u003e\n"],["\u003cp\u003eDeprecated constants like \u003ccode\u003eA2DP\u003c/code\u003e, \u003ccode\u003eHFP\u003c/code\u003e, and \u003ccode\u003eLE_AUDIO\u003c/code\u003e should be replaced with \u003ccode\u003eMEDIA\u003c/code\u003e or \u003ccode\u003eCALL\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCALL\u003c/code\u003e supports \u003ccode\u003eBluetoothProfile.HEADSET\u003c/code\u003e for Bluetooth Classic and \u003ccode\u003eBluetoothProfile.LE_AUDIO\u003c/code\u003e for LE Audio devices.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMEDIA\u003c/code\u003e supports \u003ccode\u003eBluetoothProfile.A2DP\u003c/code\u003e for Bluetooth Classic and \u003ccode\u003eBluetoothProfile.LE_AUDIO\u003c/code\u003e for LE Audio devices.\u003c/p\u003e\n"]]],[],null,[]]