All available formats for this camera device. Use this to find the best format for your use case and set it to the Camera's CameraProps.format | Camera's .format property.
See the Camera Formats documentation for more information about Camera Formats.
The hardware level of the Camera.
legacy
or limited
level which means they are running in a backwards compatible mode.full
.Specifies whether this camera supports enabling flash for photo capture.
Specifies whether this camera supports continuously enabling the flash to act like a torch (flash with video capture)
The native ID of the camera device instance.
A property indicating whether the device is a virtual multi-camera consisting of multiple combined physical cameras.
Examples:
The maximum Exposure-Bias value this format supports. When setting the exposure
to this value, the image is almost completely bright (over-exposed).
Maximum available zoom factor (e.g. 128
)
The minimum Exposure-Bias value this format supports. When setting the exposure
to this value, the image is almost completely dark (under-exposed).
The minimum distance this device can properly focus to (in centimeters/cm) or 0
if unknown.
Minimum available zoom factor (e.g. 1
)
A friendly localized name describing the camera.
The zoom factor where the camera is "neutral".
1.0
.minZoom
and maxZoom
, where the camera is in wide-angle mode and hasn't switched to the ultra-wide-angle ("fish-eye") or telephoto camera yet.Use this value as an initial value for the zoom property if you implement custom zoom. (e.g. reanimated shared value should be initially set to this value)
const device = ...
const zoom = useSharedValue(device.neutralZoom) // <-- initial value so it doesn't start at ultra-wide
const cameraProps = useAnimatedProps(() => ({
zoom: zoom.value
}))
The physical devices this CameraDevice
consists of.
You can check if the camera is a logical multi-camera by using the isMultiCam
property.
Specifies the physical position of this camera.
back
: The Camera Device is located on the back of the phone. These devices can be used for capturing what's in front of the user.front
: The Camera Device is located on the front of the phone. These devices can be used for selfies or FaceTime.external
: The Camera Device is an external device. These devices can be either:Represents the sensor's orientation relative to the phone. For most phones this will be landscape, as Camera sensors are usually always rotated by 90 degrees (i.e. width and height are flipped).
All Camera streams will stream in this orientation. To properly rotate the buffers "up-right", frames will need to be counter-rotated by this orientation here.
Frame.orientation
)See "Orientation"
Specifies whether this device supports focusing (Camera.focus | Camera.focus(...))
Whether this camera device supports low light boost.
Whether this camera supports taking photos in RAW format
! Work in Progress !
Represents a camera device discovered by the Camera.getAvailableCameraDevices | Camera.getAvailableCameraDevices() function