Device orientation, just for some views

Hi everybody,
I’d like to know if device orientation can be disabled and enabled for a specific view (not in all the app).
Today, i’ve disabled native orientation (allowing only portrait mode ), then i rotate my stage whenever i detect that the device is in landscape or portrait.

Is there a better way to do this ?

Thank you, [import]uid: 3638 topic_id: 33855 reply_id: 333855[/import]

Hello,
I believe your method is correct… you need to disable the “native” orientation switch in the OS if you want to disable it sometimes, but not always, in the app. Then, you can build your own orientation rotate detector and enable/disable it when necessary. I sense that you’re already doing this?

Best regards,
Brent
[import]uid: 200026 topic_id: 33855 reply_id: 134640[/import]

Hi brent,

First, thank you for your answer.
That’s right, this is how i do. I thought there was a better way.

Thank you again,

[import]uid: 3638 topic_id: 33855 reply_id: 134811[/import]

Hello,
I believe your method is correct… you need to disable the “native” orientation switch in the OS if you want to disable it sometimes, but not always, in the app. Then, you can build your own orientation rotate detector and enable/disable it when necessary. I sense that you’re already doing this?

Best regards,
Brent
[import]uid: 200026 topic_id: 33855 reply_id: 134640[/import]

Hi brent,

First, thank you for your answer.
That’s right, this is how i do. I thought there was a better way.

Thank you again,

[import]uid: 3638 topic_id: 33855 reply_id: 134811[/import]