setRenderRotation method

Future<V2TXLiveCode> setRenderRotation(
  1. V2TXLiveRotation rotation
)

Set the rotation angle of the local camera preview screen

Only the local preview screen is rotated, and the pushed image is not affected.

Parameter:

rotation Rotation angle V2TXLiveRotation

Return:

'0' success, more information please see V2TXLiveCode

Implementation

Future<V2TXLiveCode> setRenderRotation(V2TXLiveRotation rotation) async {
  var result = await _channel.invokeMethod(
      'setRenderRotation', {"rotation": rotation.index});
  return _liveCodeWithResult(result);
}