diff --git a/docs/docs/api/classes/camera.camera-1.md b/docs/docs/api/classes/camera.camera-1.md index 2a201a5..bbe69fe 100644 --- a/docs/docs/api/classes/camera.camera-1.md +++ b/docs/docs/api/classes/camera.camera-1.md @@ -56,7 +56,7 @@ Name | Type | **Returns:** [*Camera*](camera.camera-1.md) -Defined in: [src/Camera.tsx:210](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L210) +Defined in: [src/Camera.tsx:210](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L210) ## Properties @@ -86,7 +86,7 @@ ___ • **displayName**: *string* -Defined in: [src/Camera.tsx:208](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L208) +Defined in: [src/Camera.tsx:208](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L208) ___ @@ -102,7 +102,7 @@ ___ • `Private` `Readonly` **ref**: *RefObject* -Defined in: [src/Camera.tsx:210](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L210) +Defined in: [src/Camera.tsx:210](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L210) ___ @@ -158,7 +158,7 @@ ___ ▪ `Static` **displayName**: *string*= 'Camera' -Defined in: [src/Camera.tsx:207](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L207) +Defined in: [src/Camera.tsx:207](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L207) ## Accessors @@ -168,7 +168,7 @@ Defined in: [src/Camera.tsx:207](https://github.com/cuvent/react-native-vision-c **Returns:** *null* \| *number* -Defined in: [src/Camera.tsx:221](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L221) +Defined in: [src/Camera.tsx:221](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L221) ## Methods @@ -429,7 +429,7 @@ Name | Type | Description | **Returns:** *Promise* -Defined in: [src/Camera.tsx:326](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L326) +Defined in: [src/Camera.tsx:326](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L326) ___ @@ -460,7 +460,7 @@ so only use this after the `onInitialized` event has fired. **Returns:** *Promise*<[*CameraPhotoCodec*](../modules/cameracodec.md#cameraphotocodec)[]\> -Defined in: [src/Camera.tsx:353](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L353) +Defined in: [src/Camera.tsx:353](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L353) ___ @@ -475,7 +475,7 @@ so only use this after the `onInitialized` event has fired. **Returns:** *Promise*<[*CameraVideoCodec*](../modules/cameracodec.md#cameravideocodec)[]\> -Defined in: [src/Camera.tsx:340](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L340) +Defined in: [src/Camera.tsx:340](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L340) ___ @@ -515,7 +515,7 @@ Name | Type | **Returns:** *void* -Defined in: [src/Camera.tsx:445](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L445) +Defined in: [src/Camera.tsx:445](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L445) ___ @@ -531,7 +531,7 @@ Name | Type | **Returns:** *void* -Defined in: [src/Camera.tsx:428](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L428) +Defined in: [src/Camera.tsx:428](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L428) ___ @@ -541,7 +541,7 @@ ___ **Returns:** *void* -Defined in: [src/Camera.tsx:441](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L441) +Defined in: [src/Camera.tsx:441](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L441) ___ @@ -551,7 +551,7 @@ ___ **Returns:** ReactNode -Defined in: [src/Camera.tsx:461](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L461) +Defined in: [src/Camera.tsx:461](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L461) ___ @@ -638,7 +638,7 @@ Name | Type | **Returns:** *void* -Defined in: [src/Camera.tsx:282](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L282) +Defined in: [src/Camera.tsx:282](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L282) ___ @@ -658,7 +658,7 @@ setTimeout(async () => { **Returns:** *Promise* -Defined in: [src/Camera.tsx:309](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L309) +Defined in: [src/Camera.tsx:309](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L309) ___ @@ -678,7 +678,7 @@ Name | Type | **Returns:** *Promise* & { `height`: *number* ; `isRawPhoto`: *boolean* ; `metadata`: { `DPIHeight`: *number* ; `DPIWidth`: *number* ; `Orientation`: *number* ; `{Exif}`: { `ApertureValue`: *number* ; `BrightnessValue`: *number* ; `ColorSpace`: *number* ; `DateTimeDigitized`: *string* ; `DateTimeOriginal`: *string* ; `ExifVersion`: *string* ; `ExposureBiasValue`: *number* ; `ExposureMode`: *number* ; `ExposureProgram`: *number* ; `ExposureTime`: *number* ; `FNumber`: *number* ; `Flash`: *number* ; `FocalLenIn35mmFilm`: *number* ; `FocalLength`: *number* ; `ISOSpeedRatings`: *number*[] ; `LensMake`: *string* ; `LensModel`: *string* ; `LensSpecification`: *number*[] ; `MeteringMode`: *number* ; `OffsetTime`: *string* ; `OffsetTimeDigitized`: *string* ; `OffsetTimeOriginal`: *string* ; `PixelXDimension`: *number* ; `PixelYDimension`: *number* ; `SceneType`: *number* ; `SensingMethod`: *number* ; `ShutterSpeedValue`: *number* ; `SubjectArea`: *number*[] ; `SubsecTimeDigitized`: *string* ; `SubsecTimeOriginal`: *string* ; `WhiteBalance`: *number* } ; `{MakerApple}?`: *undefined* \| *Record* ; `{TIFF}`: { `DateTime`: *string* ; `HostComputer?`: *undefined* \| *string* ; `Make`: *string* ; `Model`: *string* ; `ResolutionUnit`: *number* ; `Software`: *string* ; `XResolution`: *number* ; `YResolution`: *number* } } ; `thumbnail?`: *undefined* \| *Record* ; `width`: *number* }\>\> -Defined in: [src/Camera.tsx:234](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L234) +Defined in: [src/Camera.tsx:234](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L234) ___ @@ -700,7 +700,7 @@ Name | Type | **Returns:** *Promise* & { `height`: *number* ; `isRawPhoto`: *boolean* ; `metadata`: { `DPIHeight`: *number* ; `DPIWidth`: *number* ; `Orientation`: *number* ; `{Exif}`: { `ApertureValue`: *number* ; `BrightnessValue`: *number* ; `ColorSpace`: *number* ; `DateTimeDigitized`: *string* ; `DateTimeOriginal`: *string* ; `ExifVersion`: *string* ; `ExposureBiasValue`: *number* ; `ExposureMode`: *number* ; `ExposureProgram`: *number* ; `ExposureTime`: *number* ; `FNumber`: *number* ; `Flash`: *number* ; `FocalLenIn35mmFilm`: *number* ; `FocalLength`: *number* ; `ISOSpeedRatings`: *number*[] ; `LensMake`: *string* ; `LensModel`: *string* ; `LensSpecification`: *number*[] ; `MeteringMode`: *number* ; `OffsetTime`: *string* ; `OffsetTimeDigitized`: *string* ; `OffsetTimeOriginal`: *string* ; `PixelXDimension`: *number* ; `PixelYDimension`: *number* ; `SceneType`: *number* ; `SensingMethod`: *number* ; `ShutterSpeedValue`: *number* ; `SubjectArea`: *number*[] ; `SubsecTimeDigitized`: *string* ; `SubsecTimeOriginal`: *string* ; `WhiteBalance`: *number* } ; `{MakerApple}?`: *undefined* \| *Record* ; `{TIFF}`: { `DateTime`: *string* ; `HostComputer?`: *undefined* \| *string* ; `Make`: *string* ; `Model`: *string* ; `ResolutionUnit`: *number* ; `Software`: *string* ; `XResolution`: *number* ; `YResolution`: *number* } } ; `thumbnail?`: *undefined* \| *Record* ; `width`: *number* }\>\> -Defined in: [src/Camera.tsx:249](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L249) +Defined in: [src/Camera.tsx:249](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L249) ___ @@ -712,7 +712,7 @@ Get a list of all available camera devices on the current phone. **Returns:** *Promise*[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\>[] ; `hasFlash`: *boolean* ; `hasTorch`: *boolean* ; `id`: *string* ; `isMultiCam`: *boolean* ; `maxZoom`: *number* ; `minZoom`: *number* ; `name`: *string* ; `neutralZoom`: *number* ; `position`: [*CameraPosition*](../modules/cameraposition.md#cameraposition) ; `supportsLowLightBoost`: *boolean* }\>[]\> -Defined in: [src/Camera.tsx:366](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L366) +Defined in: [src/Camera.tsx:366](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L366) ___ @@ -727,7 +727,7 @@ To actually prompt the user for camera permission, use `Camera.requestCameraPerm **Returns:** *Promise*<[*CameraPermissionStatus*](../modules/camera.md#camerapermissionstatus)\> -Defined in: [src/Camera.tsx:379](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L379) +Defined in: [src/Camera.tsx:379](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L379) ___ @@ -744,7 +744,7 @@ Name | Type | **Returns:** *null* \| CameraState -Defined in: [src/Camera.tsx:454](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L454) +Defined in: [src/Camera.tsx:454](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L454) ___ @@ -759,7 +759,7 @@ To actually prompt the user for microphone permission, use `Camera.requestMicrop **Returns:** *Promise*<[*CameraPermissionStatus*](../modules/camera.md#camerapermissionstatus)\> -Defined in: [src/Camera.tsx:392](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L392) +Defined in: [src/Camera.tsx:392](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L392) ___ @@ -774,7 +774,7 @@ and `"denied"` will be returned. **Returns:** *Promise*<[*CameraPermissionRequestResult*](../modules/camera.md#camerapermissionrequestresult)\> -Defined in: [src/Camera.tsx:405](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L405) +Defined in: [src/Camera.tsx:405](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L405) ___ @@ -789,4 +789,4 @@ and `"denied"` will be returned. **Returns:** *Promise*<[*CameraPermissionRequestResult*](../modules/camera.md#camerapermissionrequestresult)\> -Defined in: [src/Camera.tsx:418](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L418) +Defined in: [src/Camera.tsx:418](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L418) diff --git a/docs/docs/api/classes/cameraerror.cameracaptureerror.md b/docs/docs/api/classes/cameraerror.cameracaptureerror.md index c8f86db..6bf18a0 100644 --- a/docs/docs/api/classes/cameraerror.cameracaptureerror.md +++ b/docs/docs/api/classes/cameraerror.cameracaptureerror.md @@ -34,7 +34,7 @@ Name | Type | **Returns:** [*CameraCaptureError*](cameraerror.cameracaptureerror.md) -Defined in: [src/CameraError.ts:105](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L105) +Defined in: [src/CameraError.ts:105](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L105) ## Properties @@ -80,7 +80,7 @@ Defined in: node_modules/@types/node/globals.d.ts:13 **Returns:** *undefined* \| [*ErrorWithCause*](../interfaces/cameraerror.errorwithcause.md) -Defined in: [src/CameraError.ts:103](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L103) +Defined in: [src/CameraError.ts:103](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L103) ___ @@ -90,7 +90,7 @@ ___ **Returns:** TCode -Defined in: [src/CameraError.ts:97](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L97) +Defined in: [src/CameraError.ts:97](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L97) ___ @@ -100,7 +100,7 @@ ___ **Returns:** *string* -Defined in: [src/CameraError.ts:100](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L100) +Defined in: [src/CameraError.ts:100](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L100) ## Methods diff --git a/docs/docs/api/classes/cameraerror.cameraruntimeerror.md b/docs/docs/api/classes/cameraerror.cameraruntimeerror.md index 4773b69..b30cb3e 100644 --- a/docs/docs/api/classes/cameraerror.cameraruntimeerror.md +++ b/docs/docs/api/classes/cameraerror.cameraruntimeerror.md @@ -34,7 +34,7 @@ Name | Type | **Returns:** [*CameraRuntimeError*](cameraerror.cameraruntimeerror.md) -Defined in: [src/CameraError.ts:105](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L105) +Defined in: [src/CameraError.ts:105](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L105) ## Properties @@ -80,7 +80,7 @@ Defined in: node_modules/@types/node/globals.d.ts:13 **Returns:** *undefined* \| [*ErrorWithCause*](../interfaces/cameraerror.errorwithcause.md) -Defined in: [src/CameraError.ts:103](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L103) +Defined in: [src/CameraError.ts:103](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L103) ___ @@ -90,7 +90,7 @@ ___ **Returns:** TCode -Defined in: [src/CameraError.ts:97](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L97) +Defined in: [src/CameraError.ts:97](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L97) ___ @@ -100,7 +100,7 @@ ___ **Returns:** *string* -Defined in: [src/CameraError.ts:100](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L100) +Defined in: [src/CameraError.ts:100](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L100) ## Methods diff --git a/docs/docs/api/classes/index.camera.md b/docs/docs/api/classes/index.camera.md deleted file mode 100644 index d814de7..0000000 --- a/docs/docs/api/classes/index.camera.md +++ /dev/null @@ -1,792 +0,0 @@ ---- -id: "index.camera" -title: "Class: Camera" -sidebar_label: "index.Camera" -custom_edit_url: null -hide_title: true ---- - -# Class: Camera - -[index](../modules/index.md).Camera - -### A powerful `` component. - -The `` component's most important (and therefore _required_) properties are: - -* `device`: Specifies the [CameraDevice](../modules/index.md#cameradevice) to use. Get a [CameraDevice](../modules/index.md#cameradevice) by using the [useCameraDevices](../modules/index.md#usecameradevices) hook, or manually by using the [Camera.getAvailableCameraDevices](index.camera.md#getavailablecameradevices) function. -* `isActive`: A boolean value that specifies whether the Camera should actively stream video frames or not. This can be compared to a Video component, where `isActive` specifies whether the video is paused or not. If you fully unmount the `` component instead of using `isActive={false}`, the Camera will take a bit longer to start again. - -**`example`** -```jsx -function App() { - const devices = useCameraDevices('wide-angle-camera') - const device = devices.back - - if (device == null) return - return ( - - ) -} -``` - -**`component`** - -## Hierarchy - -* *PureComponent*<[*CameraProps*](../modules/camera.md#cameraprops), CameraState\> - - ↳ **Camera** - -## Constructors - -### constructor - -\+ **new Camera**(`props`: [*CameraProps*](../modules/camera.md#cameraprops)): [*Camera*](camera.camera-1.md) - -#### Parameters: - -Name | Type | -:------ | :------ | -`props` | [*CameraProps*](../modules/camera.md#cameraprops) | - -**Returns:** [*Camera*](camera.camera-1.md) - -Defined in: [src/Camera.tsx:210](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L210) - -## Properties - -### context - -• **context**: *any* - -If using the new style context, re-declare this in your class to be the -`React.ContextType` of your `static contextType`. -Should be used with type annotation or static contextType. - -```ts -static contextType = MyContext -// For TS pre-3.7: -context!: React.ContextType -// For TS 3.7 and above: -declare context: React.ContextType -``` - -**`see`** https://reactjs.org/docs/context.html - -Defined in: node_modules/@types/react/index.d.ts:480 - -___ - -### displayName - -• **displayName**: *string* - -Defined in: [src/Camera.tsx:208](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L208) - -___ - -### props - -• `Readonly` **props**: *Readonly* & *Readonly*<{ `children?`: ReactNode }\> \| *Readonly* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> & *Readonly*<{ `children?`: ReactNode }\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & CameraScannerPropsNever & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> & *Readonly*<{ `children?`: ReactNode }\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & *Pick* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> & *Readonly*<{ `children?`: ReactNode }\> - -Defined in: node_modules/@types/react/index.d.ts:505 - -___ - -### ref - -• `Private` `Readonly` **ref**: *RefObject* - -Defined in: [src/Camera.tsx:210](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L210) - -___ - -### refs - -• **refs**: *object* - -**`deprecated`** -https://reactjs.org/docs/refs-and-the-dom.html#legacy-api-string-refs - -#### Type declaration: - -Defined in: node_modules/@types/react/index.d.ts:511 - -___ - -### state - -• **state**: *Readonly* - -Defined in: node_modules/@types/react/index.d.ts:506 - -___ - -### contextType - -▪ `Optional` `Static` **contextType**: *undefined* \| *Context* - -If set, `this.context` will be set at runtime to the current value of the given Context. - -Usage: - -```ts -type MyContext = number -const Ctx = React.createContext(0) - -class Foo extends React.Component { - static contextType = Ctx - context!: React.ContextType - render () { - return <>My context's value: {this.context}; - } -} -``` - -**`see`** https://reactjs.org/docs/context.html#classcontexttype - -Defined in: node_modules/@types/react/index.d.ts:462 - -___ - -### displayName - -▪ `Static` **displayName**: *string*= 'Camera' - -Defined in: [src/Camera.tsx:207](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L207) - -## Accessors - -### handle - -• `Private`get **handle**(): *null* \| *number* - -**Returns:** *null* \| *number* - -Defined in: [src/Camera.tsx:221](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L221) - -## Methods - -### UNSAFE\_componentWillMount - -▸ `Optional`**UNSAFE_componentWillMount**(): *void* - -Called immediately before mounting occurs, and before `Component#render`. -Avoid introducing any side-effects or subscriptions in this method. - -This method will not stop working in React 17. - -Note: the presence of getSnapshotBeforeUpdate or getDerivedStateFromProps -prevents this from being invoked. - -**`deprecated`** 16.3, use componentDidMount or the constructor instead - -**`see`** https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#initializing-state - -**`see`** https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path - -**Returns:** *void* - -Defined in: node_modules/@types/react/index.d.ts:716 - -___ - -### UNSAFE\_componentWillReceiveProps - -▸ `Optional`**UNSAFE_componentWillReceiveProps**(`nextProps`: *Readonly* \| *Readonly* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & CameraScannerPropsNever & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & *Pick* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\>, `nextContext`: *any*): *void* - -Called when the component may be receiving new props. -React may call this even if props have not changed, so be sure to compare new and existing -props if you only want to handle changes. - -Calling `Component#setState` generally does not trigger this method. - -This method will not stop working in React 17. - -Note: the presence of getSnapshotBeforeUpdate or getDerivedStateFromProps -prevents this from being invoked. - -**`deprecated`** 16.3, use static getDerivedStateFromProps instead - -**`see`** https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#updating-state-based-on-props - -**`see`** https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path - -#### Parameters: - -Name | Type | -:------ | :------ | -`nextProps` | *Readonly* \| *Readonly* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & CameraScannerPropsNever & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & *Pick* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> | -`nextContext` | *any* | - -**Returns:** *void* - -Defined in: node_modules/@types/react/index.d.ts:748 - -___ - -### UNSAFE\_componentWillUpdate - -▸ `Optional`**UNSAFE_componentWillUpdate**(`nextProps`: *Readonly* \| *Readonly* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & CameraScannerPropsNever & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & *Pick* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\>, `nextState`: *Readonly*, `nextContext`: *any*): *void* - -Called immediately before rendering when new props or state is received. Not called for the initial render. - -Note: You cannot call `Component#setState` here. - -This method will not stop working in React 17. - -Note: the presence of getSnapshotBeforeUpdate or getDerivedStateFromProps -prevents this from being invoked. - -**`deprecated`** 16.3, use getSnapshotBeforeUpdate instead - -**`see`** https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#reading-dom-properties-before-an-update - -**`see`** https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path - -#### Parameters: - -Name | Type | -:------ | :------ | -`nextProps` | *Readonly* \| *Readonly* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & CameraScannerPropsNever & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & *Pick* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> | -`nextState` | *Readonly* | -`nextContext` | *any* | - -**Returns:** *void* - -Defined in: node_modules/@types/react/index.d.ts:776 - -___ - -### componentDidCatch - -▸ `Optional`**componentDidCatch**(`error`: Error, `errorInfo`: ErrorInfo): *void* - -Catches exceptions generated in descendant components. Unhandled exceptions will cause -the entire component tree to unmount. - -#### Parameters: - -Name | Type | -:------ | :------ | -`error` | Error | -`errorInfo` | ErrorInfo | - -**Returns:** *void* - -Defined in: node_modules/@types/react/index.d.ts:645 - -___ - -### componentDidMount - -▸ `Optional`**componentDidMount**(): *void* - -Called immediately after a component is mounted. Setting state here will trigger re-rendering. - -**Returns:** *void* - -Defined in: node_modules/@types/react/index.d.ts:624 - -___ - -### componentDidUpdate - -▸ `Optional`**componentDidUpdate**(`prevProps`: *Readonly* \| *Readonly* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & CameraScannerPropsNever & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & *Pick* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\>, `prevState`: *Readonly*, `snapshot?`: *any*): *void* - -Called immediately after updating occurs. Not called for the initial render. - -The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null. - -#### Parameters: - -Name | Type | -:------ | :------ | -`prevProps` | *Readonly* \| *Readonly* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & CameraScannerPropsNever & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & *Pick* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> | -`prevState` | *Readonly* | -`snapshot?` | *any* | - -**Returns:** *void* - -Defined in: node_modules/@types/react/index.d.ts:687 - -___ - -### componentWillMount - -▸ `Optional`**componentWillMount**(): *void* - -Called immediately before mounting occurs, and before `Component#render`. -Avoid introducing any side-effects or subscriptions in this method. - -Note: the presence of getSnapshotBeforeUpdate or getDerivedStateFromProps -prevents this from being invoked. - -**`deprecated`** 16.3, use componentDidMount or the constructor instead; will stop working in React 17 - -**`see`** https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#initializing-state - -**`see`** https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path - -**Returns:** *void* - -Defined in: node_modules/@types/react/index.d.ts:702 - -___ - -### componentWillReceiveProps - -▸ `Optional`**componentWillReceiveProps**(`nextProps`: *Readonly* \| *Readonly* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & CameraScannerPropsNever & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & *Pick* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\>, `nextContext`: *any*): *void* - -Called when the component may be receiving new props. -React may call this even if props have not changed, so be sure to compare new and existing -props if you only want to handle changes. - -Calling `Component#setState` generally does not trigger this method. - -Note: the presence of getSnapshotBeforeUpdate or getDerivedStateFromProps -prevents this from being invoked. - -**`deprecated`** 16.3, use static getDerivedStateFromProps instead; will stop working in React 17 - -**`see`** https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#updating-state-based-on-props - -**`see`** https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path - -#### Parameters: - -Name | Type | -:------ | :------ | -`nextProps` | *Readonly* \| *Readonly* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & CameraScannerPropsNever & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & *Pick* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> | -`nextContext` | *any* | - -**Returns:** *void* - -Defined in: node_modules/@types/react/index.d.ts:731 - -___ - -### componentWillUnmount - -▸ `Optional`**componentWillUnmount**(): *void* - -Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as -cancelled network requests, or cleaning up any DOM elements created in `componentDidMount`. - -**Returns:** *void* - -Defined in: node_modules/@types/react/index.d.ts:640 - -___ - -### componentWillUpdate - -▸ `Optional`**componentWillUpdate**(`nextProps`: *Readonly* \| *Readonly* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & CameraScannerPropsNever & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & *Pick* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\>, `nextState`: *Readonly*, `nextContext`: *any*): *void* - -Called immediately before rendering when new props or state is received. Not called for the initial render. - -Note: You cannot call `Component#setState` here. - -Note: the presence of getSnapshotBeforeUpdate or getDerivedStateFromProps -prevents this from being invoked. - -**`deprecated`** 16.3, use getSnapshotBeforeUpdate instead; will stop working in React 17 - -**`see`** https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#reading-dom-properties-before-an-update - -**`see`** https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path - -#### Parameters: - -Name | Type | -:------ | :------ | -`nextProps` | *Readonly* \| *Readonly* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & CameraScannerPropsNever & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & *Pick* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> | -`nextState` | *Readonly* | -`nextContext` | *any* | - -**Returns:** *void* - -Defined in: node_modules/@types/react/index.d.ts:761 - -___ - -### focus - -▸ **focus**(`point`: [*Point*](../interfaces/point.point-1.md)): *Promise* - -Focus the camera to a specific point in the coordinate system. - -#### Parameters: - -Name | Type | Description | -:------ | :------ | :------ | -`point` | [*Point*](../interfaces/point.point-1.md) | The point to focus to. This should be relative to the Camera view's coordinate system, and expressed in Pixel on iOS and Points on Android. * `(0, 0)` means **top left**. * `(CameraView.width, CameraView.height)` means **bottom right**. Make sure the value doesn't exceed the CameraView's dimensions. | - -**Returns:** *Promise* - -Defined in: [src/Camera.tsx:326](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L326) - -___ - -### forceUpdate - -▸ **forceUpdate**(`callback?`: () => *void*): *void* - -#### Parameters: - -Name | Type | -:------ | :------ | -`callback?` | () => *void* | - -**Returns:** *void* - -Defined in: node_modules/@types/react/index.d.ts:497 - -___ - -### getAvailablePhotoCodecs - -▸ **getAvailablePhotoCodecs**(): *Promise*<[*CameraPhotoCodec*](../modules/cameracodec.md#cameraphotocodec)[]\> - -Get a list of photo codecs the current camera supports. Returned values are ordered by efficiency (descending). - -This function can only be called after the camera has been initialized, -so only use this after the `onInitialized` event has fired. - -**Returns:** *Promise*<[*CameraPhotoCodec*](../modules/cameracodec.md#cameraphotocodec)[]\> - -Defined in: [src/Camera.tsx:353](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L353) - -___ - -### getAvailableVideoCodecs - -▸ **getAvailableVideoCodecs**(): *Promise*<[*CameraVideoCodec*](../modules/cameracodec.md#cameravideocodec)[]\> - -Get a list of video codecs the current camera supports. Returned values are ordered by efficiency (descending). - -This function can only be called after the camera has been initialized, -so only use this after the `onInitialized` event has fired. - -**Returns:** *Promise*<[*CameraVideoCodec*](../modules/cameracodec.md#cameravideocodec)[]\> - -Defined in: [src/Camera.tsx:340](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L340) - -___ - -### getSnapshotBeforeUpdate - -▸ `Optional`**getSnapshotBeforeUpdate**(`prevProps`: *Readonly* \| *Readonly* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & CameraScannerPropsNever & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & *Pick* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\>, `prevState`: *Readonly*): *any* - -Runs before React applies the result of `render` to the document, and -returns an object to be given to componentDidUpdate. Useful for saving -things such as scroll position before `render` causes changes to it. - -Note: the presence of getSnapshotBeforeUpdate prevents any of the deprecated -lifecycle events from running. - -#### Parameters: - -Name | Type | -:------ | :------ | -`prevProps` | *Readonly* \| *Readonly* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & CameraScannerPropsNever & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & *Pick* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> | -`prevState` | *Readonly* | - -**Returns:** *any* - -Defined in: node_modules/@types/react/index.d.ts:681 - -___ - -### onCodeScanned - -▸ `Private`**onCodeScanned**(`event?`: *NativeSyntheticEvent*): *void* - -#### Parameters: - -Name | Type | -:------ | :------ | -`event?` | *NativeSyntheticEvent* | - -**Returns:** *void* - -Defined in: [src/Camera.tsx:445](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L445) - -___ - -### onError - -▸ `Private`**onError**(`event?`: *NativeSyntheticEvent*): *void* - -#### Parameters: - -Name | Type | -:------ | :------ | -`event?` | *NativeSyntheticEvent* | - -**Returns:** *void* - -Defined in: [src/Camera.tsx:428](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L428) - -___ - -### onInitialized - -▸ `Private`**onInitialized**(): *void* - -**Returns:** *void* - -Defined in: [src/Camera.tsx:441](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L441) - -___ - -### render - -▸ **render**(): ReactNode - -**Returns:** ReactNode - -Defined in: [src/Camera.tsx:461](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L461) - -___ - -### setState - -▸ **setState**(`state`: *null* \| CameraState \| (`prevState`: *Readonly*, `props`: *Readonly* \| *Readonly* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & CameraScannerPropsNever & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & *Pick* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\>) => *null* \| CameraState \| *Pick* \| *Pick*, `callback?`: () => *void*): *void* - -#### Type parameters: - -Name | Type | -:------ | :------ | -`K` | *cameraId* | - -#### Parameters: - -Name | Type | -:------ | :------ | -`state` | *null* \| CameraState \| (`prevState`: *Readonly*, `props`: *Readonly* \| *Readonly* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & CameraScannerPropsNever & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & *Pick* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\>) => *null* \| CameraState \| *Pick* \| *Pick* | -`callback?` | () => *void* | - -**Returns:** *void* - -Defined in: node_modules/@types/react/index.d.ts:492 - -___ - -### shouldComponentUpdate - -▸ `Optional`**shouldComponentUpdate**(`nextProps`: *Readonly* \| *Readonly* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & CameraScannerPropsNever & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & *Pick* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\>, `nextState`: *Readonly*, `nextContext`: *any*): *boolean* - -Called to determine whether the change in props and state should trigger a re-render. - -`Component` always returns true. -`PureComponent` implements a shallow comparison on props and state and returns true if any -props or states have changed. - -If false is returned, `Component#render`, `componentWillUpdate` -and `componentDidUpdate` will not be called. - -#### Parameters: - -Name | Type | -:------ | :------ | -`nextProps` | *Readonly* \| *Readonly* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & CameraScannerPropsNever & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> \| *Readonly*<*Pick* & { `colorSpace?`: *undefined* \| *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* ; `format?`: *undefined* \| *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](../modules/cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](../modules/cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> ; `fps?`: *undefined* \| *number* ; `hdr?`: *undefined* \| *boolean* ; `lowLightBoost?`: *undefined* \| *boolean* ; `preset?`: *undefined* } & *Pick* & { `onCodeScanned`: (`codes`: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *undefined* \| *string* ; `type`: [*CodeType*](../modules/code.md#codetype) }\>[]) => *void* ; `scannableCodes`: [*CodeType*](../modules/code.md#codetype)[] } & [*CameraDeviceProps*](../modules/camera.md#cameradeviceprops) & [*CameraDynamicProps*](../modules/camera.md#cameradynamicprops) & [*CameraEventProps*](../modules/camera.md#cameraeventprops) & ViewProps\> | -`nextState` | *Readonly* | -`nextContext` | *any* | - -**Returns:** *boolean* - -Defined in: node_modules/@types/react/index.d.ts:635 - -___ - -### startRecording - -▸ **startRecording**(`options`: [*RecordVideoOptions*](../interfaces/videofile.recordvideooptions.md)): *void* - -Start a new video recording. - -Records in the following formats: -* **iOS**: QuickTime (`.mov`) -* **Android**: MPEG4 (`.mp4`) - -**`blocking`** This function is synchronized/blocking. - -**`throws`** {CameraCaptureError} When any kind of error occured. Use the `CameraCaptureError.code` property to get the actual error - -**`example`** -```js -camera.current.startRecording({ - onRecordingFinished: (video) => console.log(video), - onRecordingError: (error) => console.error(error), -}) -setTimeout(() => { - camera.current.stopRecording() -}, 5000) -``` - -#### Parameters: - -Name | Type | -:------ | :------ | -`options` | [*RecordVideoOptions*](../interfaces/videofile.recordvideooptions.md) | - -**Returns:** *void* - -Defined in: [src/Camera.tsx:282](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L282) - -___ - -### stopRecording - -▸ **stopRecording**(): *Promise* - -Stop the current video recording. - -**`example`** -```js -await camera.current.startRecording() -setTimeout(async () => { - const video = await camera.current.stopRecording() -}, 5000) -``` - -**Returns:** *Promise* - -Defined in: [src/Camera.tsx:309](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L309) - -___ - -### takePhoto - -▸ **takePhoto**(`options?`: [*TakePhotoOptions*](../interfaces/photofile.takephotooptions.md)): *Promise* & { `height`: *number* ; `isRawPhoto`: *boolean* ; `metadata`: { `DPIHeight`: *number* ; `DPIWidth`: *number* ; `Orientation`: *number* ; `{Exif}`: { `ApertureValue`: *number* ; `BrightnessValue`: *number* ; `ColorSpace`: *number* ; `DateTimeDigitized`: *string* ; `DateTimeOriginal`: *string* ; `ExifVersion`: *string* ; `ExposureBiasValue`: *number* ; `ExposureMode`: *number* ; `ExposureProgram`: *number* ; `ExposureTime`: *number* ; `FNumber`: *number* ; `Flash`: *number* ; `FocalLenIn35mmFilm`: *number* ; `FocalLength`: *number* ; `ISOSpeedRatings`: *number*[] ; `LensMake`: *string* ; `LensModel`: *string* ; `LensSpecification`: *number*[] ; `MeteringMode`: *number* ; `OffsetTime`: *string* ; `OffsetTimeDigitized`: *string* ; `OffsetTimeOriginal`: *string* ; `PixelXDimension`: *number* ; `PixelYDimension`: *number* ; `SceneType`: *number* ; `SensingMethod`: *number* ; `ShutterSpeedValue`: *number* ; `SubjectArea`: *number*[] ; `SubsecTimeDigitized`: *string* ; `SubsecTimeOriginal`: *string* ; `WhiteBalance`: *number* } ; `{MakerApple}?`: *undefined* \| *Record* ; `{TIFF}`: { `DateTime`: *string* ; `HostComputer?`: *undefined* \| *string* ; `Make`: *string* ; `Model`: *string* ; `ResolutionUnit`: *number* ; `Software`: *string* ; `XResolution`: *number* ; `YResolution`: *number* } } ; `thumbnail?`: *undefined* \| *Record* ; `width`: *number* }\>\> - -Take a single photo and write it's content to a temporary file. - -**`throws`** {CameraCaptureError} When any kind of error occured. Use the `CameraCaptureError.code` property to get the actual error - -#### Parameters: - -Name | Type | -:------ | :------ | -`options?` | [*TakePhotoOptions*](../interfaces/photofile.takephotooptions.md) | - -**Returns:** *Promise* & { `height`: *number* ; `isRawPhoto`: *boolean* ; `metadata`: { `DPIHeight`: *number* ; `DPIWidth`: *number* ; `Orientation`: *number* ; `{Exif}`: { `ApertureValue`: *number* ; `BrightnessValue`: *number* ; `ColorSpace`: *number* ; `DateTimeDigitized`: *string* ; `DateTimeOriginal`: *string* ; `ExifVersion`: *string* ; `ExposureBiasValue`: *number* ; `ExposureMode`: *number* ; `ExposureProgram`: *number* ; `ExposureTime`: *number* ; `FNumber`: *number* ; `Flash`: *number* ; `FocalLenIn35mmFilm`: *number* ; `FocalLength`: *number* ; `ISOSpeedRatings`: *number*[] ; `LensMake`: *string* ; `LensModel`: *string* ; `LensSpecification`: *number*[] ; `MeteringMode`: *number* ; `OffsetTime`: *string* ; `OffsetTimeDigitized`: *string* ; `OffsetTimeOriginal`: *string* ; `PixelXDimension`: *number* ; `PixelYDimension`: *number* ; `SceneType`: *number* ; `SensingMethod`: *number* ; `ShutterSpeedValue`: *number* ; `SubjectArea`: *number*[] ; `SubsecTimeDigitized`: *string* ; `SubsecTimeOriginal`: *string* ; `WhiteBalance`: *number* } ; `{MakerApple}?`: *undefined* \| *Record* ; `{TIFF}`: { `DateTime`: *string* ; `HostComputer?`: *undefined* \| *string* ; `Make`: *string* ; `Model`: *string* ; `ResolutionUnit`: *number* ; `Software`: *string* ; `XResolution`: *number* ; `YResolution`: *number* } } ; `thumbnail?`: *undefined* \| *Record* ; `width`: *number* }\>\> - -Defined in: [src/Camera.tsx:234](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L234) - -___ - -### takeSnapshot - -▸ **takeSnapshot**(`options?`: [*TakeSnapshotOptions*](../interfaces/snapshot.takesnapshotoptions.md)): *Promise* & { `height`: *number* ; `isRawPhoto`: *boolean* ; `metadata`: { `DPIHeight`: *number* ; `DPIWidth`: *number* ; `Orientation`: *number* ; `{Exif}`: { `ApertureValue`: *number* ; `BrightnessValue`: *number* ; `ColorSpace`: *number* ; `DateTimeDigitized`: *string* ; `DateTimeOriginal`: *string* ; `ExifVersion`: *string* ; `ExposureBiasValue`: *number* ; `ExposureMode`: *number* ; `ExposureProgram`: *number* ; `ExposureTime`: *number* ; `FNumber`: *number* ; `Flash`: *number* ; `FocalLenIn35mmFilm`: *number* ; `FocalLength`: *number* ; `ISOSpeedRatings`: *number*[] ; `LensMake`: *string* ; `LensModel`: *string* ; `LensSpecification`: *number*[] ; `MeteringMode`: *number* ; `OffsetTime`: *string* ; `OffsetTimeDigitized`: *string* ; `OffsetTimeOriginal`: *string* ; `PixelXDimension`: *number* ; `PixelYDimension`: *number* ; `SceneType`: *number* ; `SensingMethod`: *number* ; `ShutterSpeedValue`: *number* ; `SubjectArea`: *number*[] ; `SubsecTimeDigitized`: *string* ; `SubsecTimeOriginal`: *string* ; `WhiteBalance`: *number* } ; `{MakerApple}?`: *undefined* \| *Record* ; `{TIFF}`: { `DateTime`: *string* ; `HostComputer?`: *undefined* \| *string* ; `Make`: *string* ; `Model`: *string* ; `ResolutionUnit`: *number* ; `Software`: *string* ; `XResolution`: *number* ; `YResolution`: *number* } } ; `thumbnail?`: *undefined* \| *Record* ; `width`: *number* }\>\> - -Take a snapshot of the current preview view. - -This can be used as an alternative to `takePhoto()` if speed is more important than quality - -**`platform`** Android - -#### Parameters: - -Name | Type | -:------ | :------ | -`options?` | [*TakeSnapshotOptions*](../interfaces/snapshot.takesnapshotoptions.md) | - -**Returns:** *Promise* & { `height`: *number* ; `isRawPhoto`: *boolean* ; `metadata`: { `DPIHeight`: *number* ; `DPIWidth`: *number* ; `Orientation`: *number* ; `{Exif}`: { `ApertureValue`: *number* ; `BrightnessValue`: *number* ; `ColorSpace`: *number* ; `DateTimeDigitized`: *string* ; `DateTimeOriginal`: *string* ; `ExifVersion`: *string* ; `ExposureBiasValue`: *number* ; `ExposureMode`: *number* ; `ExposureProgram`: *number* ; `ExposureTime`: *number* ; `FNumber`: *number* ; `Flash`: *number* ; `FocalLenIn35mmFilm`: *number* ; `FocalLength`: *number* ; `ISOSpeedRatings`: *number*[] ; `LensMake`: *string* ; `LensModel`: *string* ; `LensSpecification`: *number*[] ; `MeteringMode`: *number* ; `OffsetTime`: *string* ; `OffsetTimeDigitized`: *string* ; `OffsetTimeOriginal`: *string* ; `PixelXDimension`: *number* ; `PixelYDimension`: *number* ; `SceneType`: *number* ; `SensingMethod`: *number* ; `ShutterSpeedValue`: *number* ; `SubjectArea`: *number*[] ; `SubsecTimeDigitized`: *string* ; `SubsecTimeOriginal`: *string* ; `WhiteBalance`: *number* } ; `{MakerApple}?`: *undefined* \| *Record* ; `{TIFF}`: { `DateTime`: *string* ; `HostComputer?`: *undefined* \| *string* ; `Make`: *string* ; `Model`: *string* ; `ResolutionUnit`: *number* ; `Software`: *string* ; `XResolution`: *number* ; `YResolution`: *number* } } ; `thumbnail?`: *undefined* \| *Record* ; `width`: *number* }\>\> - -Defined in: [src/Camera.tsx:249](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L249) - -___ - -### getAvailableCameraDevices - -▸ `Static`**getAvailableCameraDevices**(): *Promise*[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\>[] ; `hasFlash`: *boolean* ; `hasTorch`: *boolean* ; `id`: *string* ; `isMultiCam`: *boolean* ; `maxZoom`: *number* ; `minZoom`: *number* ; `name`: *string* ; `neutralZoom`: *number* ; `position`: [*CameraPosition*](../modules/cameraposition.md#cameraposition) ; `supportsLowLightBoost`: *boolean* }\>[]\> - -Get a list of all available camera devices on the current phone. - -**Returns:** *Promise*[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](../modules/cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\>[] ; `hasFlash`: *boolean* ; `hasTorch`: *boolean* ; `id`: *string* ; `isMultiCam`: *boolean* ; `maxZoom`: *number* ; `minZoom`: *number* ; `name`: *string* ; `neutralZoom`: *number* ; `position`: [*CameraPosition*](../modules/cameraposition.md#cameraposition) ; `supportsLowLightBoost`: *boolean* }\>[]\> - -Defined in: [src/Camera.tsx:366](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L366) - -___ - -### getCameraPermissionStatus - -▸ `Static`**getCameraPermissionStatus**(): *Promise*<[*CameraPermissionStatus*](../modules/camera.md#camerapermissionstatus)\> - -Gets the current Camera Permission Status. Check this before mounting the Camera to ensure -the user has permitted the app to use the camera. - -To actually prompt the user for camera permission, use `Camera.requestCameraPermission()`. - -**Returns:** *Promise*<[*CameraPermissionStatus*](../modules/camera.md#camerapermissionstatus)\> - -Defined in: [src/Camera.tsx:379](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L379) - -___ - -### getDerivedStateFromProps - -▸ `Static`**getDerivedStateFromProps**(`props`: [*CameraProps*](../modules/camera.md#cameraprops), `state`: CameraState): *null* \| CameraState - -#### Parameters: - -Name | Type | -:------ | :------ | -`props` | [*CameraProps*](../modules/camera.md#cameraprops) | -`state` | CameraState | - -**Returns:** *null* \| CameraState - -Defined in: [src/Camera.tsx:454](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L454) - -___ - -### getMicrophonePermissionStatus - -▸ `Static`**getMicrophonePermissionStatus**(): *Promise*<[*CameraPermissionStatus*](../modules/camera.md#camerapermissionstatus)\> - -Gets the current Microphone-Recording Permission Status. Check this before mounting the Camera to ensure -the user has permitted the app to use the microphone. - -To actually prompt the user for microphone permission, use `Camera.requestMicrophonePermission()`. - -**Returns:** *Promise*<[*CameraPermissionStatus*](../modules/camera.md#camerapermissionstatus)\> - -Defined in: [src/Camera.tsx:392](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L392) - -___ - -### requestCameraPermission - -▸ `Static`**requestCameraPermission**(): *Promise*<[*CameraPermissionRequestResult*](../modules/camera.md#camerapermissionrequestresult)\> - -Shows a "request permission" alert to the user, and resolves with the new camera permission status. - -If the user has previously blocked the app from using the camera, the alert will not be shown -and `"denied"` will be returned. - -**Returns:** *Promise*<[*CameraPermissionRequestResult*](../modules/camera.md#camerapermissionrequestresult)\> - -Defined in: [src/Camera.tsx:405](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L405) - -___ - -### requestMicrophonePermission - -▸ `Static`**requestMicrophonePermission**(): *Promise*<[*CameraPermissionRequestResult*](../modules/camera.md#camerapermissionrequestresult)\> - -Shows a "request permission" alert to the user, and resolves with the new microphone permission status. - -If the user has previously blocked the app from using the microphone, the alert will not be shown -and `"denied"` will be returned. - -**Returns:** *Promise*<[*CameraPermissionRequestResult*](../modules/camera.md#camerapermissionrequestresult)\> - -Defined in: [src/Camera.tsx:418](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L418) diff --git a/docs/docs/api/classes/index.cameracaptureerror.md b/docs/docs/api/classes/index.cameracaptureerror.md deleted file mode 100644 index 44d3419..0000000 --- a/docs/docs/api/classes/index.cameracaptureerror.md +++ /dev/null @@ -1,122 +0,0 @@ ---- -id: "index.cameracaptureerror" -title: "Class: CameraCaptureError" -sidebar_label: "index.CameraCaptureError" -custom_edit_url: null -hide_title: true ---- - -# Class: CameraCaptureError - -[index](../modules/index.md).CameraCaptureError - -Represents any kind of error that occured while trying to capture a video or photo. - -## Hierarchy - -* *CameraError*<[*CaptureError*](../modules/cameraerror.md#captureerror)\> - - ↳ **CameraCaptureError** - -## Constructors - -### constructor - -\+ **new CameraCaptureError**(`code`: [*CaptureError*](../modules/cameraerror.md#captureerror), `message`: *string*, `cause?`: [*ErrorWithCause*](../interfaces/cameraerror.errorwithcause.md)): [*CameraCaptureError*](cameraerror.cameracaptureerror.md) - -#### Parameters: - -Name | Type | -:------ | :------ | -`code` | [*CaptureError*](../modules/cameraerror.md#captureerror) | -`message` | *string* | -`cause?` | [*ErrorWithCause*](../interfaces/cameraerror.errorwithcause.md) | - -**Returns:** [*CameraCaptureError*](cameraerror.cameracaptureerror.md) - -Defined in: [src/CameraError.ts:105](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L105) - -## Properties - -### name - -• **name**: *string* - -Defined in: docs/node_modules/typescript/lib/lib.es5.d.ts:973 - -___ - -### prepareStackTrace - -• `Optional` **prepareStackTrace**: *undefined* \| (`err`: Error, `stackTraces`: CallSite[]) => *any* - -Optional override for formatting stack traces - -**`see`** https://github.com/v8/v8/wiki/Stack%20Trace%20API#customizing-stack-traces - -Defined in: node_modules/@types/node/globals.d.ts:11 - -___ - -### stack - -• `Optional` **stack**: *undefined* \| *string* - -Defined in: docs/node_modules/typescript/lib/lib.es5.d.ts:975 - -___ - -### stackTraceLimit - -• **stackTraceLimit**: *number* - -Defined in: node_modules/@types/node/globals.d.ts:13 - -## Accessors - -### cause - -• get **cause**(): *undefined* \| [*ErrorWithCause*](../interfaces/cameraerror.errorwithcause.md) - -**Returns:** *undefined* \| [*ErrorWithCause*](../interfaces/cameraerror.errorwithcause.md) - -Defined in: [src/CameraError.ts:103](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L103) - -___ - -### code - -• get **code**(): TCode - -**Returns:** TCode - -Defined in: [src/CameraError.ts:97](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L97) - -___ - -### message - -• get **message**(): *string* - -**Returns:** *string* - -Defined in: [src/CameraError.ts:100](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L100) - -## Methods - -### captureStackTrace - -▸ **captureStackTrace**(`targetObject`: *object*, `constructorOpt?`: Function): *void* - -Create .stack property on a target object - -#### Parameters: - -Name | Type | -:------ | :------ | -`targetObject` | *object* | -`constructorOpt?` | Function | - -**Returns:** *void* - -Defined in: node_modules/@types/node/globals.d.ts:4 diff --git a/docs/docs/api/classes/index.cameraruntimeerror.md b/docs/docs/api/classes/index.cameraruntimeerror.md deleted file mode 100644 index 8d01440..0000000 --- a/docs/docs/api/classes/index.cameraruntimeerror.md +++ /dev/null @@ -1,122 +0,0 @@ ---- -id: "index.cameraruntimeerror" -title: "Class: CameraRuntimeError" -sidebar_label: "index.CameraRuntimeError" -custom_edit_url: null -hide_title: true ---- - -# Class: CameraRuntimeError - -[index](../modules/index.md).CameraRuntimeError - -Represents any kind of error that occured in the Camera View Module. - -## Hierarchy - -* *CameraError*<[*PermissionError*](../modules/cameraerror.md#permissionerror) \| [*ParameterError*](../modules/cameraerror.md#parametererror) \| [*DeviceError*](../modules/cameraerror.md#deviceerror) \| [*FormatError*](../modules/cameraerror.md#formaterror) \| [*SessionError*](../modules/cameraerror.md#sessionerror) \| [*SystemError*](../modules/cameraerror.md#systemerror) \| [*UnknownError*](../modules/cameraerror.md#unknownerror)\> - - ↳ **CameraRuntimeError** - -## Constructors - -### constructor - -\+ **new CameraRuntimeError**(`code`: *permission/microphone-permission-denied* \| *permission/camera-permission-denied* \| *parameter/invalid-parameter* \| *parameter/unsupported-os* \| *parameter/unsupported-output* \| *parameter/unsupported-input* \| *parameter/invalid-combination* \| *device/configuration-error* \| *device/no-device* \| *device/invalid-device* \| *device/torch-unavailable* \| *device/microphone-unavailable* \| *device/low-light-boost-not-supported* \| *device/focus-not-supported* \| *device/camera-not-available-on-simulator* \| *format/invalid-fps* \| *format/invalid-hdr* \| *format/invalid-low-light-boost* \| *format/invalid-format* \| *format/invalid-preset* \| *session/camera-not-ready* \| *session/audio-session-setup-failed* \| *system/no-camera-manager* \| *unknown/unknown*, `message`: *string*, `cause?`: [*ErrorWithCause*](../interfaces/cameraerror.errorwithcause.md)): [*CameraRuntimeError*](cameraerror.cameraruntimeerror.md) - -#### Parameters: - -Name | Type | -:------ | :------ | -`code` | *permission/microphone-permission-denied* \| *permission/camera-permission-denied* \| *parameter/invalid-parameter* \| *parameter/unsupported-os* \| *parameter/unsupported-output* \| *parameter/unsupported-input* \| *parameter/invalid-combination* \| *device/configuration-error* \| *device/no-device* \| *device/invalid-device* \| *device/torch-unavailable* \| *device/microphone-unavailable* \| *device/low-light-boost-not-supported* \| *device/focus-not-supported* \| *device/camera-not-available-on-simulator* \| *format/invalid-fps* \| *format/invalid-hdr* \| *format/invalid-low-light-boost* \| *format/invalid-format* \| *format/invalid-preset* \| *session/camera-not-ready* \| *session/audio-session-setup-failed* \| *system/no-camera-manager* \| *unknown/unknown* | -`message` | *string* | -`cause?` | [*ErrorWithCause*](../interfaces/cameraerror.errorwithcause.md) | - -**Returns:** [*CameraRuntimeError*](cameraerror.cameraruntimeerror.md) - -Defined in: [src/CameraError.ts:105](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L105) - -## Properties - -### name - -• **name**: *string* - -Defined in: docs/node_modules/typescript/lib/lib.es5.d.ts:973 - -___ - -### prepareStackTrace - -• `Optional` **prepareStackTrace**: *undefined* \| (`err`: Error, `stackTraces`: CallSite[]) => *any* - -Optional override for formatting stack traces - -**`see`** https://github.com/v8/v8/wiki/Stack%20Trace%20API#customizing-stack-traces - -Defined in: node_modules/@types/node/globals.d.ts:11 - -___ - -### stack - -• `Optional` **stack**: *undefined* \| *string* - -Defined in: docs/node_modules/typescript/lib/lib.es5.d.ts:975 - -___ - -### stackTraceLimit - -• **stackTraceLimit**: *number* - -Defined in: node_modules/@types/node/globals.d.ts:13 - -## Accessors - -### cause - -• get **cause**(): *undefined* \| [*ErrorWithCause*](../interfaces/cameraerror.errorwithcause.md) - -**Returns:** *undefined* \| [*ErrorWithCause*](../interfaces/cameraerror.errorwithcause.md) - -Defined in: [src/CameraError.ts:103](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L103) - -___ - -### code - -• get **code**(): TCode - -**Returns:** TCode - -Defined in: [src/CameraError.ts:97](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L97) - -___ - -### message - -• get **message**(): *string* - -**Returns:** *string* - -Defined in: [src/CameraError.ts:100](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L100) - -## Methods - -### captureStackTrace - -▸ **captureStackTrace**(`targetObject`: *object*, `constructorOpt?`: Function): *void* - -Create .stack property on a target object - -#### Parameters: - -Name | Type | -:------ | :------ | -`targetObject` | *object* | -`constructorOpt?` | Function | - -**Returns:** *void* - -Defined in: node_modules/@types/node/globals.d.ts:4 diff --git a/docs/docs/api/index.md b/docs/docs/api/index.md index d05f5ea..f1dd28c 100644 --- a/docs/docs/api/index.md +++ b/docs/docs/api/index.md @@ -27,5 +27,4 @@ hide_title: true - [VideoFile](modules/videofile.md) - [hooks/useCameraDevices](modules/hooks_usecameradevices.md) - [hooks/useCameraFormat](modules/hooks_usecameraformat.md) -- [index](modules/index.md) - [utils/FormatFilter](modules/utils_formatfilter.md) diff --git a/docs/docs/api/interfaces/cameraerror.errorwithcause.md b/docs/docs/api/interfaces/cameraerror.errorwithcause.md index bc7823b..172cea3 100644 --- a/docs/docs/api/interfaces/cameraerror.errorwithcause.md +++ b/docs/docs/api/interfaces/cameraerror.errorwithcause.md @@ -23,7 +23,7 @@ Optional additional cause for nested errors * iOS: N/A * Android: `Throwable.cause` -Defined in: [src/CameraError.ts:84](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L84) +Defined in: [src/CameraError.ts:84](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L84) ___ @@ -36,7 +36,7 @@ The native error's code. * iOS: `NSError.code` * Android: N/A -Defined in: [src/CameraError.ts:49](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L49) +Defined in: [src/CameraError.ts:49](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L49) ___ @@ -49,7 +49,7 @@ Optional additional details * iOS: `NSError.userInfo` * Android: N/A -Defined in: [src/CameraError.ts:70](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L70) +Defined in: [src/CameraError.ts:70](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L70) ___ @@ -62,7 +62,7 @@ The native error's domain. * iOS: `NSError.domain` * Android: N/A -Defined in: [src/CameraError.ts:56](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L56) +Defined in: [src/CameraError.ts:56](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L56) ___ @@ -75,7 +75,7 @@ The native error description (Localized on iOS) * iOS: `NSError.message` * Android: `Throwable.message` -Defined in: [src/CameraError.ts:63](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L63) +Defined in: [src/CameraError.ts:63](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L63) ___ @@ -88,4 +88,4 @@ Optional stacktrace * iOS: N/A * Android: `Throwable.stacktrace.toString()` -Defined in: [src/CameraError.ts:77](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L77) +Defined in: [src/CameraError.ts:77](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L77) diff --git a/docs/docs/api/interfaces/index.errorwithcause.md b/docs/docs/api/interfaces/index.errorwithcause.md deleted file mode 100644 index e4ab404..0000000 --- a/docs/docs/api/interfaces/index.errorwithcause.md +++ /dev/null @@ -1,91 +0,0 @@ ---- -id: "index.errorwithcause" -title: "Interface: ErrorWithCause" -sidebar_label: "index.ErrorWithCause" -custom_edit_url: null -hide_title: true ---- - -# Interface: ErrorWithCause - -[index](../modules/index.md).ErrorWithCause - -Represents a JSON-style error cause. This contains native `NSError`/`Throwable` information, and can have recursive `.cause` properties until the ultimate cause has been found. - -## Properties - -### cause - -• `Optional` **cause**: *undefined* \| [*ErrorWithCause*](cameraerror.errorwithcause.md) - -Optional additional cause for nested errors - -* iOS: N/A -* Android: `Throwable.cause` - -Defined in: [src/CameraError.ts:84](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L84) - -___ - -### code - -• `Optional` **code**: *undefined* \| *number* - -The native error's code. - -* iOS: `NSError.code` -* Android: N/A - -Defined in: [src/CameraError.ts:49](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L49) - -___ - -### details - -• `Optional` **details**: *undefined* \| *Record* - -Optional additional details - -* iOS: `NSError.userInfo` -* Android: N/A - -Defined in: [src/CameraError.ts:70](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L70) - -___ - -### domain - -• `Optional` **domain**: *undefined* \| *string* - -The native error's domain. - -* iOS: `NSError.domain` -* Android: N/A - -Defined in: [src/CameraError.ts:56](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L56) - -___ - -### message - -• **message**: *string* - -The native error description (Localized on iOS) - -* iOS: `NSError.message` -* Android: `Throwable.message` - -Defined in: [src/CameraError.ts:63](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L63) - -___ - -### stacktrace - -• `Optional` **stacktrace**: *undefined* \| *string* - -Optional stacktrace - -* iOS: N/A -* Android: `Throwable.stacktrace.toString()` - -Defined in: [src/CameraError.ts:77](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L77) diff --git a/docs/docs/api/interfaces/index.point.md b/docs/docs/api/interfaces/index.point.md deleted file mode 100644 index 0f3c298..0000000 --- a/docs/docs/api/interfaces/index.point.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -id: "index.point" -title: "Interface: Point" -sidebar_label: "index.Point" -custom_edit_url: null -hide_title: true ---- - -# Interface: Point - -[index](../modules/index.md).Point - -Represents a Point in a 2 dimensional coordinate system. - -## Properties - -### x - -• **x**: *number* - -The X coordinate of this Point. (double) - -Defined in: [src/Point.ts:8](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Point.ts#L8) - -___ - -### y - -• **y**: *number* - -The Y coordinate of this Point. (double) - -Defined in: [src/Point.ts:12](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Point.ts#L12) diff --git a/docs/docs/api/interfaces/index.recordvideooptions.md b/docs/docs/api/interfaces/index.recordvideooptions.md deleted file mode 100644 index 27de25d..0000000 --- a/docs/docs/api/interfaces/index.recordvideooptions.md +++ /dev/null @@ -1,69 +0,0 @@ ---- -id: "index.recordvideooptions" -title: "Interface: RecordVideoOptions" -sidebar_label: "index.RecordVideoOptions" -custom_edit_url: null -hide_title: true ---- - -# Interface: RecordVideoOptions - -[index](../modules/index.md).RecordVideoOptions - -## Properties - -### flash - -• `Optional` **flash**: *undefined* \| *off* \| *auto* \| *on* - -Set the video flash mode. Natively, this just enables the torch while recording. - -Defined in: [src/VideoFile.ts:36](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/VideoFile.ts#L36) - -___ - -### onRecordingError - -• **onRecordingError**: (`error`: [*CameraCaptureError*](../classes/cameraerror.cameracaptureerror.md)) => *void* - -Called when there was an unexpected runtime error while recording the video. - -#### Type declaration: - -▸ (`error`: [*CameraCaptureError*](../classes/cameraerror.cameracaptureerror.md)): *void* - -#### Parameters: - -Name | Type | -:------ | :------ | -`error` | [*CameraCaptureError*](../classes/cameraerror.cameracaptureerror.md) | - -**Returns:** *void* - -Defined in: [src/VideoFile.ts:40](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/VideoFile.ts#L40) - -Defined in: [src/VideoFile.ts:40](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/VideoFile.ts#L40) - -___ - -### onRecordingFinished - -• **onRecordingFinished**: (`video`: *Readonly*<*Readonly*<{ `path`: *string* }\> & { `duration`: *number* ; `size`: *number* }\>) => *void* - -Called when the recording has been successfully saved to file. - -#### Type declaration: - -▸ (`video`: *Readonly*<*Readonly*<{ `path`: *string* }\> & { `duration`: *number* ; `size`: *number* }\>): *void* - -#### Parameters: - -Name | Type | -:------ | :------ | -`video` | *Readonly*<*Readonly*<{ `path`: *string* }\> & { `duration`: *number* ; `size`: *number* }\> | - -**Returns:** *void* - -Defined in: [src/VideoFile.ts:44](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/VideoFile.ts#L44) - -Defined in: [src/VideoFile.ts:44](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/VideoFile.ts#L44) diff --git a/docs/docs/api/interfaces/index.takephotooptions.md b/docs/docs/api/interfaces/index.takephotooptions.md deleted file mode 100644 index a3e466b..0000000 --- a/docs/docs/api/interfaces/index.takephotooptions.md +++ /dev/null @@ -1,118 +0,0 @@ ---- -id: "index.takephotooptions" -title: "Interface: TakePhotoOptions" -sidebar_label: "index.TakePhotoOptions" -custom_edit_url: null -hide_title: true ---- - -# Interface: TakePhotoOptions - -[index](../modules/index.md).TakePhotoOptions - -## Properties - -### enableAutoDistortionCorrection - -• `Optional` **enableAutoDistortionCorrection**: *undefined* \| *boolean* - -Specifies whether the photo output should use content aware distortion correction on this photo request (at its discretion). - -**`default`** false - -Defined in: [src/PhotoFile.ts:52](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/PhotoFile.ts#L52) - -___ - -### enableAutoRedEyeReduction - -• `Optional` **enableAutoRedEyeReduction**: *undefined* \| *boolean* - -Specifies whether red-eye reduction should be applied automatically on flash captures. - -**`default`** false - -Defined in: [src/PhotoFile.ts:33](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/PhotoFile.ts#L33) - -___ - -### enableAutoStabilization - -• `Optional` **enableAutoStabilization**: *undefined* \| *boolean* - -Indicates whether still image stabilization will be employed when capturing the photo - -**`default`** false - -Defined in: [src/PhotoFile.ts:46](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/PhotoFile.ts#L46) - -___ - -### enableVirtualDeviceFusion - -• `Optional` **enableVirtualDeviceFusion**: *undefined* \| *boolean* - -Specifies whether a virtual multi-cam device should capture images from all containing physical cameras -to create a combined, higher quality image. - -**`see`** [`isAutoVirtualDeviceFusionEnabled`](https://developer.apple.com/documentation/avfoundation/avcapturephotosettings/3192192-isautovirtualdevicefusionenabled) - -Defined in: [src/PhotoFile.ts:40](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/PhotoFile.ts#L40) - -___ - -### flash - -• `Optional` **flash**: *undefined* \| *off* \| *auto* \| *on* - -Whether the Flash should be enabled or disabled - -**`default`** "auto" - -Defined in: [src/PhotoFile.ts:27](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/PhotoFile.ts#L27) - -___ - -### photoCodec - -• `Optional` **photoCodec**: *undefined* \| *hevc* \| *hevc-alpha* \| *jpeg* - -Specify the photo codec to use. To get a list of available photo codecs use the `getAvailablePhotoCodecs()` function. - -**`default`** undefined - -Defined in: [src/PhotoFile.ts:10](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/PhotoFile.ts#L10) - -___ - -### qualityPrioritization - -• `Optional` **qualityPrioritization**: *undefined* \| *quality* \| *balanced* \| *speed* - -Indicates how photo quality should be prioritized against speed. - -* `"quality"` Indicates that speed of photo delivery is most important, even at the expense of quality -* `"balanced"` Indicates that photo quality and speed of delivery are balanced in priority -* `"speed"` Indicates that photo quality is paramount, even at the expense of shot-to-shot time - -**`platform`** iOS 13.0+ - -**`default`** "balanced" - -Defined in: [src/PhotoFile.ts:21](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/PhotoFile.ts#L21) - -___ - -### skipMetadata - -• `Optional` **skipMetadata**: *undefined* \| *boolean* - -When set to `true`, metadata reading and mapping will be skipped. (`PhotoFile.metadata` will be null) - -This might result in a faster capture, as metadata reading and mapping requires File IO. - -**`default`** false - -**`platform`** Android - -Defined in: [src/PhotoFile.ts:62](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/PhotoFile.ts#L62) diff --git a/docs/docs/api/interfaces/index.takesnapshotoptions.md b/docs/docs/api/interfaces/index.takesnapshotoptions.md deleted file mode 100644 index c5cbe44..0000000 --- a/docs/docs/api/interfaces/index.takesnapshotoptions.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -id: "index.takesnapshotoptions" -title: "Interface: TakeSnapshotOptions" -sidebar_label: "index.TakeSnapshotOptions" -custom_edit_url: null -hide_title: true ---- - -# Interface: TakeSnapshotOptions - -[index](../modules/index.md).TakeSnapshotOptions - -## Properties - -### quality - -• `Optional` **quality**: *undefined* \| *number* - -Specifies the quality of the JPEG. (0-100, where 100 means best quality (no compression)) - -It is recommended to set this to `90` or even `80`, since the user probably won't notice a difference between `90`/`80` and `100`. - -**`default`** 100 - -Defined in: [src/Snapshot.ts:9](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Snapshot.ts#L9) - -___ - -### skipMetadata - -• `Optional` **skipMetadata**: *undefined* \| *boolean* - -When set to `true`, metadata reading and mapping will be skipped. (`PhotoFile.metadata` will be null) - -This might result in a faster capture, as metadata reading and mapping requires File IO. - -**`default`** false - -**`platform`** Android - -Defined in: [src/Snapshot.ts:20](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Snapshot.ts#L20) diff --git a/docs/docs/api/interfaces/photofile.takephotooptions.md b/docs/docs/api/interfaces/photofile.takephotooptions.md index 240073e..34825d1 100644 --- a/docs/docs/api/interfaces/photofile.takephotooptions.md +++ b/docs/docs/api/interfaces/photofile.takephotooptions.md @@ -20,7 +20,7 @@ Specifies whether the photo output should use content aware distortion correctio **`default`** false -Defined in: [src/PhotoFile.ts:52](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/PhotoFile.ts#L52) +Defined in: [src/PhotoFile.ts:52](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/PhotoFile.ts#L52) ___ @@ -32,7 +32,7 @@ Specifies whether red-eye reduction should be applied automatically on flash cap **`default`** false -Defined in: [src/PhotoFile.ts:33](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/PhotoFile.ts#L33) +Defined in: [src/PhotoFile.ts:33](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/PhotoFile.ts#L33) ___ @@ -44,7 +44,7 @@ Indicates whether still image stabilization will be employed when capturing the **`default`** false -Defined in: [src/PhotoFile.ts:46](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/PhotoFile.ts#L46) +Defined in: [src/PhotoFile.ts:46](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/PhotoFile.ts#L46) ___ @@ -57,7 +57,7 @@ to create a combined, higher quality image. **`see`** [`isAutoVirtualDeviceFusionEnabled`](https://developer.apple.com/documentation/avfoundation/avcapturephotosettings/3192192-isautovirtualdevicefusionenabled) -Defined in: [src/PhotoFile.ts:40](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/PhotoFile.ts#L40) +Defined in: [src/PhotoFile.ts:40](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/PhotoFile.ts#L40) ___ @@ -69,7 +69,7 @@ Whether the Flash should be enabled or disabled **`default`** "auto" -Defined in: [src/PhotoFile.ts:27](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/PhotoFile.ts#L27) +Defined in: [src/PhotoFile.ts:27](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/PhotoFile.ts#L27) ___ @@ -81,7 +81,7 @@ Specify the photo codec to use. To get a list of available photo codecs use the **`default`** undefined -Defined in: [src/PhotoFile.ts:10](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/PhotoFile.ts#L10) +Defined in: [src/PhotoFile.ts:10](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/PhotoFile.ts#L10) ___ @@ -99,7 +99,7 @@ Indicates how photo quality should be prioritized against speed. **`default`** "balanced" -Defined in: [src/PhotoFile.ts:21](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/PhotoFile.ts#L21) +Defined in: [src/PhotoFile.ts:21](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/PhotoFile.ts#L21) ___ @@ -115,4 +115,4 @@ This might result in a faster capture, as metadata reading and mapping requires **`platform`** Android -Defined in: [src/PhotoFile.ts:62](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/PhotoFile.ts#L62) +Defined in: [src/PhotoFile.ts:62](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/PhotoFile.ts#L62) diff --git a/docs/docs/api/interfaces/point.point-1.md b/docs/docs/api/interfaces/point.point-1.md index 5e0888f..0460e3f 100644 --- a/docs/docs/api/interfaces/point.point-1.md +++ b/docs/docs/api/interfaces/point.point-1.md @@ -20,7 +20,7 @@ Represents a Point in a 2 dimensional coordinate system. The X coordinate of this Point. (double) -Defined in: [src/Point.ts:8](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Point.ts#L8) +Defined in: [src/Point.ts:8](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Point.ts#L8) ___ @@ -30,4 +30,4 @@ ___ The Y coordinate of this Point. (double) -Defined in: [src/Point.ts:12](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Point.ts#L12) +Defined in: [src/Point.ts:12](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Point.ts#L12) diff --git a/docs/docs/api/interfaces/snapshot.takesnapshotoptions.md b/docs/docs/api/interfaces/snapshot.takesnapshotoptions.md index 30d7783..5fccfec 100644 --- a/docs/docs/api/interfaces/snapshot.takesnapshotoptions.md +++ b/docs/docs/api/interfaces/snapshot.takesnapshotoptions.md @@ -22,7 +22,7 @@ It is recommended to set this to `90` or even `80`, since the user probably won' **`default`** 100 -Defined in: [src/Snapshot.ts:9](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Snapshot.ts#L9) +Defined in: [src/Snapshot.ts:9](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Snapshot.ts#L9) ___ @@ -38,4 +38,4 @@ This might result in a faster capture, as metadata reading and mapping requires **`platform`** Android -Defined in: [src/Snapshot.ts:20](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Snapshot.ts#L20) +Defined in: [src/Snapshot.ts:20](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Snapshot.ts#L20) diff --git a/docs/docs/api/interfaces/videofile.recordvideooptions.md b/docs/docs/api/interfaces/videofile.recordvideooptions.md index a27df84..c5ed4e1 100644 --- a/docs/docs/api/interfaces/videofile.recordvideooptions.md +++ b/docs/docs/api/interfaces/videofile.recordvideooptions.md @@ -18,7 +18,7 @@ hide_title: true Set the video flash mode. Natively, this just enables the torch while recording. -Defined in: [src/VideoFile.ts:36](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/VideoFile.ts#L36) +Defined in: [src/VideoFile.ts:36](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/VideoFile.ts#L36) ___ @@ -40,9 +40,9 @@ Name | Type | **Returns:** *void* -Defined in: [src/VideoFile.ts:40](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/VideoFile.ts#L40) +Defined in: [src/VideoFile.ts:40](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/VideoFile.ts#L40) -Defined in: [src/VideoFile.ts:40](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/VideoFile.ts#L40) +Defined in: [src/VideoFile.ts:40](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/VideoFile.ts#L40) ___ @@ -64,6 +64,6 @@ Name | Type | **Returns:** *void* -Defined in: [src/VideoFile.ts:44](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/VideoFile.ts#L44) +Defined in: [src/VideoFile.ts:44](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/VideoFile.ts#L44) -Defined in: [src/VideoFile.ts:44](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/VideoFile.ts#L44) +Defined in: [src/VideoFile.ts:44](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/VideoFile.ts#L44) diff --git a/docs/docs/api/modules/camera.md b/docs/docs/api/modules/camera.md index b33ed37..63a81f6 100644 --- a/docs/docs/api/modules/camera.md +++ b/docs/docs/api/modules/camera.md @@ -29,7 +29,7 @@ Name | Type | Description | `enableHighResolutionCapture`? | *boolean* | Indicates whether the photo render pipeline should be configured to deliver high resolution still images **`default`** false | `enablePortraitEffectsMatteDelivery`? | *boolean* | A boolean specifying whether the photo render pipeline is prepared for portrait effects matte delivery. When enabling this, you must also set `enableDepthData` to `true`. **`platform`** iOS 12.0+ **`default`** false | -Defined in: [src/Camera.tsx:73](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L73) +Defined in: [src/Camera.tsx:73](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L73) ___ @@ -46,7 +46,7 @@ Name | Type | Description | `torch`? | *off* \| *on* | Set the current torch mode. Note: The torch is only available on `"back"` cameras, and isn't supported by every phone. **`default`** "off" | `zoom`? | *number* | Specifies the zoom factor of the current camera, in percent. (`0.0` - `1.0`) **`default`** 0.0 | -Defined in: [src/Camera.tsx:102](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L102) +Defined in: [src/Camera.tsx:102](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L102) ___ @@ -61,7 +61,7 @@ Name | Type | Description | `onError`? | (`error`: [*CameraRuntimeError*](../classes/cameraerror.cameraruntimeerror.md)) => *void* | Called when any kind of runtime error occured. | `onInitialized`? | () => *void* | Called when the camera was successfully initialized. | -Defined in: [src/Camera.tsx:133](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L133) +Defined in: [src/Camera.tsx:133](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L133) ___ @@ -69,7 +69,7 @@ ___ Ƭ **CameraPermissionRequestResult**: *authorized* \| *denied* -Defined in: [src/Camera.tsx:152](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L152) +Defined in: [src/Camera.tsx:152](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L152) ___ @@ -77,7 +77,7 @@ ___ Ƭ **CameraPermissionStatus**: *authorized* \| *not-determined* \| *denied* \| *restricted* -Defined in: [src/Camera.tsx:151](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L151) +Defined in: [src/Camera.tsx:151](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L151) ___ @@ -85,7 +85,7 @@ ___ Ƭ **CameraProps**: CameraPresetProps \| CameraFormatProps & CameraScannerPropsNever \| [*CameraScannerProps*](camera.md#camerascannerprops) & [*CameraDeviceProps*](camera.md#cameradeviceprops) & [*CameraDynamicProps*](camera.md#cameradynamicprops) & [*CameraEventProps*](camera.md#cameraeventprops) & ViewProps -Defined in: [src/Camera.tsx:144](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L144) +Defined in: [src/Camera.tsx:144](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L144) ___ @@ -93,4 +93,4 @@ ___ Ƭ **CameraScannerProps**: *Modify* *void* ; `scannableCodes`: [*CodeType*](code.md#codetype)[] }\> -Defined in: [src/Camera.tsx:65](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L65) +Defined in: [src/Camera.tsx:65](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Camera.tsx#L65) diff --git a/docs/docs/api/modules/cameracodec.md b/docs/docs/api/modules/cameracodec.md index 428160d..e4c29ec 100644 --- a/docs/docs/api/modules/cameracodec.md +++ b/docs/docs/api/modules/cameracodec.md @@ -20,7 +20,7 @@ Available Photo Codec types used for taking a photo. * `"jpeg"`: The JPEG (`jpeg`) video codec. _(iOS 11.0+)_ * `"hevc-alpha"`: The HEVC (`muxa`) video codec that supports an alpha channel. This constant is used to select the appropriate encoder, but is NOT used on the encoded content, which is backwards compatible and hence uses `"hvc1"` as its codec type. _(iOS 13.0+)_ -Defined in: [src/CameraCodec.ts:33](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraCodec.ts#L33) +Defined in: [src/CameraCodec.ts:33](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraCodec.ts#L33) ___ @@ -40,4 +40,4 @@ Available Video Codec types used for recording a video. * `"pro-res-422-proxy"`: The Apple ProRes 422 Proxy (`apco`) video codec. _(iOS 13.0+)_ * `"hevc-alpha"`: The HEVC (`muxa`) video codec that supports an alpha channel. This constant is used to select the appropriate encoder, but is NOT used on the encoded content, which is backwards compatible and hence uses `"hvc1"` as its codec type. _(iOS 13.0+)_ -Defined in: [src/CameraCodec.ts:14](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraCodec.ts#L14) +Defined in: [src/CameraCodec.ts:14](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraCodec.ts#L14) diff --git a/docs/docs/api/modules/cameradevice.md b/docs/docs/api/modules/cameradevice.md index 46a219f..9f4e359 100644 --- a/docs/docs/api/modules/cameradevice.md +++ b/docs/docs/api/modules/cameradevice.md @@ -20,7 +20,7 @@ Indicates a format's autofocus system. * `"contrast-detection"`: Indicates that autofocus is achieved by contrast detection. Contrast detection performs a focus scan to find the optimal position * `"phase-detection"`: Indicates that autofocus is achieved by phase detection. Phase detection has the ability to achieve focus in many cases without a focus scan. Phase detection autofocus is typically less visually intrusive than contrast detection autofocus -Defined in: [src/CameraDevice.ts:64](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraDevice.ts#L64) +Defined in: [src/CameraDevice.ts:64](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraDevice.ts#L64) ___ @@ -30,7 +30,7 @@ ___ Represents a camera device discovered by the `Camera.getAvailableCameraDevices()` function -Defined in: [src/CameraDevice.ts:159](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraDevice.ts#L159) +Defined in: [src/CameraDevice.ts:159](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraDevice.ts#L159) ___ @@ -40,7 +40,7 @@ ___ A Camera Device's video format. Do not create instances of this type yourself, only use `Camera.getAvailableCameraDevices(...)`. -Defined in: [src/CameraDevice.ts:85](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraDevice.ts#L85) +Defined in: [src/CameraDevice.ts:85](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraDevice.ts#L85) ___ @@ -58,7 +58,7 @@ Indicates a format's color space. #### The following colorspaces are available on Android: * `"yuv"`: The YCbCr color space. -Defined in: [src/CameraDevice.ts:55](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraDevice.ts#L55) +Defined in: [src/CameraDevice.ts:55](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraDevice.ts#L55) ___ @@ -66,7 +66,7 @@ ___ Ƭ **FrameRateRange**: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\> -Defined in: [src/CameraDevice.ts:77](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraDevice.ts#L77) +Defined in: [src/CameraDevice.ts:77](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraDevice.ts#L77) ___ @@ -81,7 +81,7 @@ Indentifiers for a logical camera (Combinations of multiple physical cameras to * `"triple-camera"`: A device that consists of three cameras of fixed focal length, one ultrawide angle, one wide angle, and one telephoto. * `"true-depth-camera"`: A combination of cameras and other sensors that creates a capture device capable of photo, video, and depth capture. -Defined in: [src/CameraDevice.ts:20](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraDevice.ts#L20) +Defined in: [src/CameraDevice.ts:20](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraDevice.ts#L20) ___ @@ -95,7 +95,7 @@ Indentifiers for a physical camera (one that actually exists on the back/front o * `"wide-angle-camera"`: A built-in wide-angle camera. (focal length between 24mm and 35mm) * `"telephoto-camera"`: A built-in camera device with a longer focal length than a wide-angle camera. (focal length between above 85mm) -Defined in: [src/CameraDevice.ts:10](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraDevice.ts#L10) +Defined in: [src/CameraDevice.ts:10](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraDevice.ts#L10) ___ @@ -111,7 +111,7 @@ Indicates a format's supported video stabilization mode * `"cinematic-extended"`: Indicates that the video should be stabilized using the extended cinematic stabilization algorithm. Enabling extended cinematic stabilization introduces longer latency into the video capture pipeline compared to the AVCaptureVideoStabilizationModeCinematic and consumes more memory, but yields improved stability. It is recommended to use identical or similar min and max frame durations in conjunction with this mode (iOS 13.0+) * `"auto"`: Indicates that the most appropriate video stabilization mode for the device and format should be chosen automatically -Defined in: [src/CameraDevice.ts:75](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraDevice.ts#L75) +Defined in: [src/CameraDevice.ts:75](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraDevice.ts#L75) ## Functions @@ -131,4 +131,4 @@ Name | Type | **Returns:** *ultra-wide-angle-camera* \| *wide-angle-camera* \| *telephoto-camera* \| *dual-camera* \| *dual-wide-camera* \| *triple-camera* \| *true-depth-camera* -Defined in: [src/CameraDevice.ts:26](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraDevice.ts#L26) +Defined in: [src/CameraDevice.ts:26](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraDevice.ts#L26) diff --git a/docs/docs/api/modules/cameraerror.md b/docs/docs/api/modules/cameraerror.md index a777325..3c63d3e 100644 --- a/docs/docs/api/modules/cameraerror.md +++ b/docs/docs/api/modules/cameraerror.md @@ -25,7 +25,7 @@ hide_title: true Ƭ **CaptureError**: *capture/invalid-photo-format* \| *capture/encoder-error* \| *capture/muxer-error* \| *capture/recording-in-progress* \| *capture/no-recording-in-progress* \| *capture/file-io-error* \| *capture/create-temp-file-error* \| *capture/invalid-photo-codec* \| *capture/not-bound-error* \| *capture/capture-type-not-supported* \| *capture/unknown* -Defined in: [src/CameraError.ts:24](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L24) +Defined in: [src/CameraError.ts:24](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L24) ___ @@ -33,7 +33,7 @@ ___ Ƭ **DeviceError**: *device/configuration-error* \| *device/no-device* \| *device/invalid-device* \| *device/torch-unavailable* \| *device/microphone-unavailable* \| *device/low-light-boost-not-supported* \| *device/focus-not-supported* \| *device/camera-not-available-on-simulator* -Defined in: [src/CameraError.ts:8](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L8) +Defined in: [src/CameraError.ts:8](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L8) ___ @@ -41,7 +41,7 @@ ___ Ƭ **FormatError**: *format/invalid-fps* \| *format/invalid-hdr* \| *format/invalid-low-light-boost* \| *format/invalid-format* \| *format/invalid-preset* -Defined in: [src/CameraError.ts:17](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L17) +Defined in: [src/CameraError.ts:17](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L17) ___ @@ -49,7 +49,7 @@ ___ Ƭ **ParameterError**: *parameter/invalid-parameter* \| *parameter/unsupported-os* \| *parameter/unsupported-output* \| *parameter/unsupported-input* \| *parameter/invalid-combination* -Defined in: [src/CameraError.ts:2](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L2) +Defined in: [src/CameraError.ts:2](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L2) ___ @@ -57,7 +57,7 @@ ___ Ƭ **PermissionError**: *permission/microphone-permission-denied* \| *permission/camera-permission-denied* -Defined in: [src/CameraError.ts:1](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L1) +Defined in: [src/CameraError.ts:1](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L1) ___ @@ -65,7 +65,7 @@ ___ Ƭ **SessionError**: *session/camera-not-ready* \| *session/audio-session-setup-failed* -Defined in: [src/CameraError.ts:23](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L23) +Defined in: [src/CameraError.ts:23](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L23) ___ @@ -73,7 +73,7 @@ ___ Ƭ **SystemError**: *system/no-camera-manager* -Defined in: [src/CameraError.ts:36](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L36) +Defined in: [src/CameraError.ts:36](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L36) ___ @@ -81,7 +81,7 @@ ___ Ƭ **UnknownError**: *unknown/unknown* -Defined in: [src/CameraError.ts:37](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L37) +Defined in: [src/CameraError.ts:37](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L37) ## Functions @@ -97,7 +97,7 @@ Name | Type | **Returns:** error is ErrorWithCause -Defined in: [src/CameraError.ts:127](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L127) +Defined in: [src/CameraError.ts:127](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L127) ___ @@ -125,4 +125,4 @@ Name | Type | Description | A `CameraRuntimeError` or `CameraCaptureError`, or the nativeError if it's not parsable -Defined in: [src/CameraError.ts:153](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L153) +Defined in: [src/CameraError.ts:153](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraError.ts#L153) diff --git a/docs/docs/api/modules/cameraposition.md b/docs/docs/api/modules/cameraposition.md index c80d166..8c9f616 100644 --- a/docs/docs/api/modules/cameraposition.md +++ b/docs/docs/api/modules/cameraposition.md @@ -25,4 +25,4 @@ Represents the camera device position. #### Android only * `"external"`: The camera device is an external camera, and has no fixed facing relative to the device's screen. (Android only) -Defined in: [src/CameraPosition.ts:13](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraPosition.ts#L13) +Defined in: [src/CameraPosition.ts:13](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraPosition.ts#L13) diff --git a/docs/docs/api/modules/camerapreset.md b/docs/docs/api/modules/camerapreset.md index 8bfa10a..757bab4 100644 --- a/docs/docs/api/modules/camerapreset.md +++ b/docs/docs/api/modules/camerapreset.md @@ -29,4 +29,4 @@ Indicates the quality level or bit rate of the output. * `"photo"`: Specifies capture settings suitable for high-resolution photo quality output. * `"vga-640x480"`: Specifies capture settings suitable for VGA quality (640 x 480 pixel) video output. -Defined in: [src/CameraPreset.ts:17](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraPreset.ts#L17) +Defined in: [src/CameraPreset.ts:17](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraPreset.ts#L17) diff --git a/docs/docs/api/modules/code.md b/docs/docs/api/modules/code.md index 79db96b..fe7554d 100644 --- a/docs/docs/api/modules/code.md +++ b/docs/docs/api/modules/code.md @@ -16,7 +16,7 @@ hide_title: true Represents a File in the local filesystem. -Defined in: [src/Code.ts:27](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Code.ts#L27) +Defined in: [src/Code.ts:27](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Code.ts#L27) ___ @@ -26,4 +26,4 @@ ___ Available code types -Defined in: [src/Code.ts:4](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Code.ts#L4) +Defined in: [src/Code.ts:4](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/Code.ts#L4) diff --git a/docs/docs/api/modules/hooks_usecameradevices.md b/docs/docs/api/modules/hooks_usecameradevices.md index 1a4a0da..6ebf93d 100644 --- a/docs/docs/api/modules/hooks_usecameradevices.md +++ b/docs/docs/api/modules/hooks_usecameradevices.md @@ -29,7 +29,7 @@ return The best matching `CameraDevice`. -Defined in: [src/hooks/useCameraDevices.ts:29](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/hooks/useCameraDevices.ts#L29) +Defined in: [src/hooks/useCameraDevices.ts:29](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/hooks/useCameraDevices.ts#L29) ▸ **useCameraDevices**(`deviceType`: [*PhysicalCameraDeviceType*](cameradevice.md#physicalcameradevicetype) \| [*LogicalCameraDeviceType*](cameradevice.md#logicalcameradevicetype)): CameraDevices @@ -54,4 +54,4 @@ Name | Type | Description | A `CameraDevice` for the requested device type. -Defined in: [src/hooks/useCameraDevices.ts:44](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/hooks/useCameraDevices.ts#L44) +Defined in: [src/hooks/useCameraDevices.ts:44](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/hooks/useCameraDevices.ts#L44) diff --git a/docs/docs/api/modules/hooks_usecameraformat.md b/docs/docs/api/modules/hooks_usecameraformat.md index dab7e83..515bed4 100644 --- a/docs/docs/api/modules/hooks_usecameraformat.md +++ b/docs/docs/api/modules/hooks_usecameraformat.md @@ -29,4 +29,4 @@ Name | Type | Description | The best matching format for the given camera device, or `undefined` if the camera device is `undefined`. -Defined in: [src/hooks/useCameraFormat.ts:16](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/hooks/useCameraFormat.ts#L16) +Defined in: [src/hooks/useCameraFormat.ts:16](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/hooks/useCameraFormat.ts#L16) diff --git a/docs/docs/api/modules/index.md b/docs/docs/api/modules/index.md deleted file mode 100644 index 4541c7d..0000000 --- a/docs/docs/api/modules/index.md +++ /dev/null @@ -1,666 +0,0 @@ ---- -id: "index" -title: "Module: index" -sidebar_label: "index" -custom_edit_url: null -hide_title: true ---- - -# Module: index - -## Table of contents - -### Classes - -- [Camera](../classes/index.camera.md) -- [CameraCaptureError](../classes/index.cameracaptureerror.md) -- [CameraRuntimeError](../classes/index.cameraruntimeerror.md) - -### Interfaces - -- [ErrorWithCause](../interfaces/index.errorwithcause.md) -- [Point](../interfaces/index.point.md) -- [RecordVideoOptions](../interfaces/index.recordvideooptions.md) -- [TakePhotoOptions](../interfaces/index.takephotooptions.md) -- [TakeSnapshotOptions](../interfaces/index.takesnapshotoptions.md) - -## Type aliases - -### AutoFocusSystem - -Ƭ **AutoFocusSystem**: *contrast-detection* \| *phase-detection* \| *none* - -Indicates a format's autofocus system. - -* `"none"`: Indicates that autofocus is not available -* `"contrast-detection"`: Indicates that autofocus is achieved by contrast detection. Contrast detection performs a focus scan to find the optimal position -* `"phase-detection"`: Indicates that autofocus is achieved by phase detection. Phase detection has the ability to achieve focus in many cases without a focus scan. Phase detection autofocus is typically less visually intrusive than contrast detection autofocus - -Defined in: [src/CameraDevice.ts:64](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraDevice.ts#L64) - -___ - -### CameraDevice - -Ƭ **CameraDevice**: *Readonly*<{ `devices`: [*PhysicalCameraDeviceType*](cameradevice.md#physicalcameradevicetype)[] ; `formats`: [*CameraDeviceFormat*](cameradevice.md#cameradeviceformat)[] ; `hasFlash`: *boolean* ; `hasTorch`: *boolean* ; `id`: *string* ; `isMultiCam`: *boolean* ; `maxZoom`: *number* ; `minZoom`: *number* ; `name`: *string* ; `neutralZoom`: *number* ; `position`: [*CameraPosition*](cameraposition.md#cameraposition) ; `supportsLowLightBoost`: *boolean* }\> - -Represents a camera device discovered by the `Camera.getAvailableCameraDevices()` function - -Defined in: [src/CameraDevice.ts:159](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraDevice.ts#L159) - -___ - -### CameraDeviceFormat - -Ƭ **CameraDeviceFormat**: *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: [*FrameRateRange*](cameradevice.md#frameraterange)[] ; `isHighestPhotoQualitySupported?`: *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *number* }\> - -A Camera Device's video format. Do not create instances of this type yourself, only use `Camera.getAvailableCameraDevices(...)`. - -Defined in: [src/CameraDevice.ts:85](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraDevice.ts#L85) - -___ - -### CameraDeviceProps - -Ƭ **CameraDeviceProps**: *object* - -#### Type declaration: - -Name | Type | Description | -:------ | :------ | :------ | -`device` | [*CameraDevice*](cameradevice.md#cameradevice) | The Camera Device to use | -`enableDepthData`? | *boolean* | Also captures data from depth-perception sensors. (e.g. disparity maps) **`default`** false | -`enableHighResolutionCapture`? | *boolean* | Indicates whether the photo render pipeline should be configured to deliver high resolution still images **`default`** false | -`enablePortraitEffectsMatteDelivery`? | *boolean* | A boolean specifying whether the photo render pipeline is prepared for portrait effects matte delivery. When enabling this, you must also set `enableDepthData` to `true`. **`platform`** iOS 12.0+ **`default`** false | - -Defined in: [src/Camera.tsx:73](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L73) - -___ - -### CameraDynamicProps - -Ƭ **CameraDynamicProps**: *object* - -#### Type declaration: - -Name | Type | Description | -:------ | :------ | :------ | -`enableZoomGesture`? | *boolean* | Enables or disables the pinch to zoom gesture **`default`** false | -`isActive` | *boolean* | Whether the Camera should actively stream video frames, or not. This can be compared to a Video component, where `isActive` specifies whether the video is paused or not. > Note: If you fully unmount the `` component instead of using `isActive={false}`, the Camera will take a bit longer to start again. In return, it will use less resources since the Camera will be completely destroyed when unmounted. | -`torch`? | *off* \| *on* | Set the current torch mode. Note: The torch is only available on `"back"` cameras, and isn't supported by every phone. **`default`** "off" | -`zoom`? | *number* | Specifies the zoom factor of the current camera, in percent. (`0.0` - `1.0`) **`default`** 0.0 | - -Defined in: [src/Camera.tsx:102](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L102) - -___ - -### CameraEventProps - -Ƭ **CameraEventProps**: *object* - -#### Type declaration: - -Name | Type | Description | -:------ | :------ | :------ | -`onError`? | (`error`: [*CameraRuntimeError*](../classes/cameraerror.cameraruntimeerror.md)) => *void* | Called when any kind of runtime error occured. | -`onInitialized`? | () => *void* | Called when the camera was successfully initialized. | - -Defined in: [src/Camera.tsx:133](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L133) - -___ - -### CameraPermissionRequestResult - -Ƭ **CameraPermissionRequestResult**: *authorized* \| *denied* - -Defined in: [src/Camera.tsx:152](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L152) - -___ - -### CameraPermissionStatus - -Ƭ **CameraPermissionStatus**: *authorized* \| *not-determined* \| *denied* \| *restricted* - -Defined in: [src/Camera.tsx:151](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L151) - -___ - -### CameraPhotoCodec - -Ƭ **CameraPhotoCodec**: *hevc* \| *jpeg* \| *hevc-alpha* - -Available Photo Codec types used for taking a photo. - -* `"hevc"`: The HEVC video codec. _(iOS 11.0+)_ -* `"jpeg"`: The JPEG (`jpeg`) video codec. _(iOS 11.0+)_ -* `"hevc-alpha"`: The HEVC (`muxa`) video codec that supports an alpha channel. This constant is used to select the appropriate encoder, but is NOT used on the encoded content, which is backwards compatible and hence uses `"hvc1"` as its codec type. _(iOS 13.0+)_ - -Defined in: [src/CameraCodec.ts:33](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraCodec.ts#L33) - -___ - -### CameraPosition - -Ƭ **CameraPosition**: *front* \| *back* \| *unspecified* \| *external* - -Represents the camera device position. - -* `"back"`: Indicates that the device is physically located on the back of the system hardware -* `"front"`: Indicates that the device is physically located on the front of the system hardware - -#### iOS only -* `"unspecified"`: Indicates that the device's position relative to the system hardware is unspecified - -#### Android only -* `"external"`: The camera device is an external camera, and has no fixed facing relative to the device's screen. (Android only) - -Defined in: [src/CameraPosition.ts:13](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraPosition.ts#L13) - -___ - -### CameraPreset - -Ƭ **CameraPreset**: *cif-352x288* \| *hd-1280x720* \| *hd-1920x1080* \| *hd-3840x2160* \| *high* \| *iframe-1280x720* \| *iframe-960x540* \| *input-priority* \| *low* \| *medium* \| *photo* \| *vga-640x480* - -Indicates the quality level or bit rate of the output. - -* `"cif-352x288"`: Specifies capture settings suitable for CIF quality (352 x 288 pixel) video output -* `"hd-1280x720"`: Specifies capture settings suitable for 720p quality (1280 x 720 pixel) video output. -* `"hd-1920x1080"`: Capture settings suitable for 1080p-quality (1920 x 1080 pixels) video output. -* `"hd-3840x2160"`: Capture settings suitable for 2160p-quality (3840 x 2160 pixels, "4k") video output. -* `"high"`: Specifies capture settings suitable for high-quality video and audio output. -* `"iframe-1280x720"`: Specifies capture settings to achieve 1280 x 720 quality iFrame H.264 video at about 40 Mbits/sec with AAC audio. -* `"iframe-960x540"`: Specifies capture settings to achieve 960 x 540 quality iFrame H.264 video at about 30 Mbits/sec with AAC audio. -* `"input-priority"`: Specifies that the capture session does not control audio and video output settings. -* `"low"`: Specifies capture settings suitable for output video and audio bit rates suitable for sharing over 3G. -* `"medium"`: Specifies capture settings suitable for output video and audio bit rates suitable for sharing over WiFi. -* `"photo"`: Specifies capture settings suitable for high-resolution photo quality output. -* `"vga-640x480"`: Specifies capture settings suitable for VGA quality (640 x 480 pixel) video output. - -Defined in: [src/CameraPreset.ts:17](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraPreset.ts#L17) - -___ - -### CameraProps - -Ƭ **CameraProps**: CameraPresetProps \| CameraFormatProps & CameraScannerPropsNever \| [*CameraScannerProps*](camera.md#camerascannerprops) & [*CameraDeviceProps*](camera.md#cameradeviceprops) & [*CameraDynamicProps*](camera.md#cameradynamicprops) & [*CameraEventProps*](camera.md#cameraeventprops) & ViewProps - -Defined in: [src/Camera.tsx:144](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L144) - -___ - -### CameraScannerProps - -Ƭ **CameraScannerProps**: *Modify* *void* ; `scannableCodes`: [*CodeType*](code.md#codetype)[] }\> - -Defined in: [src/Camera.tsx:65](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Camera.tsx#L65) - -___ - -### CameraVideoCodec - -Ƭ **CameraVideoCodec**: *h264* \| *hevc* \| *hevc-alpha* \| *jpeg* \| *pro-res-4444* \| *pro-res-422* \| *pro-res-422-hq* \| *pro-res-422-lt* \| *pro-res-422-proxy* - -Available Video Codec types used for recording a video. - -* `"hevc"`: The HEVC video codec. _(iOS 11.0+)_ -* `"h264"`: The H.264 (`avc1`) video codec. _(iOS 11.0+)_ -* `"jpeg"`: The JPEG (`jpeg`) video codec. _(iOS 11.0+)_ -* `"pro-res-4444"`: The Apple ProRes 4444 (`ap4h`) video codec. _(iOS 11.0+)_ -* `"pro-res-422"`: The Apple ProRes 422 (`apcn`) video codec. _(iOS 11.0+)_ -* `"pro-res-422-hq"`: The Apple ProRes 422 HQ (`apch`) video codec. _(iOS 13.0+)_ -* `"pro-res-422-lt"`: The Apple ProRes 422 LT (`apcs`) video codec. _(iOS 13.0+)_ -* `"pro-res-422-proxy"`: The Apple ProRes 422 Proxy (`apco`) video codec. _(iOS 13.0+)_ -* `"hevc-alpha"`: The HEVC (`muxa`) video codec that supports an alpha channel. This constant is used to select the appropriate encoder, but is NOT used on the encoded content, which is backwards compatible and hence uses `"hvc1"` as its codec type. _(iOS 13.0+)_ - -Defined in: [src/CameraCodec.ts:14](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraCodec.ts#L14) - -___ - -### CaptureError - -Ƭ **CaptureError**: *capture/invalid-photo-format* \| *capture/encoder-error* \| *capture/muxer-error* \| *capture/recording-in-progress* \| *capture/no-recording-in-progress* \| *capture/file-io-error* \| *capture/create-temp-file-error* \| *capture/invalid-photo-codec* \| *capture/not-bound-error* \| *capture/capture-type-not-supported* \| *capture/unknown* - -Defined in: [src/CameraError.ts:24](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L24) - -___ - -### Code - -Ƭ **Code**: *Readonly*<{ `bounds`: { `height`: *number* ; `maxX`: *number* ; `maxY`: *number* ; `minX`: *number* ; `minY`: *number* ; `width`: *number* } ; `code?`: *string* ; `type`: [*CodeType*](code.md#codetype) }\> - -Represents a File in the local filesystem. - -Defined in: [src/Code.ts:27](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Code.ts#L27) - -___ - -### CodeType - -Ƭ **CodeType**: *cat-body* \| *dog-body* \| *human-body* \| *salient-object* \| *aztec* \| *code-128* \| *code-39* \| *code-39-mod-43* \| *code-93* \| *data-matrix* \| *ean-13* \| *ean-8* \| *face* \| *interleaved-2-of-5* \| *itf-14* \| *pdf-417* \| *qr* \| *upce* - -Available code types - -Defined in: [src/Code.ts:4](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/Code.ts#L4) - -___ - -### ColorSpace - -Ƭ **ColorSpace**: *hlg-bt2020* \| *p3-d65* \| *srgb* \| *yuv* - -Indicates a format's color space. - -#### The following colorspaces are available on iOS: -* `"srgb"`: The sGRB color space (https://www.w3.org/Graphics/Color/srgb) -* `"p3-d65"`: The P3 D65 wide color space which uses Illuminant D65 as the white point -* `"hlg-bt2020"`: The BT2020 wide color space which uses Illuminant D65 as the white point and Hybrid Log-Gamma as the transfer function - -#### The following colorspaces are available on Android: -* `"yuv"`: The YCbCr color space. - -Defined in: [src/CameraDevice.ts:55](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraDevice.ts#L55) - -___ - -### DeviceError - -Ƭ **DeviceError**: *device/configuration-error* \| *device/no-device* \| *device/invalid-device* \| *device/torch-unavailable* \| *device/microphone-unavailable* \| *device/low-light-boost-not-supported* \| *device/focus-not-supported* \| *device/camera-not-available-on-simulator* - -Defined in: [src/CameraError.ts:8](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L8) - -___ - -### FormatError - -Ƭ **FormatError**: *format/invalid-fps* \| *format/invalid-hdr* \| *format/invalid-low-light-boost* \| *format/invalid-format* \| *format/invalid-preset* - -Defined in: [src/CameraError.ts:17](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L17) - -___ - -### FrameRateRange - -Ƭ **FrameRateRange**: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\> - -Defined in: [src/CameraDevice.ts:77](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraDevice.ts#L77) - -___ - -### LogicalCameraDeviceType - -Ƭ **LogicalCameraDeviceType**: *dual-camera* \| *dual-wide-camera* \| *triple-camera* \| *true-depth-camera* - -Indentifiers for a logical camera (Combinations of multiple physical cameras to create a single logical camera). - -* `"dual-camera"`: A combination of wide-angle and telephoto cameras that creates a capture device. -* `"dual-wide-camera"`: A device that consists of two cameras of fixed focal length, one ultrawide angle and one wide angle. -* `"triple-camera"`: A device that consists of three cameras of fixed focal length, one ultrawide angle, one wide angle, and one telephoto. -* `"true-depth-camera"`: A combination of cameras and other sensors that creates a capture device capable of photo, video, and depth capture. - -Defined in: [src/CameraDevice.ts:20](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraDevice.ts#L20) - -___ - -### ParameterError - -Ƭ **ParameterError**: *parameter/invalid-parameter* \| *parameter/unsupported-os* \| *parameter/unsupported-output* \| *parameter/unsupported-input* \| *parameter/invalid-combination* - -Defined in: [src/CameraError.ts:2](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L2) - -___ - -### PermissionError - -Ƭ **PermissionError**: *permission/microphone-permission-denied* \| *permission/camera-permission-denied* - -Defined in: [src/CameraError.ts:1](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L1) - -___ - -### PhotoFile - -Ƭ **PhotoFile**: *Readonly*<[*TemporaryFile*](temporaryfile.md#temporaryfile) & { `height`: *number* ; `isRawPhoto`: *boolean* ; `metadata`: { `DPIHeight`: *number* ; `DPIWidth`: *number* ; `Orientation`: *number* ; `{Exif}`: { `ApertureValue`: *number* ; `BrightnessValue`: *number* ; `ColorSpace`: *number* ; `DateTimeDigitized`: *string* ; `DateTimeOriginal`: *string* ; `ExifVersion`: *string* ; `ExposureBiasValue`: *number* ; `ExposureMode`: *number* ; `ExposureProgram`: *number* ; `ExposureTime`: *number* ; `FNumber`: *number* ; `Flash`: *number* ; `FocalLenIn35mmFilm`: *number* ; `FocalLength`: *number* ; `ISOSpeedRatings`: *number*[] ; `LensMake`: *string* ; `LensModel`: *string* ; `LensSpecification`: *number*[] ; `MeteringMode`: *number* ; `OffsetTime`: *string* ; `OffsetTimeDigitized`: *string* ; `OffsetTimeOriginal`: *string* ; `PixelXDimension`: *number* ; `PixelYDimension`: *number* ; `SceneType`: *number* ; `SensingMethod`: *number* ; `ShutterSpeedValue`: *number* ; `SubjectArea`: *number*[] ; `SubsecTimeDigitized`: *string* ; `SubsecTimeOriginal`: *string* ; `WhiteBalance`: *number* } ; `{MakerApple}?`: *Record* ; `{TIFF}`: { `DateTime`: *string* ; `HostComputer?`: *string* ; `Make`: *string* ; `Model`: *string* ; `ResolutionUnit`: *number* ; `Software`: *string* ; `XResolution`: *number* ; `YResolution`: *number* } } ; `thumbnail?`: *Record* ; `width`: *number* }\> - -Represents a Photo taken by the Camera written to the local filesystem. - -Defined in: [src/PhotoFile.ts:68](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/PhotoFile.ts#L68) - -___ - -### PhysicalCameraDeviceType - -Ƭ **PhysicalCameraDeviceType**: *ultra-wide-angle-camera* \| *wide-angle-camera* \| *telephoto-camera* - -Indentifiers for a physical camera (one that actually exists on the back/front of the device) - -* `"ultra-wide-angle-camera"`: A built-in camera with a shorter focal length than that of a wide-angle camera. (focal length between below 24mm) -* `"wide-angle-camera"`: A built-in wide-angle camera. (focal length between 24mm and 35mm) -* `"telephoto-camera"`: A built-in camera device with a longer focal length than a wide-angle camera. (focal length between above 85mm) - -Defined in: [src/CameraDevice.ts:10](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraDevice.ts#L10) - -___ - -### SessionError - -Ƭ **SessionError**: *session/camera-not-ready* \| *session/audio-session-setup-failed* - -Defined in: [src/CameraError.ts:23](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L23) - -___ - -### Size - -Ƭ **Size**: *object* - -Represents a Size in any unit. - -#### Type declaration: - -Name | Type | Description | -:------ | :------ | :------ | -`height` | *number* | Points in height. | -`width` | *number* | Points in width. | - -Defined in: [src/utils/FormatFilter.ts:36](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/utils/FormatFilter.ts#L36) - -___ - -### SystemError - -Ƭ **SystemError**: *system/no-camera-manager* - -Defined in: [src/CameraError.ts:36](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L36) - -___ - -### TemporaryFile - -Ƭ **TemporaryFile**: *Readonly*<{ `path`: *string* }\> - -Represents a temporary file in the local filesystem. - -Defined in: [src/TemporaryFile.ts:4](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/TemporaryFile.ts#L4) - -___ - -### UnknownError - -Ƭ **UnknownError**: *unknown/unknown* - -Defined in: [src/CameraError.ts:37](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L37) - -___ - -### VideoFile - -Ƭ **VideoFile**: *Readonly*<[*TemporaryFile*](temporaryfile.md#temporaryfile) & { `duration`: *number* ; `size`: *number* }\> - -Represents a Video taken by the Camera written to the local filesystem. - -Defined in: [src/VideoFile.ts:50](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/VideoFile.ts#L50) - -___ - -### VideoStabilizationMode - -Ƭ **VideoStabilizationMode**: *off* \| *standard* \| *cinematic* \| *cinematic-extended* \| *auto* - -Indicates a format's supported video stabilization mode - -* `"off"`: Indicates that video should not be stabilized -* `"standard"`: Indicates that video should be stabilized using the standard video stabilization algorithm introduced with iOS 5.0. Standard video stabilization has a reduced field of view. Enabling video stabilization may introduce additional latency into the video capture pipeline -* `"cinematic"`: Indicates that video should be stabilized using the cinematic stabilization algorithm for more dramatic results. Cinematic video stabilization has a reduced field of view compared to standard video stabilization. Enabling cinematic video stabilization introduces much more latency into the video capture pipeline than standard video stabilization and consumes significantly more system memory. Use narrow or identical min and max frame durations in conjunction with this mode -* `"cinematic-extended"`: Indicates that the video should be stabilized using the extended cinematic stabilization algorithm. Enabling extended cinematic stabilization introduces longer latency into the video capture pipeline compared to the AVCaptureVideoStabilizationModeCinematic and consumes more memory, but yields improved stability. It is recommended to use identical or similar min and max frame durations in conjunction with this mode (iOS 13.0+) -* `"auto"`: Indicates that the most appropriate video stabilization mode for the device and format should be chosen automatically - -Defined in: [src/CameraDevice.ts:75](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraDevice.ts#L75) - -## Functions - -### filterFormatsByAspectRatio - -▸ `Const`**filterFormatsByAspectRatio**(`formats`: *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\>[], `viewSize?`: [*Size*](utils_formatfilter.md#size)): *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\>[] - -Filters Camera Device Formats by the best matching aspect ratio for the given `viewSize`. - -**`example`** -```js -const formats = useMemo(() => filterFormatsByAspectRatio(device.formats, CAMERA_VIEW_SIZE), [device.formats]) -``` - -**`method`** - -#### Parameters: - -Name | Type | Description | -:------ | :------ | :------ | -`formats` | *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\>[] | A list of formats the current device has (see {@link CameraDevice.formats}) | -`viewSize` | [*Size*](utils_formatfilter.md#size) | The size of the camera view which will be used to find the best aspect ratio. Defaults to the screen size. | - -**Returns:** *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\>[] - -A list of Camera Device Formats that match the given `viewSize`' aspect ratio _as close as possible_. - -Defined in: [src/utils/FormatFilter.ts:92](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/utils/FormatFilter.ts#L92) - -___ - -### frameRateIncluded - -▸ `Const`**frameRateIncluded**(`range`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>, `fps`: *number*): *boolean* - -Returns `true` if the given Frame Rate Range (`range`) contains the given frame rate (`fps`) - -**`example`** -```js -// get all formats that support 60 FPS -const formatsWithHighFps = useMemo(() => device.formats.filter((f) => f.frameRateRanges.some((r) => frameRateIncluded(r, 60))), [device.formats]) -``` - -**`method`** - -#### Parameters: - -Name | Type | Description | -:------ | :------ | :------ | -`range` | *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\> | The range to check if the given `fps` are included in | -`fps` | *number* | The FPS to check if the given `range` supports. | - -**Returns:** *boolean* - -Defined in: [src/utils/FormatFilter.ts:137](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/utils/FormatFilter.ts#L137) - -___ - -### isErrorWithCause - -▸ `Const`**isErrorWithCause**(`error`: *unknown*): error is ErrorWithCause - -#### Parameters: - -Name | Type | -:------ | :------ | -`error` | *unknown* | - -**Returns:** error is ErrorWithCause - -Defined in: [src/CameraError.ts:127](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L127) - -___ - -### parsePhysicalDeviceTypes - -▸ `Const`**parsePhysicalDeviceTypes**(`physicalDeviceTypes`: [*PhysicalCameraDeviceType*](cameradevice.md#physicalcameradevicetype)[]): *ultra-wide-angle-camera* \| *wide-angle-camera* \| *telephoto-camera* \| *dual-camera* \| *dual-wide-camera* \| *triple-camera* \| *true-depth-camera* - -Parses an array of physical device types into a single `PhysicalCameraDeviceType` or `LogicalCameraDeviceType`, depending what matches. - -**`method`** - -#### Parameters: - -Name | Type | -:------ | :------ | -`physicalDeviceTypes` | [*PhysicalCameraDeviceType*](cameradevice.md#physicalcameradevicetype)[] | - -**Returns:** *ultra-wide-angle-camera* \| *wide-angle-camera* \| *telephoto-camera* \| *dual-camera* \| *dual-wide-camera* \| *triple-camera* \| *true-depth-camera* - -Defined in: [src/CameraDevice.ts:26](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraDevice.ts#L26) - -___ - -### sortDevices - -▸ `Const`**sortDevices**(`left`: *Readonly*<{ `devices`: [*PhysicalCameraDeviceType*](cameradevice.md#physicalcameradevicetype)[] ; `formats`: *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\>[] ; `hasFlash`: *boolean* ; `hasTorch`: *boolean* ; `id`: *string* ; `isMultiCam`: *boolean* ; `maxZoom`: *number* ; `minZoom`: *number* ; `name`: *string* ; `neutralZoom`: *number* ; `position`: [*CameraPosition*](cameraposition.md#cameraposition) ; `supportsLowLightBoost`: *boolean* }\>, `right`: *Readonly*<{ `devices`: [*PhysicalCameraDeviceType*](cameradevice.md#physicalcameradevicetype)[] ; `formats`: *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\>[] ; `hasFlash`: *boolean* ; `hasTorch`: *boolean* ; `id`: *string* ; `isMultiCam`: *boolean* ; `maxZoom`: *number* ; `minZoom`: *number* ; `name`: *string* ; `neutralZoom`: *number* ; `position`: [*CameraPosition*](cameraposition.md#cameraposition) ; `supportsLowLightBoost`: *boolean* }\>): *number* - -Compares two devices by the following criteria: -* `wide-angle-camera`s are ranked higher than others -* Devices with more physical cameras are ranked higher than ones with less. (e.g. "Triple Camera" > "Wide-Angle Camera") - -> Note that this makes the `sort()` function descending, so the first element (`[0]`) is the "best" device. - -**`example`** -```js -const devices = camera.devices.sort(sortDevices) -const bestDevice = devices[0] -``` - -**`method`** - -#### Parameters: - -Name | Type | -:------ | :------ | -`left` | *Readonly*<{ `devices`: [*PhysicalCameraDeviceType*](cameradevice.md#physicalcameradevicetype)[] ; `formats`: *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\>[] ; `hasFlash`: *boolean* ; `hasTorch`: *boolean* ; `id`: *string* ; `isMultiCam`: *boolean* ; `maxZoom`: *number* ; `minZoom`: *number* ; `name`: *string* ; `neutralZoom`: *number* ; `position`: [*CameraPosition*](cameraposition.md#cameraposition) ; `supportsLowLightBoost`: *boolean* }\> | -`right` | *Readonly*<{ `devices`: [*PhysicalCameraDeviceType*](cameradevice.md#physicalcameradevicetype)[] ; `formats`: *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\>[] ; `hasFlash`: *boolean* ; `hasTorch`: *boolean* ; `id`: *string* ; `isMultiCam`: *boolean* ; `maxZoom`: *number* ; `minZoom`: *number* ; `name`: *string* ; `neutralZoom`: *number* ; `position`: [*CameraPosition*](cameraposition.md#cameraposition) ; `supportsLowLightBoost`: *boolean* }\> | - -**Returns:** *number* - -Defined in: [src/utils/FormatFilter.ts:18](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/utils/FormatFilter.ts#L18) - -___ - -### sortFormatsByResolution - -▸ `Const`**sortFormatsByResolution**(`left`: *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\>, `right`: *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\>): *number* - -Sorts Camera Device Formats by highest photo-capture resolution, descending. Use this in a `.sort` function. - -**`example`** -```js -const formats = useMemo(() => device.formats.sort(sortFormatsByResolution), [device.formats]) -const bestFormat = formats[0] -``` - -**`method`** - -#### Parameters: - -Name | Type | -:------ | :------ | -`left` | *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> | -`right` | *Readonly*<{ `autoFocusSystem`: [*AutoFocusSystem*](cameradevice.md#autofocussystem) ; `colorSpaces`: [*ColorSpace*](cameradevice.md#colorspace)[] ; `fieldOfView`: *number* ; `frameRateRanges`: *Readonly*<{ `maxFrameRate`: *number* ; `minFrameRate`: *number* }\>[] ; `isHighestPhotoQualitySupported?`: *undefined* \| *boolean* ; `maxISO`: *number* ; `maxZoom`: *number* ; `minISO`: *number* ; `photoHeight`: *number* ; `photoWidth`: *number* ; `supportsPhotoHDR`: *boolean* ; `supportsVideoHDR`: *boolean* ; `videoHeight?`: *undefined* \| *number* ; `videoStabilizationModes`: [*VideoStabilizationMode*](cameradevice.md#videostabilizationmode)[] ; `videoWidth?`: *undefined* \| *number* }\> | - -**Returns:** *number* - -Defined in: [src/utils/FormatFilter.ts:112](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/utils/FormatFilter.ts#L112) - -___ - -### tryParseNativeCameraError - -▸ `Const`**tryParseNativeCameraError**(`nativeError`: T): [*CameraRuntimeError*](../classes/cameraerror.cameraruntimeerror.md) \| [*CameraCaptureError*](../classes/cameraerror.cameracaptureerror.md) \| T - -Tries to parse an error coming from native to a typed JS camera error. - -**`method`** - -#### Type parameters: - -Name | -:------ | -`T` | - -#### Parameters: - -Name | Type | Description | -:------ | :------ | :------ | -`nativeError` | T | The native error instance. This is a JSON in the legacy native module architecture. | - -**Returns:** [*CameraRuntimeError*](../classes/cameraerror.cameraruntimeerror.md) \| [*CameraCaptureError*](../classes/cameraerror.cameracaptureerror.md) \| T - -A `CameraRuntimeError` or `CameraCaptureError`, or the nativeError if it's not parsable - -Defined in: [src/CameraError.ts:153](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/CameraError.ts#L153) - -___ - -### useCameraDevices - -▸ **useCameraDevices**(): CameraDevices - -Gets the best available `CameraDevice`. Devices with more cameras are preferred. - -**`throws`** `CameraRuntimeError` if no device was found. - -**`example`** -```jsx -const device = useCameraDevice() -// ... -return -``` - -**Returns:** CameraDevices - -The best matching `CameraDevice`. - -Defined in: [src/hooks/useCameraDevices.ts:29](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/hooks/useCameraDevices.ts#L29) - -▸ **useCameraDevices**(`deviceType`: [*PhysicalCameraDeviceType*](cameradevice.md#physicalcameradevicetype) \| [*LogicalCameraDeviceType*](cameradevice.md#logicalcameradevicetype)): CameraDevices - -Gets a `CameraDevice` for the requested device type. - -**`throws`** `CameraRuntimeError` if no device was found. - -**`example`** -```jsx -const device = useCameraDevice('wide-angle-camera') -// ... -return -``` - -#### Parameters: - -Name | Type | Description | -:------ | :------ | :------ | -`deviceType` | [*PhysicalCameraDeviceType*](cameradevice.md#physicalcameradevicetype) \| [*LogicalCameraDeviceType*](cameradevice.md#logicalcameradevicetype) | Specifies a device type which will be used as a device filter. | - -**Returns:** CameraDevices - -A `CameraDevice` for the requested device type. - -Defined in: [src/hooks/useCameraDevices.ts:44](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/hooks/useCameraDevices.ts#L44) - -___ - -### useCameraFormat - -▸ **useCameraFormat**(`device?`: [*CameraDevice*](cameradevice.md#cameradevice), `cameraViewSize?`: [*Size*](utils_formatfilter.md#size)): [*CameraDeviceFormat*](cameradevice.md#cameradeviceformat) \| *undefined* - -Returns the best format for the given camera device. - -This function tries to choose a format with the highest possible photo-capture resolution and best matching aspect ratio. - -#### Parameters: - -Name | Type | Description | -:------ | :------ | :------ | -`device?` | [*CameraDevice*](cameradevice.md#cameradevice) | The Camera Device | -`cameraViewSize?` | [*Size*](utils_formatfilter.md#size) | The Camera View's size. This can be an approximation and **must be memoized**! Default: `SCREEN_SIZE` | - -**Returns:** [*CameraDeviceFormat*](cameradevice.md#cameradeviceformat) \| *undefined* - -The best matching format for the given camera device, or `undefined` if the camera device is `undefined`. - -Defined in: [src/hooks/useCameraFormat.ts:16](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/hooks/useCameraFormat.ts#L16) diff --git a/docs/docs/api/modules/photofile.md b/docs/docs/api/modules/photofile.md index e689925..8796578 100644 --- a/docs/docs/api/modules/photofile.md +++ b/docs/docs/api/modules/photofile.md @@ -22,4 +22,4 @@ hide_title: true Represents a Photo taken by the Camera written to the local filesystem. -Defined in: [src/PhotoFile.ts:68](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/PhotoFile.ts#L68) +Defined in: [src/PhotoFile.ts:68](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/PhotoFile.ts#L68) diff --git a/docs/docs/api/modules/temporaryfile.md b/docs/docs/api/modules/temporaryfile.md index 4b431f3..0503684 100644 --- a/docs/docs/api/modules/temporaryfile.md +++ b/docs/docs/api/modules/temporaryfile.md @@ -16,4 +16,4 @@ hide_title: true Represents a temporary file in the local filesystem. -Defined in: [src/TemporaryFile.ts:4](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/TemporaryFile.ts#L4) +Defined in: [src/TemporaryFile.ts:4](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/TemporaryFile.ts#L4) diff --git a/docs/docs/api/modules/utils_formatfilter.md b/docs/docs/api/modules/utils_formatfilter.md index 4c4fc62..af38b83 100644 --- a/docs/docs/api/modules/utils_formatfilter.md +++ b/docs/docs/api/modules/utils_formatfilter.md @@ -23,7 +23,7 @@ Name | Type | Description | `height` | *number* | Points in height. | `width` | *number* | Points in width. | -Defined in: [src/utils/FormatFilter.ts:36](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/utils/FormatFilter.ts#L36) +Defined in: [src/utils/FormatFilter.ts:36](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/utils/FormatFilter.ts#L36) ## Functions @@ -51,7 +51,7 @@ Name | Type | Description | A list of Camera Device Formats that match the given `viewSize`' aspect ratio _as close as possible_. -Defined in: [src/utils/FormatFilter.ts:92](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/utils/FormatFilter.ts#L92) +Defined in: [src/utils/FormatFilter.ts:92](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/utils/FormatFilter.ts#L92) ___ @@ -78,7 +78,7 @@ Name | Type | Description | **Returns:** *boolean* -Defined in: [src/utils/FormatFilter.ts:137](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/utils/FormatFilter.ts#L137) +Defined in: [src/utils/FormatFilter.ts:137](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/utils/FormatFilter.ts#L137) ___ @@ -109,7 +109,7 @@ Name | Type | **Returns:** *number* -Defined in: [src/utils/FormatFilter.ts:18](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/utils/FormatFilter.ts#L18) +Defined in: [src/utils/FormatFilter.ts:18](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/utils/FormatFilter.ts#L18) ___ @@ -136,4 +136,4 @@ Name | Type | **Returns:** *number* -Defined in: [src/utils/FormatFilter.ts:112](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/utils/FormatFilter.ts#L112) +Defined in: [src/utils/FormatFilter.ts:112](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/utils/FormatFilter.ts#L112) diff --git a/docs/docs/api/modules/videofile.md b/docs/docs/api/modules/videofile.md index 636bad8..bbf10e0 100644 --- a/docs/docs/api/modules/videofile.md +++ b/docs/docs/api/modules/videofile.md @@ -22,4 +22,4 @@ hide_title: true Represents a Video taken by the Camera written to the local filesystem. -Defined in: [src/VideoFile.ts:50](https://github.com/cuvent/react-native-vision-camera/blob/919aa3d/src/VideoFile.ts#L50) +Defined in: [src/VideoFile.ts:50](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/VideoFile.ts#L50) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index e306827..f6ceada 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -96,6 +96,7 @@ module.exports = { 'docusaurus-plugin-typedoc', { entryPoints: ['../src'], + exclude: "../src/index.ts", tsconfig: '../tsconfig.json', readme: "none", sidebar: { diff --git a/docs/typedoc-sidebar.js b/docs/typedoc-sidebar.js index 840cc3d..5c1dd40 100644 --- a/docs/typedoc-sidebar.js +++ b/docs/typedoc-sidebar.js @@ -18,7 +18,6 @@ module.exports = [ "api/modules/videofile", "api/modules/hooks_usecameradevices", "api/modules/hooks_usecameraformat", - "api/modules/index", "api/modules/utils_formatfilter" ] }, @@ -28,10 +27,7 @@ module.exports = [ "items": [ "api/classes/camera.camera-1", "api/classes/cameraerror.cameracaptureerror", - "api/classes/cameraerror.cameraruntimeerror", - "api/classes/index.camera", - "api/classes/index.cameracaptureerror", - "api/classes/index.cameraruntimeerror" + "api/classes/cameraerror.cameraruntimeerror" ] }, { @@ -42,12 +38,7 @@ module.exports = [ "api/interfaces/photofile.takephotooptions", "api/interfaces/point.point-1", "api/interfaces/snapshot.takesnapshotoptions", - "api/interfaces/videofile.recordvideooptions", - "api/interfaces/index.errorwithcause", - "api/interfaces/index.point", - "api/interfaces/index.recordvideooptions", - "api/interfaces/index.takephotooptions", - "api/interfaces/index.takesnapshotoptions" + "api/interfaces/videofile.recordvideooptions" ] } ]; \ No newline at end of file