HeadphoneStateResponse

public class HeadphoneStateResponse extends Response<HeadphoneStateResult>

This class 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.

Result from SnapshotClient.getHeadphoneState().

Public Method Summary

HeadphoneState
getHeadphoneState()
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.

Inherited Method Summary

Public Methods

public HeadphoneState getHeadphoneState ()

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 headphone state.

Returns
  • Headphone state.