1// @needsAudit 2export var Orientation; 3(function (Orientation) { 4 /** 5 * An unknown screen orientation. For example, the device is flat, perhaps on a table. 6 */ 7 Orientation[Orientation["UNKNOWN"] = 0] = "UNKNOWN"; 8 /** 9 * Right-side up portrait interface orientation. 10 */ 11 Orientation[Orientation["PORTRAIT_UP"] = 1] = "PORTRAIT_UP"; 12 /** 13 * Upside down portrait interface orientation. 14 */ 15 Orientation[Orientation["PORTRAIT_DOWN"] = 2] = "PORTRAIT_DOWN"; 16 /** 17 * Left landscape interface orientation. 18 */ 19 Orientation[Orientation["LANDSCAPE_LEFT"] = 3] = "LANDSCAPE_LEFT"; 20 /** 21 * Right landscape interface orientation. 22 */ 23 Orientation[Orientation["LANDSCAPE_RIGHT"] = 4] = "LANDSCAPE_RIGHT"; 24})(Orientation || (Orientation = {})); 25// @needsAudit 26/** 27 * An enum whose values can be passed to the [`lockAsync`](#screenorientationlockasyncorientationlock) 28 * method. 29 * > __Note:__ `OrientationLock.ALL` and `OrientationLock.PORTRAIT` are invalid on devices which 30 * > don't support `OrientationLock.PORTRAIT_DOWN`. 31 */ 32export var OrientationLock; 33(function (OrientationLock) { 34 /** 35 * The default orientation. On iOS, this will allow all orientations except `Orientation.PORTRAIT_DOWN`. 36 * On Android, this lets the system decide the best orientation. 37 */ 38 OrientationLock[OrientationLock["DEFAULT"] = 0] = "DEFAULT"; 39 /** 40 * All four possible orientations 41 */ 42 OrientationLock[OrientationLock["ALL"] = 1] = "ALL"; 43 /** 44 * Any portrait orientation. 45 */ 46 OrientationLock[OrientationLock["PORTRAIT"] = 2] = "PORTRAIT"; 47 /** 48 * Right-side up portrait only. 49 */ 50 OrientationLock[OrientationLock["PORTRAIT_UP"] = 3] = "PORTRAIT_UP"; 51 /** 52 * Upside down portrait only. 53 */ 54 OrientationLock[OrientationLock["PORTRAIT_DOWN"] = 4] = "PORTRAIT_DOWN"; 55 /** 56 * Any landscape orientation. 57 */ 58 OrientationLock[OrientationLock["LANDSCAPE"] = 5] = "LANDSCAPE"; 59 /** 60 * Left landscape only. 61 */ 62 OrientationLock[OrientationLock["LANDSCAPE_LEFT"] = 6] = "LANDSCAPE_LEFT"; 63 /** 64 * Right landscape only. 65 */ 66 OrientationLock[OrientationLock["LANDSCAPE_RIGHT"] = 7] = "LANDSCAPE_RIGHT"; 67 /** 68 * A platform specific orientation. This is not a valid policy that can be applied in [`lockAsync`](#screenorientationlockasyncorientationlock). 69 */ 70 OrientationLock[OrientationLock["OTHER"] = 8] = "OTHER"; 71 /** 72 * An unknown screen orientation lock. This is not a valid policy that can be applied in [`lockAsync`](#screenorientationlockasyncorientationlock). 73 */ 74 OrientationLock[OrientationLock["UNKNOWN"] = 9] = "UNKNOWN"; 75})(OrientationLock || (OrientationLock = {})); 76// @needsAudit 77/** 78 * Each iOS device has a default set of [size classes](https://developer.apple.com/library/archive/featuredarticles/ViewControllerPGforiPhoneOS/TheAdaptiveModel.html) 79 * that you can use as a guide when designing your interface. 80 */ 81export var SizeClassIOS; 82(function (SizeClassIOS) { 83 SizeClassIOS[SizeClassIOS["REGULAR"] = 0] = "REGULAR"; 84 SizeClassIOS[SizeClassIOS["COMPACT"] = 1] = "COMPACT"; 85 SizeClassIOS[SizeClassIOS["UNKNOWN"] = 2] = "UNKNOWN"; 86})(SizeClassIOS || (SizeClassIOS = {})); 87// @needsAudit 88/** 89 * An enum representing the lock policies that can be applied on the web platform, modelled after 90 * the [W3C specification](https://w3c.github.io/screen-orientation/#dom-orientationlocktype). 91 * These values can be applied through the [`lockPlatformAsync`](#screenorientationlockplatformasyncoptions) 92 * method. 93 */ 94export var WebOrientationLock; 95(function (WebOrientationLock) { 96 WebOrientationLock["PORTRAIT_PRIMARY"] = "portrait-primary"; 97 WebOrientationLock["PORTRAIT_SECONDARY"] = "portrait-secondary"; 98 WebOrientationLock["PORTRAIT"] = "portrait"; 99 WebOrientationLock["LANDSCAPE_PRIMARY"] = "landscape-primary"; 100 WebOrientationLock["LANDSCAPE_SECONDARY"] = "landscape-secondary"; 101 WebOrientationLock["LANDSCAPE"] = "landscape"; 102 WebOrientationLock["ANY"] = "any"; 103 WebOrientationLock["NATURAL"] = "natural"; 104 WebOrientationLock["UNKNOWN"] = "unknown"; 105})(WebOrientationLock || (WebOrientationLock = {})); 106// @docsMissing 107export var WebOrientation; 108(function (WebOrientation) { 109 WebOrientation["PORTRAIT_PRIMARY"] = "portrait-primary"; 110 WebOrientation["PORTRAIT_SECONDARY"] = "portrait-secondary"; 111 WebOrientation["LANDSCAPE_PRIMARY"] = "landscape-primary"; 112 WebOrientation["LANDSCAPE_SECONDARY"] = "landscape-secondary"; 113})(WebOrientation || (WebOrientation = {})); 114//# sourceMappingURL=ScreenOrientation.types.js.map