Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12812] BlackBerry: Document orientationModes behaviors.

GitHub Issuen/a
TypeStory
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-06-28T17:33:45.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 13 BB, 2013 Sprint 13, Release 3.1.2, Release 3.2.0
ComponentsBlackBerry
Labelsdocumentation
ReporterIngo Muschenetz
AssigneeRussell McMahon
Created2013-02-21T22:12:47.000+0000
Updated2017-03-09T01:01:28.000+0000

Description

BlackBerry has some special behaviors for orientationModes we need to document so our developers are aware of them.

No orientation direction restrictions supported.

BlackBerry will not support restricting an orientation to a specific direction. For example if you only set the modes to LANDSCAPE_LEFT, it will NOT prevent LANDSCAPE_RIGHT orientation changes. If either LANDSCAPE_LEFT or LANDSCAPE_RIGHT are specified full landscape orientation changes will be allowed.

Not all orientation directions are allowed.

BlackBerry will refuse to allow some orientation directions from occurring. For example on a phone form factor the device will never rotate the UI to be facing the south direction (UPSIDE_PORTRAIT). Something similar may happen on tablet form factors, but it may be a different direction. We should verify the behavior on tablet hardware.

New LANDSCAPE constant.

BlackBerry adds the LANDSCAPE constant. This is used to enable full landscape orientation support. This is the same as using both LANDSCAPE_LEFT and LANDSCAPE_RIGHT constants.

Empty orientationModes array behavior.

If the array is left empty the default behavior will be restored. This behavior is defined by what orientation setting are used in the application manifest. See the [OrientationSupport](http://developer.blackberry.com/cascades/reference/bb__cascades__orientationsupport.html) guide for more details.

Comments

  1. Russell McMahon 2013-03-11

    Document this as a part of standard docs. If needed we can add to current change log if needed.
  2. Russell McMahon 2013-06-28

    The orientationModes are documented in our docs: http://docs.appcelerator.com/titanium/latest/#!/guide/tiapp.xml_and_timodule.xml_Reference-section-29004921_tiapp.xmlandtimodule.xmlReference-BlackBerryspecificsection
  3. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source