VICameraDevice
VoximplantCalls · iOS SDK v3
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 { get }
Camera device type.
Methods
changeResolution(to:)
@objc(changeResolutiontoToQualityPreset:) func changeResolution(to qualityPreset: VIQualityPreset)
Changes the preferrred camera resolution with a quality preset.
Parameters
qualityPreset 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.
Relationships
Inherits From: NSObject
Conforms To: ObjectiveC.NSObjectProtocol, Swift.CVarArg, Swift.CustomDebugStringConvertible, Swift.CustomStringConvertible, Swift.Equatable, Swift.Hashable