setScreenDirection static method

Future setScreenDirection(
  1. DeviceDirectionMask directionMask
)

设置屏幕支持的方位

Implementation

static Future setScreenDirection(DeviceDirectionMask directionMask) async {
  await _channel.invokeMethod('changeScreenDirection', [directionMask.index]);
}