com.google.android.gms.awareness.state.HeadphoneState |
Headphone state.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | PLUGGED_IN | Indicates that headphones are plugged into the physical headphone jack. | |||||||||
int | UNPLUGGED | Indicates that there are no headphones plugged into the physical headphone jack. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the current state of the headphones.
|
Indicates that headphones are plugged into the physical headphone jack.
Indicates that there are no headphones plugged into the physical headphone jack.
Returns the current state of the headphones.
Returns | |
---|---|
int |
The headphone state, which is one of the values PLUGGED_IN
or UNPLUGGED .
|