Package-level declarations
Types
Link copied to clipboard
A reference to a SkiaCamera (the equivalent of a ref on V5's <SkiaCamera />, SkiaCameraRef). Create it with rememberSkiaCameraRef and pass it to SkiaCamera.
Link copied to clipboard
Renders a Frame with the given draw function: the render argument of SkiaCamera's onFrame.
Functions
Link copied to clipboard
Create a SkiaCameraRef, kept across recompositions.
Link copied to clipboard
fun SkiaCamera(device: CameraDeviceOrPosition, isActive: Boolean, onFrame: (frame: Frame, SkiaRender) -> Unit, modifier: Modifier = Modifier, outputs: List<CameraOutput> = emptyList(), constraints: List<Constraint> = emptyList(), orientationSource: OrientationSource? = OrientationSource.DEVICE, zoom: Double? = null, exposure: Double? = null, torchMode: TorchMode? = null, controllerConfiguration: CameraControllerConfiguration = CameraControllerConfiguration(), sessionConfiguration: CameraSessionConfiguration = CameraSessionConfiguration(), warnIfRenderSkipped: Boolean = true, pixelFormat: TargetVideoPixelFormat = defaultSkiaPixelFormat, enablePhysicalBufferRotation: Boolean = false, enablePreviewSizedOutputBuffers: Boolean = false, targetResolution: Size = FrameOutputOptions().targetResolution, onControllerChanged: (CameraController?) -> Unit? = null, onSessionConfigSelected: (CameraSessionConfig) -> Unit? = null, onConfigured: () -> Unit? = null, onStarted: () -> Unit? = null, onStopped: () -> Unit? = null, onError: (Throwable) -> Unit = { println("VisionCamera error: $it") }, onInterruptionStarted: (InterruptionReason) -> Unit? = null, onInterruptionEnded: () -> Unit? = null, onSubjectAreaChanged: () -> Unit? = null, onUIRotationChanged: (rotation: Int) -> Unit? = null, ref: SkiaCameraRef? = null)
A Camera view that uses Skia (through Skiko) for rendering (the equivalent of V5's <SkiaCamera />).