跳到主要内容

Device.SetRotationLockEnable 锁定设备方向

🎯功能​

锁定设备方向

📜语法​

结果 = Device.SetRotationLockEnable(开关)

📥参数​

参数数据类型解释
开关布尔型打开为true, 关闭为false

📤返回​

无

💡示例​

Device.SetRotationLockEnable(true)

📘备注​

  • iOS版/安卓3.3.8版及更高版本支持