Package-level declarations
Types
A reference to a Camera, exposing its controller and preview methods (the equivalent of a ref on VisionCamera's <Camera />). Create it with rememberCameraRef and pass it to Camera.
The state of a Camera or Microphone permission, as returned by rememberCameraPermission or rememberMicrophonePermission.
A reference to a NativePreviewView, giving access to its methods (the equivalent of a ref on VisionCamera's <NativePreviewView />). Create it with rememberPreviewViewRef and pass it to NativePreviewView.
Functions
A Camera view (the equivalent of VisionCamera's <Camera />): it creates a preview output, runs a session with it and the given outputs (see rememberCamera), and displays the preview.
Displays the Frames of a FrameRenderer in an Android FrameRendererView, see the common declaration.
Displays the me.nathanfallet.visioncamera.Frames rendered by a FrameRenderer, using the platform's native view (me.nathanfallet.visioncamera.FrameRendererView, an Android SurfaceView or an iOS UIView). The equivalent of VisionCamera's <NativeFrameRendererView />.
Displays the Frames of a FrameRenderer in an iOS FrameRendererView, see the common declaration.
Displays the Camera feed in a CameraX-backed Android PreviewView, see the common declaration.
Displays the Camera feed of a CameraPreviewOutput, using the platform's native preview view (me.nathanfallet.visioncamera.PreviewView, an Android View or an iOS UIView).
Displays the Camera feed in an AVFoundation-backed iOS PreviewView, see the common declaration.
Use the Camera (the equivalent of VisionCamera's useCamera).
Get the CameraDevice that best satisfies the given filter at the given position, or the default CameraDevice at that position if no filter is given. It updates when devices change.
Get a list of all available CameraExtensions for this specific device (the equivalent of VisionCamera's useCameraDeviceExtensions). It is empty while loading, or if device is null.
Get the CameraDeviceFactory, or null while it is still loading.
Get a list of all CameraDevices. It updates when devices change (e.g. a USB Camera is plugged in).
Use the Camera permission. The status is refreshed every time the app is resumed.
Create a CameraRef, kept across recompositions.
Create a CameraDepthFrameOutput with the given options, kept across recompositions and recreated when the options change (the equivalent of VisionCamera's useDepthOutput).
Create a CameraFrameOutput with the given options, kept across recompositions and recreated when the options change (the equivalent of VisionCamera's useFrameOutput).
Create a FrameRenderer, kept across recompositions (the equivalent of VisionCamera's useFrameRenderer).
Create the native GestureControllers to attach to a NativePreviewView, and keep them bound to the given controller. Camera does it for you with enableNativeTapToFocusGesture and enableNativeZoomGesture.
Use the Microphone permission. The status is refreshed every time the app is resumed.
Create a CameraObjectOutput scanning the given types, kept across recompositions and recreated when the types change (the equivalent of VisionCamera's useObjectOutput). iOS only.
The current CameraOrientation of the given source, updated on every change, or null if it is not known yet or source is null (the equivalent of VisionCamera's useOrientation).
Create a CameraPhotoOutput with the given options, kept across recompositions and recreated when the options change (the equivalent of VisionCamera's usePhotoOutput).
Create a CameraPreviewOutput, kept across recompositions. Display it with NativePreviewView.
Create a PreviewViewRef, kept across recompositions.
Create a CameraVideoOutput with the given options, kept across recompositions and recreated when the options change (the equivalent of VisionCamera's useVideoOutput).