# VideoProfile.CameraCapabilities

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# CameraCapabilities

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/telecom/VideoProfile.CameraCapabilities "View this page in Java")  

```
class CameraCapabilities : Parcelable
```

|---|----------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                     ||
| ↳ | [android.telecom.VideoProfile.CameraCapabilities](https://developer.android.com/reference/kotlin/android/telecom/VideoProfile.CameraCapabilities#) |

Represents the camera capabilities important to a Video Telephony provider.

## Summary

| Inherited constants ||
|---|---|
| From class[Parcelable](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#) |----------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CONTENTS_FILE_DESCRIPTOR](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR:kotlin.Int) <br /> Descriptor bit used with[describeContents()](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#describeContents()): indicates that the Parcelable object's flattened representation includes a file descriptor. <br />                                                                                                                                                                                                        | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE:kotlin.Int) <br /> Flag for use with[writeToParcel](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#writeToParcel(android.os.Parcel,%20kotlin.Int)): the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`". Some implementations may want to release resources at this point. <br /> | ||

|                                                                                                                                                                                                                                                                                                                          Public constructors                                                                                                                                                                                                                                                                                                                          ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [CameraCapabilities](https://developer.android.com/reference/kotlin/android/telecom/VideoProfile.CameraCapabilities#CameraCapabilities(kotlin.Int,%20kotlin.Int))`(`width:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `height:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Create a call camera capabilities instance.                                                                                                                                                                                                                                                                     |
| [CameraCapabilities](https://developer.android.com/reference/kotlin/android/telecom/VideoProfile.CameraCapabilities#CameraCapabilities(kotlin.Int,%20kotlin.Int,%20kotlin.Boolean,%20kotlin.Float))`(`width:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `height:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `zoomSupported:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`, `maxZoom:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`)` Create a call camera capabilities instance that optionally supports zoom. |

|                                                                                                                                                                                                                               Public methods                                                                                                                                                                                                                                ||
|------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)         | [describeContents](https://developer.android.com/reference/kotlin/android/telecom/VideoProfile.CameraCapabilities#describeContents())`()` Describe the kinds of special objects contained in this Parcelable's marshalled representation.                                                                                                                                               |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)         | [getHeight](https://developer.android.com/reference/kotlin/android/telecom/VideoProfile.CameraCapabilities#getHeight())`()` The height of the camera video in pixels.                                                                                                                                                                                                                   |
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)     | [getMaxZoom](https://developer.android.com/reference/kotlin/android/telecom/VideoProfile.CameraCapabilities#getMaxZoom())`()` Returns the maximum zoom supported by the camera.                                                                                                                                                                                                         |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)         | [getWidth](https://developer.android.com/reference/kotlin/android/telecom/VideoProfile.CameraCapabilities#getWidth())`()` The width of the camera video in pixels.                                                                                                                                                                                                                      |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isZoomSupported](https://developer.android.com/reference/kotlin/android/telecom/VideoProfile.CameraCapabilities#isZoomSupported())`()` Returns`true`is zoom is supported,`false`otherwise.                                                                                                                                                                                             |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)       | [writeToParcel](https://developer.android.com/reference/kotlin/android/telecom/VideoProfile.CameraCapabilities#writeToParcel(android.os.Parcel,%20kotlin.Int))`(`dest:` `[Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html#)`, `flags:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Flatten this object in to a Parcel. |

|                                                                                                                                                                                                                                        Properties                                                                                                                                                                                                                                         ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Parcelable.Creator](https://developer.android.com/reference/kotlin/android/os/Parcelable.Creator.html#)\<[VideoProfile.CameraCapabilities](https://developer.android.com/reference/kotlin/android/telecom/VideoProfile.CameraCapabilities#)!\> | [CREATOR](https://developer.android.com/reference/kotlin/android/telecom/VideoProfile.CameraCapabilities#CREATOR:android.os.Parcelable.Creator) Responsible for creating CallCameraCapabilities objects from deserialized Parcels. |

## Public constructors

### CameraCapabilities

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
CameraCapabilities(
    width: Int, 
    height: Int)
```

Create a call camera capabilities instance.

|                                                                       Parameters                                                                       ||
|----------|----------------------------------------------------------------------------------------------------------------------------------------------|
| `width`  | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):The width of the camera video (in pixels). Value is 0 or greater  |
| `height` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):The height of the camera video (in pixels). Value is 0 or greater |

### CameraCapabilities

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
CameraCapabilities(
    width: Int, 
    height: Int, 
    zoomSupported: Boolean, 
    maxZoom: Float)
```

Create a call camera capabilities instance that optionally supports zoom.

|                                                                          Parameters                                                                           ||
|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------|
| `width`         | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):The width of the camera video (in pixels). Value is 0 or greater  |
| `height`        | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):The height of the camera video (in pixels). Value is 0 or greater |
| `zoomSupported` | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html):True when camera supports zoom.                           |
| `maxZoom`       | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html):Maximum zoom supported by camera. Value is 1.0f or greater    |

## Public methods

### describeContents

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun describeContents(): Int
```

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

|                                                                             Return                                                                             ||
|----------------------------------------------------------------------------|------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a bitmask indicating the set of special object types marshalled by the Parcelable. |

### getHeight

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getHeight(): Int
```

The height of the camera video in pixels.  

### getMaxZoom

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getMaxZoom(): Float
```

Returns the maximum zoom supported by the camera.  

### getWidth

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getWidth(): Int
```

The width of the camera video in pixels.  

### isZoomSupported

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun isZoomSupported(): Boolean
```

Returns`true`is zoom is supported,`false`otherwise.  

### writeToParcel

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun writeToParcel(
    dest: Parcel, 
    flags: Int
): Unit
```

Flatten this object in to a Parcel.

|                                                                                                                                                  Parameters                                                                                                                                                  ||
|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `dest`  | [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html#):The Parcel in which the object should be written.                                                                                                                                                                  |
| `flags` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):Additional flags about how the object should be written. May be 0 or[PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE:kotlin.Int). |

## Properties

### CREATOR

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val CREATOR: Parcelable.Creator<VideoProfile.CameraCapabilities!>
```

Responsible for creating CallCameraCapabilities objects from deserialized Parcels.