In my B4XPages cross platform App, for the B4I App, I need to limit specific pages to specific orientations. For example, the main page locked in portrait and Page 2 locked in landscape. I know that this question has been raised in several posts on this forum but I have not seen any reply that actually answers it or works properly. The following post is the closest to the solution but apparently it does not work with IOS 16+
I realize that you can use the "#iPhoneOrientations" attribute, but that works globally across all pages.
If anyone has implemented a solution for B4I or one that works for B4I and B4A, I would really appreciate some guidance.
Thanks!
Interface orientations for separate pages
Usage. 1) Add pageOrientation module to your project. 2) After each ShowPage call setInterfaceOrientations function. For example, pageOrientations.setInterfaceOrientations (Page2, "LandscapeLeft, LandscapeRight") 3) If you want to ignore invalid orientation (let's say, in Page_Resize event)...
www.b4x.com
I realize that you can use the "#iPhoneOrientations" attribute, but that works globally across all pages.
If anyone has implemented a solution for B4I or one that works for B4I and B4A, I would really appreciate some guidance.
Thanks!