I have an app that I would like to make one specific screen orient to landscape for video, but the rest of the app should be ‘default’ or ALL or variable depending on which way the user holds the device. But if I set a screen to this:
hi @kellypacker, changing screen orientation makes a system call to rotate the screen of the entire app. In order for you to change it for a particular screen, you will need to make a screen orientation change. (ie) user goes to screen A → call allowAsync(landscape) → user goes to screen B → call allowAsync(portrait)
And yes, allowAsync is locking the screen orientations. We are changing the API in the upcoming SDK release to better reflect this behavior (ie) renaming the method to lockAsync
@quinlanj The approach you described is what I’m doing in the actual app.
I am getting reports that sometimes the orientation isn’t happening, but that is an issue for another day because it’s intermittent and I can’t pin it down.