Rate this page:

CameraDevice

Provides information about the camera device.

Props

autoFocus

Copy URL
autoFocus: 

Whether autofocus is enabled. The default value is true if supported.

Returns

  • type:

    Boolean

flash

Copy URL
flash: 

Whether flash is enabled.

The default value is false.

Returns

  • type:

    Boolean

id

Copy URL
id: 

The human-readable ID of the camera device.

Returns

  • type:

    String

isAutoFocusSupported

Copy URL
isAutoFocusSupported: 

Whether autofocus is supported. Applications should call this before attempting to set autoFocus.

Returns

  • type:

    Boolean

isFlashSupported

Copy URL
isFlashSupported: 

Whether flash is supported. Applications should call this before attempting to set flash.

Returns

  • type:

    Boolean

resolution

Copy URL
resolution: 

Camera device resolution.

Selected resolution from available supportedResolutions. Can be changed later if camera permission is not granted when using Camera 1.

Returns

stabilizationMode

Copy URL
stabilizationMode: 

Stabilization mode value. The default value is StabilizationMode.Optical if supported, otherwise StabilizationMode.Off.

Returns

supportedResolutions

Copy URL
supportedResolutions: 

Returns a list of supported CameraResolutions.

Is empty if camera permission not granted when using Camera 1.

Returns

supportedStabilizationModes

Copy URL
supportedStabilizationModes: 

Returns the list of supported StabilizationModes.

Empty if stabilization mode is not supported. Applications should call this before attempting to set stabilizationMode.

Returns

type

Copy URL
type: 

Camera device type.

Returns