LiveKit Swift Client SDK Documentation

Class Camera​Capture​Options

@objc
public class CameraCaptureOptions: NSObject, VideoCaptureOptions  
%647 CameraCaptureOptions CameraCaptureOptions NSObject NSObject CameraCaptureOptions->NSObject VideoCaptureOptions VideoCaptureOptions CameraCaptureOptions->VideoCaptureOptions

Conforms To

VideoCaptureOptions
NSObject

Initializers

init()

@objc
    public override init()  

init(position:​preferred​Format:​dimensions:​fps:​)

@objc
    public init(position: AVCaptureDevice.Position = .front,
                preferredFormat: AVCaptureDevice.Format? = nil,
                dimensions: Dimensions = .h720_169,
                fps: Int = 30)  

Properties

position

@objc
    public let position: AVCaptureDevice.Position

preferred​Format

@objc
    public let preferredFormat: AVCaptureDevice.Format? 

dimensions

@objc
    public let dimensions: Dimensions

preferred dimensions for capturing, the SDK may override with a recommended value.

fps

@objc
    public let fps: Int

preferred fps to use for capturing, the SDK may override with a recommended value.

hash

public override var hash: Int  

Methods

copy​With(position:​preferred​Format:​dimensions:​fps:​)

public func copyWith(position: AVCaptureDevice.Position? = nil,
                         preferredFormat: AVCaptureDevice.Format? = nil,
                         dimensions: Dimensions? = nil,
                         fps: Int? = nil) -> CameraCaptureOptions  

is​Equal(_:​)

public override func isEqual(_ object: Any?) -> Bool