locking supported orientation at runtime?

I’m writing an app that will hopefully support “show one page” in portrait mode and “show two pages” in landscape mode, based on user preferences choosing one display option or the other (it will be locked, so once a mode is chosen, device rotation would be ignored). There is a global variable storing orientation choice, if that’s helpful.

build.settings is great at locking an orientation, but it doesn’t allow the end user to choose. Is there a way to do this via code, or perhaps programmatically forcing an orientation change event?

Thanks!

–Wheezy [import]uid: 171847 topic_id: 31276 reply_id: 331276[/import]

See SampleCode folder (inside CoronaSDK folder) and you will find NativeOrientation sample code, I believe under Interface - that should have sample about manually handling orientation changes :slight_smile: [import]uid: 52491 topic_id: 31276 reply_id: 125381[/import]

See SampleCode folder (inside CoronaSDK folder) and you will find NativeOrientation sample code, I believe under Interface - that should have sample about manually handling orientation changes :slight_smile: [import]uid: 52491 topic_id: 31276 reply_id: 125381[/import]