> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# VICameraDevice

Class that represents a camera device.

@objc class VICameraDevice

## Properties

### id

@objc let id: String

Camera device id.

Every available capture device has a unique ID that persists on one system across device connections and disconnections, application restarts, and reboots of the system itself. You can store the value returned by this property to recall or track the status of a specific device in the future.

### name

@objc let name: String

Camera device name.

### resolution

@objc var resolution: CGSize \{ get }

Default or selected camera resolution.

### type

@objc var type: [VICameraDeviceType](/api-reference/iossdk/calls/vicameradevicetype) \{ get }

Camera device type.

## Methods

### changeResolution(to:)

@objc(changeResolutiontoToQualityPreset:) func changeResolution(to qualityPreset: [VIQualityPreset](/api-reference/iossdk/calls/viqualitypreset))

Changes the preferrred camera resolution with a quality preset.

**Parameters**

**qualityPreset** [VIQualityPreset](/api-reference/iossdk/calls/viqualitypreset)

Quality preset

### changeResolution(to:)

@objc func changeResolution(to size: CGSize)

Changes the preferred resolution for the camera device.

**Parameters**

**size** CGSize

Preferred resolution

The closest resolution available for the camera is selected.

### setResolutionToPreferred()

@objc func setResolutionToPreferred()

Changes  camera resolution to [preferredResolution](/api-reference/iossdk/calls/vicameravideosource#symbol-448a883479ecc89b).

## Relationships

**Inherits From:** NSObject

**Conforms To:** ObjectiveC.NSObjectProtocol, Swift.CVarArg, Swift.CustomDebugStringConvertible, Swift.CustomStringConvertible, Swift.Equatable, Swift.Hashable