public static final class VideoProfile.CameraCapabilities extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<VideoProfile.CameraCapabilities> |
CREATOR
Responsible for creating CallCameraCapabilities objects from deserialized Parcels.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
CameraCapabilities(int width,
int height)
Create a call camera capabilities instance.
|
CameraCapabilities(int width,
int height,
boolean zoomSupported,
float maxZoom)
Create a call camera capabilities instance that optionally
supports zoom.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
|
int |
getHeight()
The height of the camera video in pixels.
|
float |
getMaxZoom()
The maximum zoom supported by the camera.
|
int |
getWidth()
The width of the camera video in pixels.
|
boolean |
isZoomSupported()
Whether the camera supports zoom.
|
void |
writeToParcel(Parcel dest,
int flags)
Flatten this object in to a Parcel.
|
public static final Parcelable.Creator<VideoProfile.CameraCapabilities> CREATOR
public CameraCapabilities(int width, int height)
width
- The width of the camera video (in pixels).height
- The height of the camera video (in pixels).public CameraCapabilities(int width, int height, boolean zoomSupported, float maxZoom)
width
- The width of the camera video (in pixels).height
- The height of the camera video (in pixels).zoomSupported
- True when camera supports zoom.maxZoom
- Maximum zoom supported by camera.public int describeContents()
describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
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.PARCELABLE_WRITE_RETURN_VALUE
.public int getWidth()
public int getHeight()
public boolean isZoomSupported()
public float getMaxZoom()