CameraDevice (interface)
Provides information about the camera device.
Properties
Properties
autoFocus
var autoFocus: Boolean
Whether autofocus is enabled. The default value is true if supported.
flash
var flash: Boolean
Whether flash is enabled.
The default value is false.
id
val id: String
Human-readable ID of the camera device.
Read-only.
isAutoFocusSupported
val isAutoFocusSupported: Boolean
Whether autofocus is supported. Applications should call this before attempting to set autoFocus.
Read-only.
isFlashSupported
val isFlashSupported: Boolean
Whether flash is supported. Applications should call this before attempting to set flash.
Read-only.
resolution
val resolution: CameraResolution
Camera device resolution.
Selected resolution from available supportedResolutions. Can be changed later if camera permission is not granted when using Camera 1.
Read-only.
stabilizationMode
var stabilizationMode: StabilizationMode
Stabilization mode value. The default value is StabilizationMode.Optical if supported, otherwise StabilizationMode.Off.
supportedResolutions
val supportedResolutions: List<CameraResolution>
Returns a list of supported CameraResolutions.
Is empty if camera permission not granted when using Camera 1.
Read-only.
supportedStabilizationModes
val supportedStabilizationModes: List<StabilizationMode>
Returns the list of supported StabilizationModes.
Empty if stabilization mode is not supported. Applications should call this before attempting to set stabilizationMode.
Read-only.
type
val type: CameraDeviceType
Camera device type.
Read-only.