fix: Fix physicalDevices DeviceType computation on Android (#2072)

* fix: Fix device type calculation on Android

* fix: Type safety for deviceTypes

* fix: Update docs
This commit is contained in:
Marc Rousavy
2023-10-24 14:27:47 +02:00
committed by GitHub
parent 5b1e5f3c9d
commit 8a5dfd6ac6
4 changed files with 46 additions and 29 deletions

View File

@@ -13,9 +13,9 @@ export type CameraPosition = 'front' | 'back' | 'external'
/**
* 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 43mm)
* * `"telephoto-camera"`: A built-in camera device with a longer focal length than a wide-angle camera. (focal length between above 85mm)
* * `"ultra-wide-angle-camera"`: A built-in camera with a shorter focal length than that of a wide-angle camera. (FOV of 94° or higher)
* * `"wide-angle-camera"`: A built-in wide-angle camera. (FOV between 60° and 94°)
* * `"telephoto-camera"`: A built-in camera device with a longer focal length than a wide-angle camera. (FOV of 60° or lower)
*
* Some Camera devices consist of multiple physical devices. They can be interpreted as _logical devices_, for example:
*