Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12815] BlackBerry: Add orientation property to tiapp.

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-03-06T02:36:54.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.1.0, 2013 Sprint 05 BB, 2013 Sprint 05
ComponentsBlackBerry
Labelsn/a
ReporterJosh Roesslein
AssigneeJosh Roesslein
Created2013-02-21T22:37:16.000+0000
Updated2017-03-09T00:49:07.000+0000

Description

Add a BlackBerry specific property to tiapp.xml which exposes a way to set the orientation setting in the generated application manifest. This is needed to lock the application into landscape or portrait. You can also enable "auto-orient" behavior which allows using Window.orientationModes to programmatically control what orientations are supported by your application. The property should live in a blackberry section. For example:
<blackberry>
  <orientation>landscape</orientation>
</blackberry>

Acceptance Test

1. Create an application which opens a window. 2. Add the snippet of code above into your tiapp.xml file. 3. Run application. Verify the UI is only allowed in landscape orientation. 4. Try changing "landscape" to "portrait" and build & run application again. 5. Verify only portrait orientation is allowed. 6. Try changing "portrait" to "auto". Build and run application. 7. Verify all orientations (except upside portrait) is allowed. 8. Remove the orientation tag in the blackberry tag. Build and run application. 9. Verify only the device's default orientation is allowed (portrait for phones).

Comments

  1. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source