LightSDK.native.setSupportScreenOrientation

功能描述

通过js接口设置屏幕可旋转方向

支持格式

Json

请求参数:

字段 可选 类型及范围 说明
supportScreenOrientation array 以数组形式,添加可设置方向。

请求调用示例

params={
"supportScreenOrientation" : ["portrait","landscape_left","landscape_right"]
};
LightSDK.native.setSupportScreenOrientation(params,cb);

返回值说明

字段名 字段类型 说明
result string 设置成功则返回success

返回字段示例

“data”: {
“result” : “success”
}

注意事项