setRenderRotation method
Sets the rotation angle of the local rendered picture
Parameter:
rotation
Rotation angle V2TXLiveRotation
- V2TXLiveRotation.v2TXLiveRotation0 Default value: 0 degrees, no rotation
- V2TXLiveRotation.v2TXLiveRotation90 Rotate 90 degrees clockwise
- V2TXLiveRotation.v2TXLiveRotation180 Rotate 180 degrees clockwise
- V2TXLiveRotation.v2TXLiveRotation270 Rotate 270 degrees clockwise
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);
}