# dcb.setScreenOrientation

设置屏幕方向。

# 参数

属性 类型 默认值 必填 说明 最低版本
orientation

portrait | landscape

屏幕方向。

  • portrait: 竖屏
  • landscape: 横屏

# 示例

await dcb.setScreenOrientation({
  orientation: 'landscape',
});

# 贡献者

上次更新时间: 9/18/2020, 3:49:00 PM