This interface is deprecated.
The Awareness API is deprecated and will be turned down in a future Google Play services
release, as early as January 2027. There is no direct replacement.
Headphone state.
Constant Summary
| int | PLUGGED_IN | This constant is deprecated. The Awareness API is deprecated and will be turned down in a future Google Play services release, as early as January 2027. There is no direct replacement. |
| int | UNPLUGGED | This constant is deprecated. The Awareness API is deprecated and will be turned down in a future Google Play services release, as early as January 2027. There is no direct replacement. |
Public Method Summary
| abstract int |
getState()
This method is deprecated. The Awareness API is deprecated and will be
turned down in a future Google Play services release, as early as January 2027.
There is no direct replacement.
|
Constants
public static final int PLUGGED_IN
This constant is deprecated.
The Awareness API is deprecated and will be turned down in a future Google Play services
release, as early as January 2027. There is no direct replacement.
Indicates that headphones are plugged into the physical headphone jack.
public static final int UNPLUGGED
This constant is deprecated.
The Awareness API is deprecated and will be turned down in a future Google Play services
release, as early as January 2027. There is no direct replacement.
Indicates that there are no headphones plugged into the physical headphone jack.
Public Methods
public abstract int getState ()
This method is deprecated.
The Awareness API is deprecated and will be turned down in a future Google Play services
release, as early as January 2027. There is no direct replacement.
Returns the current state of the headphones.
Returns
- The headphone state, which is one of the values
PLUGGED_INorUNPLUGGED.