函数:setRotationLockEnable 锁定设备方向(仅支持 iOS)

函数名称:设备方向锁定

函数功能:用于设置是否开启手机的锁定方向功能

引擎版本:iOS v2.3.9 以上

函数方法

setRotationLockEnable(flag)

返回值:无

参数 类型 必填 说明
flag boolean true - 打开方向锁定;false - 关闭方向锁定

函数用例

setRotationLockEnable(true);  --打开方向锁定
setRotationLockEnable(false); --关闭方向锁定
Copyright 北京帮你玩科技有限公司 2023 all right reserved,powered by Gitbook该文章修订时间: 2024-03-06 17:50:18

results matching ""

    No results matching ""