CameraCapabilities
class CameraCapabilities : Parcelable
| kotlin.Any | |
| ↳ | android.telecom.VideoProfile.CameraCapabilities | 
Represents the camera capabilities important to a Video Telephony provider.
Summary
| Inherited constants | |
|---|---|
| Public constructors | |
|---|---|
| CameraCapabilities(width: Int, height: Int)Create a call camera capabilities instance. | |
| CameraCapabilities(width: Int, height: Int, zoomSupported: Boolean, maxZoom: Float)Create a call camera capabilities instance that optionally supports zoom. | |
| Public methods | |
|---|---|
| Int | Describe the kinds of special objects contained in this Parcelable's marshalled representation. | 
| Int | The height of the camera video in pixels. | 
| Float | Returns the maximum zoom supported by the camera. | 
| Int | getWidth()The width of the camera video in pixels. | 
| Boolean | Returns  | 
| Unit | writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. | 
| Properties | |
|---|---|
| static Parcelable.Creator<VideoProfile.CameraCapabilities!> | Responsible for creating CallCameraCapabilities objects from deserialized Parcels. | 
Public constructors
CameraCapabilities
CameraCapabilities(
width: Int,
height: Int)
Create a call camera capabilities instance.
| Parameters | |
|---|---|
| width | Int: The width of the camera video (in pixels). Value is 0 or greater | 
| height | Int: The height of the camera video (in pixels). Value is 0 or greater | 
CameraCapabilities
CameraCapabilities(
width: Int,
height: Int,
zoomSupported: Boolean,
maxZoom: Float)
Create a call camera capabilities instance that optionally supports zoom.
| Parameters | |
|---|---|
| width | Int: The width of the camera video (in pixels). Value is 0 or greater | 
| height | Int: The height of the camera video (in pixels). Value is 0 or greater | 
| zoomSupported | Boolean: True when camera supports zoom. | 
| maxZoom | Float: Maximum zoom supported by camera. Value is 1.0f or greater | 
Public methods
describeContents
fun describeContents(): Int
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
| Return | |
|---|---|
| Int | a bitmask indicating the set of special object types marshalled by the Parcelable. | 
getMaxZoom
fun getMaxZoom(): Float
Returns the maximum zoom supported by the camera.
isZoomSupported
fun isZoomSupported(): Boolean
Returns true is zoom is supported, false otherwise.
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
| Parameters | |
|---|---|
| dest | Parcel: The Parcel in which the object should be written. | 
| flags | Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. | 
Properties
CREATOR
static val CREATOR: Parcelable.Creator<VideoProfile.CameraCapabilities!>
Responsible for creating CallCameraCapabilities objects from deserialized Parcels.
