CameraFacingControl

class CameraFacingControl : Control, ICameraFacingControl

Use this control to switch the camera to back/front camera.

Since

1.0.0

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
open override fun createButton(): ControlButtonSettings

Use this method if you want to use embedded button UI.

Link copied to clipboard

Get the current camera facing. e.g. CameraLensFacing.BACK The flash light can only be on when the current value is CameraLensFacing.BACK

Link copied to clipboard
open override fun setLensFacing(cameraLensFacing: SDKConstants.CameraLensFacing)

Switch the camera to back/front camera accordingly.