switchCamera

fun switchCamera(onAction: HMSActionResultListener? = null): Job

Method to toggle camera between the front and back




fun switchCamera(deviceId: String, onAction: HMSActionResultListener?): Job

Method to switch camera to the given deviceID

Parameters

deviceId

the device Id of the camera to which the capturer should switch to