Rate this page:

CameraDevice

This API is in beta and subject to change.

Provides information about the camera device.

Props

id

Copy URL
val id: 

String

This API is in beta and subject to change.

The human-readable ID of the camera device.

Returns

  • type:

    String

type

Copy URL
val type: 

CameraDeviceType

This API is in beta and subject to change.

Camera device type.

Returns

flash

Copy URL
var flash: 

Boolean

This API is in beta and subject to change.

Whether flash is enabled.

The default value is false.

Returns

  • type:

    Boolean

isFlashSupported

Copy URL
val isFlashSupported: 

Boolean

This API is in beta and subject to change.

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

Returns

  • type:

    Boolean

stabilizationMode

Copy URL
var stabilizationMode: 

StabilizationMode

This API is in beta and subject to change.

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

Returns

supportedStabilizationModes

Copy URL
val supportedStabilizationModes: 

List<StabilizationMode>

This API is in beta and subject to change.

Returns the list of supported StabilizationModes.

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

Returns

autoFocus

Copy URL
var autoFocus: 

Boolean

This API is in beta and subject to change.

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

Returns

  • type:

    Boolean

isAutoFocusSupported

Copy URL
val isAutoFocusSupported: 

Boolean

This API is in beta and subject to change.

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

Returns

  • type:

    Boolean

resolution

Copy URL
val resolution: 

CameraResolution

This API is in beta and subject to change.

Camera device resolution.

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

Returns

supportedResolutions

Copy URL
val supportedResolutions: 

List<CameraResolution>

This API is in beta and subject to change.

Returns a list of supported CameraResolutions.

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

Returns