IOSCameraController

Properties

Link copied to clipboard
abstract val captureDevice: AVCaptureDevice
Link copied to clipboard
abstract val captureDeviceInput: AVCaptureDeviceInput
Link copied to clipboard
abstract val captureSession: AVCaptureSession
Link copied to clipboard
Link copied to clipboard
abstract val fpsRange: Pair<Int, Int>
Link copied to clipboard
abstract val hasFlash: Boolean
Link copied to clipboard
abstract val hasTorch: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val isMuted: StateFlow<Boolean>
Link copied to clipboard
abstract val isRecording: StateFlow<Boolean>
Link copied to clipboard
Link copied to clipboard
abstract val zoomRange: Pair<Float, Float>

Functions

Link copied to clipboard
abstract fun addOutput(output: AVCaptureOutput)
Link copied to clipboard
abstract fun getCaptureDevice(deviceTypes: List<AVCaptureDeviceType?>, position: AVCaptureDevicePosition, uniqueId: String? = null): AVCaptureDevice?
Link copied to clipboard
abstract fun getCurrentDeviceOrientation(): AVCaptureVideoOrientation
Link copied to clipboard
abstract fun getCurrentPosition(): AVCaptureDevicePosition
Link copied to clipboard
abstract fun isVideoStabilizationSupported(mode: AVCaptureVideoStabilizationMode): Boolean
Link copied to clipboard
abstract fun isZeroShutterLagSupported(output: AVCaptureOutput): Boolean
Link copied to clipboard
abstract fun muteRecording(isMuted: Boolean): Result<Boolean>
Link copied to clipboard
abstract fun pauseRecording(): Result<Boolean>
Link copied to clipboard
abstract fun release()
Link copied to clipboard
abstract fun removeOutput(output: AVCaptureOutput)
Link copied to clipboard
abstract fun renderPreviewLayer(view: UIView)
Link copied to clipboard
abstract fun resumeRecording(): Result<Boolean>
Link copied to clipboard
abstract fun setAudioEnabled(isEnabled: Boolean)
Link copied to clipboard
abstract fun setCameraOutputQuality(quality: AVCapturePhotoQualityPrioritization, highResolutionEnabled: Boolean)
Link copied to clipboard
abstract fun setCaptureDevice(device: AVCaptureDevice)
Link copied to clipboard
abstract fun setDeviceFormat(format: AVCaptureDeviceFormat)
Link copied to clipboard
abstract fun setExposureCompensation(exposureCompensation: Float)
Link copied to clipboard
abstract fun setFlashMode(mode: AVCaptureFlashMode)
Link copied to clipboard
abstract fun setFocusPoint(focusPoint: CValue<CGPoint>)
Link copied to clipboard
abstract fun setFrameRate(frameRate: Int)
Link copied to clipboard
abstract fun setPreviewBackgroundColor(uiColor: UIColor)
Link copied to clipboard
abstract fun setPreviewGravity(gravity: AVLayerVideoGravity?)
Link copied to clipboard
abstract fun setTorchEnabled(isTorchEnabled: Boolean)
Link copied to clipboard
abstract fun setVideoStabilization(mode: AVCaptureVideoStabilizationMode)
Link copied to clipboard
abstract fun setZoomRatio(zoomRatio: Float)
Link copied to clipboard
abstract fun start(captureOutput: AVCaptureOutput, device: AVCaptureDevice, onRunningChanged: (Boolean) -> Unit)
Link copied to clipboard
abstract fun startRecording(isMirrorEnabled: Boolean, videoOrientation: AVCaptureVideoOrientation, filename: String, onVideoCaptured: (Result<String>) -> Unit)
Link copied to clipboard
abstract fun stopRecording(): Result<Boolean>
Link copied to clipboard
abstract fun takePicture(isMirrorEnabled: Boolean, flashMode: AVCaptureFlashMode, videoOrientation: AVCaptureVideoOrientation, onPictureCaptured: (Result<ByteArray>) -> Unit)
abstract fun takePicture(filename: String, isMirrorEnabled: Boolean, flashMode: AVCaptureFlashMode, videoOrientation: AVCaptureVideoOrientation, onPictureCaptured: (Result<String>) -> Unit)
Link copied to clipboard
abstract fun withSessionConfiguration(block: () -> Unit)