java.lang.Object | |
↳ | android.telecom.VideoProfile |
Represents attributes of video calls.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
VideoProfile.CameraCapabilities | Represents the camera capabilities important to a Video Telephony provider. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | QUALITY_DEFAULT | Use default video quality. | |||||||||
int | QUALITY_HIGH | "High" video quality. | |||||||||
int | QUALITY_LOW | "Low" video quality. | |||||||||
int | QUALITY_MEDIUM | "Medium" video quality. | |||||||||
int | STATE_AUDIO_ONLY | Used when answering or dialing a call to indicate that the call does not have a video component. | |||||||||
int | STATE_BIDIRECTIONAL | Video signal is bi-directional. | |||||||||
int | STATE_PAUSED | Video is paused. | |||||||||
int | STATE_RX_ENABLED | Video reception is enabled. | |||||||||
int | STATE_TX_ENABLED | Video transmission is enabled. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR | Responsible for creating VideoProfile objects from deserialized Parcels. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an instance of the VideoProfile
| |||||||||||
Creates an instance of the VideoProfile
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
The desired video quality for the call.
| |||||||||||
The video state of the call.
| |||||||||||
Indicates whether the video state is audio only.
| |||||||||||
Indicates whether the video state is bi-directional.
| |||||||||||
Indicates whether the video state is paused.
| |||||||||||
Indicates whether the video state has video reception enabled.
| |||||||||||
Indicates whether the video state has video transmission enabled.
| |||||||||||
Indicates whether video transmission or reception is enabled for a video state.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
| |||||||||||
Generates a string representation of a video state.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Use default video quality.
"High" video quality.
"Low" video quality.
"Medium" video quality.
Used when answering or dialing a call to indicate that the call does not have a video component.
Should not be used in comparison checks to determine if a video state represents an audio-only call.
The following, for example, is not the correct way to check if a call is audio-only:
// This is the incorrect way to check for an audio-only call.
if (videoState == VideoProfile.STATE_AUDIO_ONLY) {
// Handle audio-only call.
}
Instead, use the isAudioOnly(int)
helper function to check if a
video state represents an audio-only call:
// This is the correct way to check for an audio-only call.
if (VideoProfile.isAudioOnly(videoState)) {
// Handle audio-only call.
}
Video signal is bi-directional.
Video is paused.
Video reception is enabled.
Video transmission is enabled.
Responsible for creating VideoProfile objects from deserialized Parcels.
Creates an instance of the VideoProfile
videoState | The video state. |
---|
Creates an instance of the VideoProfile
videoState | The video state. |
---|---|
quality | The video quality. |
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
The desired video quality for the call.
Valid values: QUALITY_HIGH
, QUALITY_MEDIUM
,
QUALITY_LOW
, QUALITY_DEFAULT
.
The video state of the call.
Valid values: STATE_AUDIO_ONLY
,
STATE_BIDIRECTIONAL
,
STATE_TX_ENABLED
,
STATE_RX_ENABLED
,
STATE_PAUSED
.
Indicates whether the video state is audio only.
videoState | The video state. |
---|
True
if the video state is audio only, false
otherwise.
Indicates whether the video state is bi-directional.
videoState | The video state. |
---|
True
if the video is bi-directional, false
otherwise.
Indicates whether the video state is paused.
videoState | The video state. |
---|
True
if the video is paused, false
otherwise.
Indicates whether the video state has video reception enabled.
videoState | The video state. |
---|
True
if video reception is enabled, false
otherwise.
Indicates whether the video state has video transmission enabled.
videoState | The video state. |
---|
True
if video transmission is enabled, false
otherwise.
Indicates whether video transmission or reception is enabled for a video state.
videoState | The video state. |
---|
True
if video transmission or reception is enabled, 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.
Generates a string representation of a video state.
videoState | The video state. |
---|
Flatten this object in to a Parcel.
dest | 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 .
|