react-native-camera-kit-no-.../ios/ReactNativeCameraKit/CameraProtocol.swift
Seph Soliman a73b84ef78 Removed iOsSleepBeforeStarting
No longer needed with proper begin/commit handling
2026-01-08 16:41:43 -08:00

44 lines
1.3 KiB
Swift

//
// CameraProtocol.swift
// ReactNativeCameraKit
//
import AVFoundation
import React
protocol CameraProtocol: AnyObject, FocusInterfaceViewDelegate {
var previewView: UIView { get }
func setup(cameraType: CameraType, supportedBarcodeType: [CodeFormat])
func cameraRemovedFromSuperview()
func update(torchMode: TorchMode)
func update(flashMode: FlashMode)
func update(cameraType: CameraType)
func update(onOrientationChange: RCTDirectEventBlock?)
func update(onZoom: RCTDirectEventBlock?)
func update(iOsDeferredStartEnabled: Bool?)
func update(zoom: Double?)
func update(maxZoom: Double?)
func update(resizeMode: ResizeMode)
func update(maxPhotoQualityPrioritization: MaxPhotoQualityPrioritization?)
func update(barcodeFrameSize: CGSize?)
func zoomPinchStart()
func zoomPinchChange(pinchScale: CGFloat)
func isBarcodeScannerEnabled(
_ isEnabled: Bool,
supportedBarcodeTypes: [CodeFormat],
onBarcodeRead: ((_ barcode: String, _ codeFormat: CodeFormat) -> Void)?)
func update(scannerFrameSize: CGRect?)
func capturePicture(
onWillCapture: @escaping () -> Void,
onSuccess:
@escaping (_ imageData: Data, _ thumbnailData: Data?, _ dimensions: CMVideoDimensions)
-> Void,
onError: @escaping (_ message: String) -> Void)
}