You mean to control the screen orientation? As long as you are using 4.7 and up the awnser is yes. Take a look at UiEngineInstance.
---Spends time in #blackberrydev on freenode (IRC)---- Three simple rules: 1. Please use the search bar before making new posts. 2. "Like" posts that you find helpful. 3. If a solution has been found for your post, mark it as solved. --I code too much. Well, too bad.