Device.setOrientation(orientation, animate)
Sets the orientation of the device, and an optional animation (true or false). Supported orientation values are 0 and 90 (portrait and landscape orientations).
译:设置设备的方向,允许的方向值是0到90(竖屏和横屏),这个函数会有一个额外的动画选项animation(true或false)。
# Set orientation and animate
Framer.Device.setOrientation(90, true)