开发手册设备相关模块 (device)获取前台应用的画面方向 (device.front_orien)本页总览获取前台应用的画面方向 (device.front_orien) 声明 旋转状态 = device.front_orien() 返回值 旋转状态 整数型,相对于画面 返回 0 表示 home 在下 返回 1 表示 home 在右 返回 2 表示 home 在左 返回 3 表示 home 在上 返回 4 表示 出错了 示例 sys.toast('这个提示会以前台应用的旋转方向显示', device.front_orien()) 注:上述代码中使用了非本章函数 sys.toast