聆客开放平台

# rotation

控制屏幕旋转(仅Android)。

# 输入

继承标准对象输入,扩展属性描述

名称 数据类型 必填 默认值 描述
type string landscape 横屏锁定、portrait 竖屏锁定

# 输出

继承标准对象输出,无扩展属性

# 示例代码

app.rotation("landscape"); //表示当前页面需要横屏锁定显示;
app.rotation("portrait"); //表示竖屏锁定
app.rotation("user");  //解除锁定,恢复横竖屏。