Device.orientationName <字符串>
Set the device orientation by name. Valid options are "portrait" and "landscape". The portrait and landscape values are the same setting the device orientation to 0 and 90 respectively.
译:通过名称来设定设备方向,合法的选项就是“portrait”和“landscape”两个。“portrait”和“landscape”分别和设置设备方向为0度90度相对应。
# Set orientation to either landscape or portrait
Framer.Device.orientationName = "landscape"
Framer.Device.orientationName = "portrait"