@capgo/capacitor-screen-orientation 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CapgoCapacitorScreenOrientation.podspec +17 -0
- package/LICENSE +373 -0
- package/Package.swift +28 -0
- package/README.md +364 -0
- package/android/build.gradle +58 -0
- package/android/src/main/java/ee/forgr/capacitor/screenorientation/CapacitorScreenOrientationPlugin.java +277 -0
- package/dist/docs.json +513 -0
- package/dist/esm/definitions.d.ts +302 -0
- package/dist/esm/definitions.js +2 -0
- package/dist/esm/definitions.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/web.d.ts +20 -0
- package/dist/esm/web.js +81 -0
- package/dist/esm/web.js.map +1 -0
- package/dist/plugin.cjs.js +95 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +98 -0
- package/dist/plugin.js.map +1 -0
- package/ios/Sources/CapacitorScreenOrientationPlugin/CapacitorScreenOrientationPlugin.swift +287 -0
- package/ios/Tests/CapacitorScreenOrientationPluginTests/.gitkeep +0 -0
- package/package.json +92 -0
package/dist/docs.json
ADDED
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
{
|
|
2
|
+
"api": {
|
|
3
|
+
"name": "CapacitorScreenOrientationPlugin",
|
|
4
|
+
"slug": "capacitorscreenorientationplugin",
|
|
5
|
+
"docs": "Capacitor Screen Orientation Plugin interface.\n\nProvides methods to detect and control screen orientation,\nwith support for detecting true physical device orientation using motion sensors.",
|
|
6
|
+
"tags": [
|
|
7
|
+
{
|
|
8
|
+
"text": "1.0.0",
|
|
9
|
+
"name": "since"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"methods": [
|
|
13
|
+
{
|
|
14
|
+
"name": "orientation",
|
|
15
|
+
"signature": "() => Promise<ScreenOrientationResult>",
|
|
16
|
+
"parameters": [],
|
|
17
|
+
"returns": "Promise<ScreenOrientationResult>",
|
|
18
|
+
"tags": [
|
|
19
|
+
{
|
|
20
|
+
"name": "since",
|
|
21
|
+
"text": "1.0.0"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "returns",
|
|
25
|
+
"text": "A promise that resolves with the current orientation."
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "example",
|
|
29
|
+
"text": "```typescript\nconst result = await ScreenOrientation.orientation();\nconsole.log('Current orientation:', result.type);\n```"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"docs": "Get the current screen orientation.\n\nReturns the current orientation of the device screen.",
|
|
33
|
+
"complexTypes": [
|
|
34
|
+
"ScreenOrientationResult"
|
|
35
|
+
],
|
|
36
|
+
"slug": "orientation"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "lock",
|
|
40
|
+
"signature": "(options: OrientationLockOptions) => Promise<void>",
|
|
41
|
+
"parameters": [
|
|
42
|
+
{
|
|
43
|
+
"name": "options",
|
|
44
|
+
"docs": "Options for locking the orientation.",
|
|
45
|
+
"type": "OrientationLockOptions"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"returns": "Promise<void>",
|
|
49
|
+
"tags": [
|
|
50
|
+
{
|
|
51
|
+
"name": "since",
|
|
52
|
+
"text": "1.0.0"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "param",
|
|
56
|
+
"text": "options Options for locking the orientation."
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "returns",
|
|
60
|
+
"text": "A promise that resolves when the orientation is locked."
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "example",
|
|
64
|
+
"text": "```typescript\n// Standard lock\nawait ScreenOrientation.lock({ orientation: 'landscape' });\n\n// Lock with motion tracking on iOS\nawait ScreenOrientation.lock({\n orientation: 'portrait',\n bypassOrientationLock: true\n});\n```"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"docs": "Lock the screen orientation to a specific type.\n\nLocks the screen to the specified orientation.\nOn iOS, if bypassOrientationLock is true, it will also start\ntracking physical device orientation using motion sensors.\n\nNote: The UI will still respect the user's orientation lock setting.\nMotion tracking allows you to detect how the device is physically held\neven when the UI doesn't rotate.",
|
|
68
|
+
"complexTypes": [
|
|
69
|
+
"OrientationLockOptions"
|
|
70
|
+
],
|
|
71
|
+
"slug": "lock"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "unlock",
|
|
75
|
+
"signature": "() => Promise<void>",
|
|
76
|
+
"parameters": [],
|
|
77
|
+
"returns": "Promise<void>",
|
|
78
|
+
"tags": [
|
|
79
|
+
{
|
|
80
|
+
"name": "since",
|
|
81
|
+
"text": "1.0.0"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "returns",
|
|
85
|
+
"text": "A promise that resolves when the orientation is unlocked."
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "example",
|
|
89
|
+
"text": "```typescript\nawait ScreenOrientation.unlock();\n```"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"docs": "Unlock the screen orientation.\n\nAllows the screen to rotate freely based on device position.\nAlso stops any motion-based orientation tracking if it was enabled.",
|
|
93
|
+
"complexTypes": [],
|
|
94
|
+
"slug": "unlock"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "startOrientationTracking",
|
|
98
|
+
"signature": "(options?: StartOrientationTrackingOptions | undefined) => Promise<void>",
|
|
99
|
+
"parameters": [
|
|
100
|
+
{
|
|
101
|
+
"name": "options",
|
|
102
|
+
"docs": "Options for starting orientation tracking.",
|
|
103
|
+
"type": "StartOrientationTrackingOptions | undefined"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"returns": "Promise<void>",
|
|
107
|
+
"tags": [
|
|
108
|
+
{
|
|
109
|
+
"name": "since",
|
|
110
|
+
"text": "1.0.0"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "param",
|
|
114
|
+
"text": "options Options for starting orientation tracking."
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "returns",
|
|
118
|
+
"text": "A promise that resolves when tracking starts."
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "example",
|
|
122
|
+
"text": "```typescript\nawait ScreenOrientation.startOrientationTracking({\n bypassOrientationLock: true\n});\n\n// Listen for changes\nScreenOrientation.addListener('screenOrientationChange', (result) => {\n console.log('Orientation changed:', result.type);\n});\n```"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"docs": "Start tracking device orientation using motion sensors.\n\nThis method is useful when you want to track the device's physical\norientation independently from the screen orientation lock.\nIt uses Core Motion on iOS to detect orientation changes.",
|
|
126
|
+
"complexTypes": [
|
|
127
|
+
"StartOrientationTrackingOptions"
|
|
128
|
+
],
|
|
129
|
+
"slug": "startorientationtracking"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "stopOrientationTracking",
|
|
133
|
+
"signature": "() => Promise<void>",
|
|
134
|
+
"parameters": [],
|
|
135
|
+
"returns": "Promise<void>",
|
|
136
|
+
"tags": [
|
|
137
|
+
{
|
|
138
|
+
"name": "since",
|
|
139
|
+
"text": "1.0.0"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "returns",
|
|
143
|
+
"text": "A promise that resolves when tracking stops."
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "example",
|
|
147
|
+
"text": "```typescript\nawait ScreenOrientation.stopOrientationTracking();\n```"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"docs": "Stop tracking device orientation using motion sensors.\n\nStops the motion-based orientation tracking if it was started.",
|
|
151
|
+
"complexTypes": [],
|
|
152
|
+
"slug": "stoporientationtracking"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "isOrientationLocked",
|
|
156
|
+
"signature": "() => Promise<OrientationLockStatusResult>",
|
|
157
|
+
"parameters": [],
|
|
158
|
+
"returns": "Promise<OrientationLockStatusResult>",
|
|
159
|
+
"tags": [
|
|
160
|
+
{
|
|
161
|
+
"name": "since",
|
|
162
|
+
"text": "1.0.0"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "returns",
|
|
166
|
+
"text": "A promise that resolves with the lock status."
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "example",
|
|
170
|
+
"text": "```typescript\n// Start motion tracking first\nawait ScreenOrientation.startOrientationTracking({\n bypassOrientationLock: true\n});\n\n// Check lock status\nconst status = await ScreenOrientation.isOrientationLocked();\nif (status.locked) {\n console.log('Orientation lock is ON');\n console.log('Physical:', status.physicalOrientation);\n console.log('UI:', status.uiOrientation);\n}\n```"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"docs": "Check if device orientation lock is currently enabled.\n\nThis method compares the physical device orientation (from motion sensors)\nwith the UI orientation. If they differ, orientation lock is enabled.\n\nNote: This requires motion tracking to be active via\nstartOrientationTracking() or lock() with bypassOrientationLock: true.\nWorks on both iOS (Core Motion) and Android (Accelerometer).",
|
|
174
|
+
"complexTypes": [
|
|
175
|
+
"OrientationLockStatusResult"
|
|
176
|
+
],
|
|
177
|
+
"slug": "isorientationlocked"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "addListener",
|
|
181
|
+
"signature": "(eventName: 'screenOrientationChange', listenerFunc: (result: ScreenOrientationResult) => void) => Promise<PluginListenerHandle>",
|
|
182
|
+
"parameters": [
|
|
183
|
+
{
|
|
184
|
+
"name": "eventName",
|
|
185
|
+
"docs": "The event name. Must be 'screenOrientationChange'.",
|
|
186
|
+
"type": "'screenOrientationChange'"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "listenerFunc",
|
|
190
|
+
"docs": "Callback function invoked when orientation changes.",
|
|
191
|
+
"type": "(result: ScreenOrientationResult) => void"
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
195
|
+
"tags": [
|
|
196
|
+
{
|
|
197
|
+
"name": "since",
|
|
198
|
+
"text": "1.0.0"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "param",
|
|
202
|
+
"text": "eventName The event name. Must be 'screenOrientationChange'."
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "param",
|
|
206
|
+
"text": "listenerFunc Callback function invoked when orientation changes."
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "returns",
|
|
210
|
+
"text": "A promise that resolves to a listener handle."
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "example",
|
|
214
|
+
"text": "```typescript\nconst listener = await ScreenOrientation.addListener(\n 'screenOrientationChange',\n (result) => {\n console.log('New orientation:', result.type);\n }\n);\n\n// To remove the listener:\nawait listener.remove();\n```"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"docs": "Listen for screen orientation changes.\n\nRegisters a listener that will be called whenever the screen orientation changes.\nIf motion-based tracking is enabled, this will also fire for orientation changes\ndetected by motion sensors even when orientation lock is enabled.",
|
|
218
|
+
"complexTypes": [
|
|
219
|
+
"PluginListenerHandle",
|
|
220
|
+
"ScreenOrientationResult"
|
|
221
|
+
],
|
|
222
|
+
"slug": "addlistenerscreenorientationchange-"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "removeAllListeners",
|
|
226
|
+
"signature": "() => Promise<void>",
|
|
227
|
+
"parameters": [],
|
|
228
|
+
"returns": "Promise<void>",
|
|
229
|
+
"tags": [
|
|
230
|
+
{
|
|
231
|
+
"name": "since",
|
|
232
|
+
"text": "1.0.0"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"name": "returns",
|
|
236
|
+
"text": "A promise that resolves when all listeners are removed."
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "example",
|
|
240
|
+
"text": "```typescript\nawait ScreenOrientation.removeAllListeners();\n```"
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"docs": "Remove all listeners for this plugin.\n\nRemoves all registered event listeners.",
|
|
244
|
+
"complexTypes": [],
|
|
245
|
+
"slug": "removealllisteners"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "getPluginVersion",
|
|
249
|
+
"signature": "() => Promise<{ version: string; }>",
|
|
250
|
+
"parameters": [],
|
|
251
|
+
"returns": "Promise<{ version: string; }>",
|
|
252
|
+
"tags": [
|
|
253
|
+
{
|
|
254
|
+
"name": "since",
|
|
255
|
+
"text": "1.0.0"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "returns",
|
|
259
|
+
"text": "A promise that resolves with the version string."
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"name": "example",
|
|
263
|
+
"text": "```typescript\nconst { version } = await ScreenOrientation.getPluginVersion();\nconsole.log('Plugin version:', version);\n```"
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
"docs": "Get the native plugin version.\n\nReturns the current version of the native plugin implementation.",
|
|
267
|
+
"complexTypes": [],
|
|
268
|
+
"slug": "getpluginversion"
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
"properties": []
|
|
272
|
+
},
|
|
273
|
+
"interfaces": [
|
|
274
|
+
{
|
|
275
|
+
"name": "ScreenOrientationResult",
|
|
276
|
+
"slug": "screenorientationresult",
|
|
277
|
+
"docs": "Result returned by the orientation() method.",
|
|
278
|
+
"tags": [
|
|
279
|
+
{
|
|
280
|
+
"text": "1.0.0",
|
|
281
|
+
"name": "since"
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
"methods": [],
|
|
285
|
+
"properties": [
|
|
286
|
+
{
|
|
287
|
+
"name": "type",
|
|
288
|
+
"tags": [
|
|
289
|
+
{
|
|
290
|
+
"text": "1.0.0",
|
|
291
|
+
"name": "since"
|
|
292
|
+
}
|
|
293
|
+
],
|
|
294
|
+
"docs": "The current orientation type.",
|
|
295
|
+
"complexTypes": [
|
|
296
|
+
"OrientationType"
|
|
297
|
+
],
|
|
298
|
+
"type": "OrientationType"
|
|
299
|
+
}
|
|
300
|
+
]
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"name": "OrientationLockOptions",
|
|
304
|
+
"slug": "orientationlockoptions",
|
|
305
|
+
"docs": "Options for locking the screen orientation.",
|
|
306
|
+
"tags": [
|
|
307
|
+
{
|
|
308
|
+
"text": "1.0.0",
|
|
309
|
+
"name": "since"
|
|
310
|
+
}
|
|
311
|
+
],
|
|
312
|
+
"methods": [],
|
|
313
|
+
"properties": [
|
|
314
|
+
{
|
|
315
|
+
"name": "orientation",
|
|
316
|
+
"tags": [
|
|
317
|
+
{
|
|
318
|
+
"text": "1.0.0",
|
|
319
|
+
"name": "since"
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"docs": "The orientation type to lock to.",
|
|
323
|
+
"complexTypes": [
|
|
324
|
+
"OrientationLockType"
|
|
325
|
+
],
|
|
326
|
+
"type": "OrientationLockType"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"name": "bypassOrientationLock",
|
|
330
|
+
"tags": [
|
|
331
|
+
{
|
|
332
|
+
"text": "false",
|
|
333
|
+
"name": "default"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"text": "1.0.0",
|
|
337
|
+
"name": "since"
|
|
338
|
+
}
|
|
339
|
+
],
|
|
340
|
+
"docs": "Whether to track physical device orientation using motion sensors.\nWhen true, uses device motion sensors to detect the true physical\norientation of the device, even when the device orientation lock is enabled.\n\n**Important:** This does NOT bypass the UI orientation lock.\nThe screen will still respect the user's orientation lock setting.\nThis option only affects orientation detection/tracking - you'll receive\norientation change events based on how the device is physically held,\nbut the UI will not rotate if orientation lock is enabled.\n\nSupported on iOS (Core Motion) and Android (Accelerometer).",
|
|
341
|
+
"complexTypes": [],
|
|
342
|
+
"type": "boolean | undefined"
|
|
343
|
+
}
|
|
344
|
+
]
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"name": "StartOrientationTrackingOptions",
|
|
348
|
+
"slug": "startorientationtrackingoptions",
|
|
349
|
+
"docs": "Options for starting orientation tracking using motion sensors.",
|
|
350
|
+
"tags": [
|
|
351
|
+
{
|
|
352
|
+
"text": "1.0.0",
|
|
353
|
+
"name": "since"
|
|
354
|
+
}
|
|
355
|
+
],
|
|
356
|
+
"methods": [],
|
|
357
|
+
"properties": [
|
|
358
|
+
{
|
|
359
|
+
"name": "bypassOrientationLock",
|
|
360
|
+
"tags": [
|
|
361
|
+
{
|
|
362
|
+
"text": "false",
|
|
363
|
+
"name": "default"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"text": "1.0.0",
|
|
367
|
+
"name": "since"
|
|
368
|
+
}
|
|
369
|
+
],
|
|
370
|
+
"docs": "Whether to track physical device orientation using motion sensors.\nWhen true, uses device motion sensors to detect the true physical\norientation of the device, even when the device orientation lock is enabled.\n\n**Important:** This does NOT bypass the UI orientation lock.\nThis only enables detection of the physical orientation.\n\nSupported on iOS (Core Motion) and Android (Accelerometer).",
|
|
371
|
+
"complexTypes": [],
|
|
372
|
+
"type": "boolean | undefined"
|
|
373
|
+
}
|
|
374
|
+
]
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"name": "OrientationLockStatusResult",
|
|
378
|
+
"slug": "orientationlockstatusresult",
|
|
379
|
+
"docs": "Result returned by the isOrientationLocked() method.",
|
|
380
|
+
"tags": [
|
|
381
|
+
{
|
|
382
|
+
"text": "1.0.0",
|
|
383
|
+
"name": "since"
|
|
384
|
+
}
|
|
385
|
+
],
|
|
386
|
+
"methods": [],
|
|
387
|
+
"properties": [
|
|
388
|
+
{
|
|
389
|
+
"name": "locked",
|
|
390
|
+
"tags": [
|
|
391
|
+
{
|
|
392
|
+
"text": "1.0.0",
|
|
393
|
+
"name": "since"
|
|
394
|
+
}
|
|
395
|
+
],
|
|
396
|
+
"docs": "Whether the device orientation lock is currently enabled.\n\nThis is determined by comparing the physical device orientation\n(from motion sensors) with the UI orientation. If they differ,\norientation lock is enabled.\n\nAvailable on iOS (Core Motion) and Android (Accelerometer) when motion tracking is active.",
|
|
397
|
+
"complexTypes": [],
|
|
398
|
+
"type": "boolean"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"name": "physicalOrientation",
|
|
402
|
+
"tags": [
|
|
403
|
+
{
|
|
404
|
+
"text": "1.0.0",
|
|
405
|
+
"name": "since"
|
|
406
|
+
}
|
|
407
|
+
],
|
|
408
|
+
"docs": "The physical orientation of the device from motion sensors.\nAvailable when motion tracking is active (iOS and Android).",
|
|
409
|
+
"complexTypes": [
|
|
410
|
+
"OrientationType"
|
|
411
|
+
],
|
|
412
|
+
"type": "OrientationType"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"name": "uiOrientation",
|
|
416
|
+
"tags": [
|
|
417
|
+
{
|
|
418
|
+
"text": "1.0.0",
|
|
419
|
+
"name": "since"
|
|
420
|
+
}
|
|
421
|
+
],
|
|
422
|
+
"docs": "The current UI orientation reported by the system.",
|
|
423
|
+
"complexTypes": [
|
|
424
|
+
"OrientationType"
|
|
425
|
+
],
|
|
426
|
+
"type": "OrientationType"
|
|
427
|
+
}
|
|
428
|
+
]
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"name": "PluginListenerHandle",
|
|
432
|
+
"slug": "pluginlistenerhandle",
|
|
433
|
+
"docs": "",
|
|
434
|
+
"tags": [],
|
|
435
|
+
"methods": [],
|
|
436
|
+
"properties": [
|
|
437
|
+
{
|
|
438
|
+
"name": "remove",
|
|
439
|
+
"tags": [],
|
|
440
|
+
"docs": "",
|
|
441
|
+
"complexTypes": [],
|
|
442
|
+
"type": "() => Promise<void>"
|
|
443
|
+
}
|
|
444
|
+
]
|
|
445
|
+
}
|
|
446
|
+
],
|
|
447
|
+
"enums": [],
|
|
448
|
+
"typeAliases": [
|
|
449
|
+
{
|
|
450
|
+
"name": "OrientationType",
|
|
451
|
+
"slug": "orientationtype",
|
|
452
|
+
"docs": "Orientation type that describes the orientation state of the device.",
|
|
453
|
+
"types": [
|
|
454
|
+
{
|
|
455
|
+
"text": "'portrait-primary'",
|
|
456
|
+
"complexTypes": []
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"text": "'portrait-secondary'",
|
|
460
|
+
"complexTypes": []
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"text": "'landscape-primary'",
|
|
464
|
+
"complexTypes": []
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"text": "'landscape-secondary'",
|
|
468
|
+
"complexTypes": []
|
|
469
|
+
}
|
|
470
|
+
]
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"name": "OrientationLockType",
|
|
474
|
+
"slug": "orientationlocktype",
|
|
475
|
+
"docs": "Orientation lock type that can be used to lock the device orientation.",
|
|
476
|
+
"types": [
|
|
477
|
+
{
|
|
478
|
+
"text": "'any'",
|
|
479
|
+
"complexTypes": []
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"text": "'natural'",
|
|
483
|
+
"complexTypes": []
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"text": "'landscape'",
|
|
487
|
+
"complexTypes": []
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"text": "'portrait'",
|
|
491
|
+
"complexTypes": []
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"text": "'portrait-primary'",
|
|
495
|
+
"complexTypes": []
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"text": "'portrait-secondary'",
|
|
499
|
+
"complexTypes": []
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"text": "'landscape-primary'",
|
|
503
|
+
"complexTypes": []
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"text": "'landscape-secondary'",
|
|
507
|
+
"complexTypes": []
|
|
508
|
+
}
|
|
509
|
+
]
|
|
510
|
+
}
|
|
511
|
+
],
|
|
512
|
+
"pluginConfigs": []
|
|
513
|
+
}
|