react-native-vision-camera
Version:
VisionCamera is the fastest and most powerful Camera for react-native.
25 lines (23 loc) • 764 B
text/typescript
import type { CameraSession } from '../session/CameraSession.nitro'
import type { PreviewView } from '../views/PreviewView.nitro'
import type { CameraOutput } from './CameraOutput.nitro'
/**
* Represents the {@linkcode CameraOutput} for preview.
*
* The {@linkcode CameraPreviewOutput} needs to be connected
* to the {@linkcode CameraSession} as an output, as well
* as to a {@linkcode PreviewView} as a target.
*
* @example
* Creating a `CameraPreviewOutput` via the Hooks API:
* ```ts
* const previewOutput = usePreviewOutput()
* ```
*
* @example
* Creating a `CameraPreviewOutput` via the Imperative API:
* ```ts
* const previewOutput = VisionCamera.createPreviewOutput()
* ```
*/
export interface CameraPreviewOutput extends CameraOutput {}