Lock Screen Rotation

Hello Everyone! I was wondering if you could help me figure out how i can lock the screen vertically while using my app.
I know I can use the phone settings to do that, but I wanted something built in my app, so that if I rotate my phone (while my app is open) the screen doesn’t adjust horizontally, even if the rotation is unlocked.
I hope someone has a solution, thankyou in advance!

Hi, use this function in the global canvas in the event app launched

1 Like