java.lang.Object | |
↳ | android.telecom.CallAudioState |
Encapsulates the telecom audio state, including the current audio routing, supported audio routing and mute.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ROUTE_BLUETOOTH | Direct the audio stream through Bluetooth. | |||||||||
int | ROUTE_EARPIECE | Direct the audio stream through the device's earpiece. | |||||||||
int | ROUTE_SPEAKER | Direct the audio stream through the device's speakerphone. | |||||||||
int | ROUTE_WIRED_HEADSET | Direct the audio stream through a wired headset. | |||||||||
int | ROUTE_WIRED_OR_EARPIECE | Direct the audio stream through the device's earpiece or wired headset if one is connected. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR | Responsible for creating AudioState objects for deserialized Parcels. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for a
CallAudioState object.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Converts the provided audio route into a human readable string representation.
| |||||||||||
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Compares this instance with the specified object and indicates if they
are equal.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
| |||||||||||
Writes AudioState object into a serializeable Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Direct the audio stream through Bluetooth.
Direct the audio stream through the device's earpiece.
Direct the audio stream through the device's speakerphone.
Direct the audio stream through a wired headset.
Direct the audio stream through the device's earpiece or wired headset if one is connected.
Responsible for creating AudioState objects for deserialized Parcels.
Constructor for a CallAudioState
object.
muted | true if the call is muted, false otherwise. |
---|---|
route | The current audio route being used.
Allowed values:
ROUTE_EARPIECE
ROUTE_BLUETOOTH
ROUTE_WIRED_HEADSET
ROUTE_SPEAKER |
supportedRouteMask | Bit mask of all routes supported by this call. This should be a
bitwise combination of the following values:
ROUTE_EARPIECE
ROUTE_BLUETOOTH
ROUTE_WIRED_HEADSET
ROUTE_SPEAKER
|
Converts the provided audio route into a human readable string representation.
route | to convert into a string. |
---|
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Compares this instance with the specified object and indicates if they
are equal. In order to be equal, o
must represent the same object
as this instance using a class-specific comparison. The general contract
is that this comparison should be reflexive, symmetric, and transitive.
Also, no object reference other than null is equal to null.
The default implementation returns true
only if this ==
o
. See Writing a correct
equals
method
if you intend implementing your own equals
method.
The general contract for the equals
and hashCode()
methods is that if equals
returns true
for
any two objects, then hashCode()
must return the same value for
these objects. This means that subclasses of Object
usually
override either both methods or neither of them.
obj | the object to compare this instance with. |
---|
true
if the specified object is equal to this Object
; false
otherwise.Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.
Writes AudioState object into a serializeable Parcel.
destination | The Parcel in which the object should be written. |
---|---|
flags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|