feat: Add minFocusDistance prop to CameraDevice (#2392)

* docs: Link `videoHdr`

* Update PERFORMANCE.mdx

* docs: Add isActive to perf

* docs: Update errors

* feat: Add `minFocusDistance` prop

* Format

* Update Podfile.lock

* fix: To Double

* fix: Import AVFoundation

* fix: Move from format -> device

* fix: Use centi-meters (cm) instead of meters

* Fix deadloop

* fix: Avoid -1 values
This commit is contained in:
Marc Rousavy
2024-01-15 19:30:20 +01:00
committed by GitHub
parent 17ae5fae76
commit 58ef21ebfd
8 changed files with 52 additions and 5 deletions

View File

@@ -164,6 +164,10 @@ export interface CameraDevice {
* Specifies whether this camera supports continuously enabling the flash to act like a torch (flash with video capture)
*/
hasTorch: boolean
/**
* The minimum distance this device can properly focus to (in centimeters/cm) or `0` if unknown.
*/
minFocusDistance: number
/**
* A property indicating whether the device is a virtual multi-camera consisting of multiple combined physical cameras.
*