# listen to device orientation changes

Only supported by WeChat Mini Program platform, Specification Details

On the App platform, you can also use the onResize life cycle to monitor the size of the form to achieve such requirements. [See details](https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e9%9d%a2%e7%94%9f%e5%91%bd%e5% 91%a8%e6%9c%9f)