Added in API level 23

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

The width of the camera video in pixels.

Boolean

Returns true is zoom is supported, false otherwise.

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

Added in API level 23
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

Added in API level 29
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

Added in API level 23
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.

getHeight

Added in API level 23
fun getHeight(): Int

The height of the camera video in pixels.

getMaxZoom

Added in API level 29
fun getMaxZoom(): Float

Returns the maximum zoom supported by the camera.

getWidth

Added in API level 23
fun getWidth(): Int

The width of the camera video in pixels.

isZoomSupported

Added in API level 29
fun isZoomSupported(): Boolean

Returns true is zoom is supported, false otherwise.

writeToParcel

Added in API level 23
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

Added in API level 23
static val CREATOR: Parcelable.Creator<VideoProfile.CameraCapabilities!>

Responsible for creating CallCameraCapabilities objects from deserialized Parcels.