聆客开放平台

# setScreenOrientation

固定横竖屏(仅Android)。

# 输入

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

名称 数据类型 必填 默认值 描述
params Object 参数值,详情见params参数说明

params参数说明:

名称 数据类型 必填 默认值 描述
type string 参数值 portrait:竖屏/landscape:横屏/auto:自动

# 输出

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

# 示例代码

app.link.setScreenOrientation({'type': example_type}, res => {
    bui.alert(res);
}, err => {
    bui.alert(err);
});