IVSCamera
Objective-C
@protocol IVSCamera <IVSImageDevice, IVSMultiSourceDevice>
                Swift
protocol IVSCamera : IVSImageDevice, IVSMultiSourceDevice
                An extension of IVSImageDevice that represents a physical camera accessible by the host device.
- 
                  
                  
Assign a delegate to receive updates about the attached camera.
Declaration
Objective-C
@property (nonatomic, weak) id<IVSCameraDelegate> _Nullable delegate;Swift
weak var delegate: (any IVSCameraDelegate)? { get set } - 
                  
                  
The minimum value which can be provided to the
setVideoZoomFactorAPI.Declaration
Objective-C
@property (nonatomic, readonly) CGFloat minAvailableVideoZoomFactor;Swift
var minAvailableVideoZoomFactor: CGFloat { get } - 
                  
                  
The maximum value which can be provided to the
setVideoZoomFactorAPI.Declaration
Objective-C
@property (nonatomic, readonly) CGFloat maxAvailableVideoZoomFactor;Swift
var maxAvailableVideoZoomFactor: CGFloat { get } - 
                  
                  
Whether this device supports enabling the torch.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL isTorchSupported;Swift
var isTorchSupported: Bool { get } - 
                  
                  
Applies a centered crop for the camera’s image output. A
zoomFactorof 2.0 means the resulting camera frames will be zoomed in twice as much as their normal size. Analogous to setting theAVCaptureDeviceproperty of the same name. Can be called rapidly, for example, via a slider or pinch-to-zoom.Declaration
Objective-C
- (void)setVideoZoomFactor:(CGFloat)zoomFactor;Swift
func setVideoZoomFactor(_ zoomFactor: CGFloat)Parameters
zoomFactorThe zoom factor to apply to this camera object.
 - 
                  
                  
Whether the torch is turned on for this camera. The camera must have torch support (see
isTorchSupported), or else calling this method will result in an error.Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isTorchEnabled) BOOL torchEnabled;Swift
var isTorchEnabled: Bool { get set }