switchCamera method
Switches between front and rear cameras.
Ensure that you call this method after the camera starts, for example, by calling startPreview
or joinChannel
.
Returns
true
: Success.false
: Failure.
Implementation
@override
Future<void> switchCamera() {
return _invokeMethod('switchCamera');
}