[TIMOB-14780] iOS: Ti.UI.orientationModeFilter to app-wide block orientations
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Blain Hamon |
Assignee | Unknown |
Created | 2013-08-07T22:11:01.000+0000 |
Updated | 2018-02-28T20:04:20.000+0000 |
Description
Note: While this spec is for iOS only, consideration in the design should include Android.
On iOS, not all view controllers are under Titanium control (e.g., Mail composer, Activities). Because of issues (especially in 5.x and before), we did not control their orientation. But with iOS 6, native applications can control them. We should provide a means similar.
Ti.UI.orientationModeFilter is an array of orientations allowed with the following pseudocode:
On startup, the info.plist is checked. If no such orientation limits are mentioned, the default for the device (all but upside down for iPod/iPhone, all orientations for iPad) is used.
This property can be changed.
Whenever the OS requests the window's orientation, Titanium reports to the OS the orientationModes as such:
No comments