@capgo/capacitor-screen-orientation 8.1.21 → 8.2.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/README.md +235 -9
- package/android/build.gradle +2 -0
- package/android/src/main/java/ee/forgr/capacitor/screenorientation/CapacitorScreenOrientationPlugin.java +189 -1
- package/android/src/main/java/ee/forgr/capacitor/screenorientation/FoldLayout.java +176 -0
- package/dist/docs.json +525 -10
- package/dist/esm/definitions.d.ts +234 -0
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/web.d.ts +8 -1
- package/dist/esm/web.js +43 -0
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +45 -1
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +45 -1
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/CapacitorScreenOrientationPlugin/CapacitorScreenOrientationPlugin.swift +100 -1
- package/package.json +1 -1
package/dist/docs.json
CHANGED
|
@@ -176,50 +176,252 @@
|
|
|
176
176
|
],
|
|
177
177
|
"slug": "isorientationlocked"
|
|
178
178
|
},
|
|
179
|
+
{
|
|
180
|
+
"name": "isDeviceFoldable",
|
|
181
|
+
"signature": "() => Promise<DeviceFoldableResult>",
|
|
182
|
+
"parameters": [],
|
|
183
|
+
"returns": "Promise<DeviceFoldableResult>",
|
|
184
|
+
"tags": [
|
|
185
|
+
{
|
|
186
|
+
"name": "since",
|
|
187
|
+
"text": "8.2.0"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "returns",
|
|
191
|
+
"text": "Fold capability of this device."
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "example",
|
|
195
|
+
"text": "```typescript\nconst { foldable, supportsTabletop } = await ScreenOrientation.isDeviceFoldable();\n```"
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"docs": "Whether this device folds, and whether it can stand half-open like a laptop.\n\nBoth flags are `false` on web and iOS.",
|
|
199
|
+
"complexTypes": [
|
|
200
|
+
"DeviceFoldableResult"
|
|
201
|
+
],
|
|
202
|
+
"slug": "isdevicefoldable"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "getFoldState",
|
|
206
|
+
"signature": "() => Promise<FoldState>",
|
|
207
|
+
"parameters": [],
|
|
208
|
+
"returns": "Promise<FoldState>",
|
|
209
|
+
"tags": [
|
|
210
|
+
{
|
|
211
|
+
"name": "since",
|
|
212
|
+
"text": "8.2.0"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "returns",
|
|
216
|
+
"text": "The current fold state."
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "example",
|
|
220
|
+
"text": "```typescript\nconst { posture, hingeOrientation } = await ScreenOrientation.getFoldState();\n```"
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
"docs": "Read the current fold.\n\nResolves to a flat state when the device has no fold.",
|
|
224
|
+
"complexTypes": [
|
|
225
|
+
"FoldState"
|
|
226
|
+
],
|
|
227
|
+
"slug": "getfoldstate"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"name": "getHingeAngle",
|
|
231
|
+
"signature": "() => Promise<HingeAngleResult>",
|
|
232
|
+
"parameters": [],
|
|
233
|
+
"returns": "Promise<HingeAngleResult>",
|
|
234
|
+
"tags": [
|
|
235
|
+
{
|
|
236
|
+
"name": "since",
|
|
237
|
+
"text": "8.2.0"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"name": "returns",
|
|
241
|
+
"text": "The latest hinge angle."
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "example",
|
|
245
|
+
"text": "```typescript\nconst { angle } = await ScreenOrientation.getHingeAngle();\n```"
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
"docs": "Read the hinge angle in degrees.\n\n`0` is closed and `180` is flat. `angle` is `null` without a hinge sensor.",
|
|
249
|
+
"complexTypes": [
|
|
250
|
+
"HingeAngleResult"
|
|
251
|
+
],
|
|
252
|
+
"slug": "gethingeangle"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"name": "getSizeClass",
|
|
256
|
+
"signature": "() => Promise<SizeClass>",
|
|
257
|
+
"parameters": [],
|
|
258
|
+
"returns": "Promise<SizeClass>",
|
|
259
|
+
"tags": [
|
|
260
|
+
{
|
|
261
|
+
"name": "since",
|
|
262
|
+
"text": "8.2.0"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"name": "returns",
|
|
266
|
+
"text": "Apple and Material size classes for the current window."
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "example",
|
|
270
|
+
"text": "```typescript\nconst { horizontal, widthClass } = await ScreenOrientation.getSizeClass();\n```"
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"docs": "Read the window size classes.",
|
|
274
|
+
"complexTypes": [
|
|
275
|
+
"SizeClass"
|
|
276
|
+
],
|
|
277
|
+
"slug": "getsizeclass"
|
|
278
|
+
},
|
|
179
279
|
{
|
|
180
280
|
"name": "addListener",
|
|
181
281
|
"signature": "(eventName: 'screenOrientationChange', listenerFunc: (result: ScreenOrientationResult) => void) => Promise<PluginListenerHandle>",
|
|
182
282
|
"parameters": [
|
|
183
283
|
{
|
|
184
284
|
"name": "eventName",
|
|
185
|
-
"docs": "
|
|
285
|
+
"docs": "",
|
|
186
286
|
"type": "'screenOrientationChange'"
|
|
187
287
|
},
|
|
188
288
|
{
|
|
189
289
|
"name": "listenerFunc",
|
|
190
|
-
"docs": "
|
|
290
|
+
"docs": "",
|
|
191
291
|
"type": "(result: ScreenOrientationResult) => void"
|
|
192
292
|
}
|
|
193
293
|
],
|
|
194
294
|
"returns": "Promise<PluginListenerHandle>",
|
|
295
|
+
"tags": [],
|
|
296
|
+
"docs": "",
|
|
297
|
+
"complexTypes": [
|
|
298
|
+
"PluginListenerHandle",
|
|
299
|
+
"ScreenOrientationResult"
|
|
300
|
+
],
|
|
301
|
+
"slug": "addlistenerscreenorientationchange-"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"name": "addListener",
|
|
305
|
+
"signature": "(eventName: 'foldStateChange', listenerFunc: (state: FoldState) => void) => Promise<PluginListenerHandle>",
|
|
306
|
+
"parameters": [
|
|
307
|
+
{
|
|
308
|
+
"name": "eventName",
|
|
309
|
+
"docs": "The event name. Must be 'foldStateChange'.",
|
|
310
|
+
"type": "'foldStateChange'"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"name": "listenerFunc",
|
|
314
|
+
"docs": "Callback invoked with the new fold state.",
|
|
315
|
+
"type": "(state: FoldState) => void"
|
|
316
|
+
}
|
|
317
|
+
],
|
|
318
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
195
319
|
"tags": [
|
|
196
320
|
{
|
|
197
321
|
"name": "since",
|
|
198
|
-
"text": "
|
|
322
|
+
"text": "8.2.0"
|
|
199
323
|
},
|
|
200
324
|
{
|
|
201
325
|
"name": "param",
|
|
202
|
-
"text": "eventName The event name. Must be '
|
|
326
|
+
"text": "eventName The event name. Must be 'foldStateChange'."
|
|
203
327
|
},
|
|
204
328
|
{
|
|
205
329
|
"name": "param",
|
|
206
|
-
"text": "listenerFunc Callback
|
|
330
|
+
"text": "listenerFunc Callback invoked with the new fold state."
|
|
207
331
|
},
|
|
208
332
|
{
|
|
209
333
|
"name": "returns",
|
|
210
334
|
"text": "A promise that resolves to a listener handle."
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
"docs": "Listen for fold changes.\n\nOn a foldable this also fires when the device rotates, because the hinge\nbounds rotate with the window.",
|
|
338
|
+
"complexTypes": [
|
|
339
|
+
"PluginListenerHandle",
|
|
340
|
+
"FoldState"
|
|
341
|
+
],
|
|
342
|
+
"slug": "addlistenerfoldstatechange-"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"name": "addListener",
|
|
346
|
+
"signature": "(eventName: 'hingeAngleChange', listenerFunc: (event: HingeAngleResult) => void) => Promise<PluginListenerHandle>",
|
|
347
|
+
"parameters": [
|
|
348
|
+
{
|
|
349
|
+
"name": "eventName",
|
|
350
|
+
"docs": "The event name. Must be 'hingeAngleChange'.",
|
|
351
|
+
"type": "'hingeAngleChange'"
|
|
211
352
|
},
|
|
212
353
|
{
|
|
213
|
-
"name": "
|
|
214
|
-
"
|
|
354
|
+
"name": "listenerFunc",
|
|
355
|
+
"docs": "Callback invoked with the angle in degrees.",
|
|
356
|
+
"type": "(event: HingeAngleResult) => void"
|
|
215
357
|
}
|
|
216
358
|
],
|
|
217
|
-
"
|
|
359
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
360
|
+
"tags": [
|
|
361
|
+
{
|
|
362
|
+
"name": "since",
|
|
363
|
+
"text": "8.2.0"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"name": "param",
|
|
367
|
+
"text": "eventName The event name. Must be 'hingeAngleChange'."
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"name": "param",
|
|
371
|
+
"text": "listenerFunc Callback invoked with the angle in degrees."
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "returns",
|
|
375
|
+
"text": "A promise that resolves to a listener handle."
|
|
376
|
+
}
|
|
377
|
+
],
|
|
378
|
+
"docs": "Listen for hinge angle changes.\n\nOn Android the hinge sensor runs only while at least one listener is registered.\nNever fires on web or iOS.",
|
|
218
379
|
"complexTypes": [
|
|
219
380
|
"PluginListenerHandle",
|
|
220
|
-
"
|
|
381
|
+
"HingeAngleResult"
|
|
221
382
|
],
|
|
222
|
-
"slug": "
|
|
383
|
+
"slug": "addlistenerhingeanglechange-"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"name": "addListener",
|
|
387
|
+
"signature": "(eventName: 'sizeClassChange', listenerFunc: (sizeClass: SizeClass) => void) => Promise<PluginListenerHandle>",
|
|
388
|
+
"parameters": [
|
|
389
|
+
{
|
|
390
|
+
"name": "eventName",
|
|
391
|
+
"docs": "The event name. Must be 'sizeClassChange'.",
|
|
392
|
+
"type": "'sizeClassChange'"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"name": "listenerFunc",
|
|
396
|
+
"docs": "Callback invoked with the new size class.",
|
|
397
|
+
"type": "(sizeClass: SizeClass) => void"
|
|
398
|
+
}
|
|
399
|
+
],
|
|
400
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
401
|
+
"tags": [
|
|
402
|
+
{
|
|
403
|
+
"name": "since",
|
|
404
|
+
"text": "8.2.0"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "param",
|
|
408
|
+
"text": "eventName The event name. Must be 'sizeClassChange'."
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"name": "param",
|
|
412
|
+
"text": "listenerFunc Callback invoked with the new size class."
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"name": "returns",
|
|
416
|
+
"text": "A promise that resolves to a listener handle."
|
|
417
|
+
}
|
|
418
|
+
],
|
|
419
|
+
"docs": "Listen for size class changes, such as unfolding, rotating, or resizing.",
|
|
420
|
+
"complexTypes": [
|
|
421
|
+
"PluginListenerHandle",
|
|
422
|
+
"SizeClass"
|
|
423
|
+
],
|
|
424
|
+
"slug": "addlistenersizeclasschange-"
|
|
223
425
|
},
|
|
224
426
|
{
|
|
225
427
|
"name": "removeAllListeners",
|
|
@@ -427,6 +629,270 @@
|
|
|
427
629
|
}
|
|
428
630
|
]
|
|
429
631
|
},
|
|
632
|
+
{
|
|
633
|
+
"name": "DeviceFoldableResult",
|
|
634
|
+
"slug": "devicefoldableresult",
|
|
635
|
+
"docs": "Whether this device can fold.",
|
|
636
|
+
"tags": [
|
|
637
|
+
{
|
|
638
|
+
"text": "8.2.0",
|
|
639
|
+
"name": "since"
|
|
640
|
+
}
|
|
641
|
+
],
|
|
642
|
+
"methods": [],
|
|
643
|
+
"properties": [
|
|
644
|
+
{
|
|
645
|
+
"name": "foldable",
|
|
646
|
+
"tags": [
|
|
647
|
+
{
|
|
648
|
+
"text": "8.2.0",
|
|
649
|
+
"name": "since"
|
|
650
|
+
}
|
|
651
|
+
],
|
|
652
|
+
"docs": "Whether the device has a fold.",
|
|
653
|
+
"complexTypes": [],
|
|
654
|
+
"type": "boolean"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"name": "supportsTabletop",
|
|
658
|
+
"tags": [
|
|
659
|
+
{
|
|
660
|
+
"text": "8.2.0",
|
|
661
|
+
"name": "since"
|
|
662
|
+
}
|
|
663
|
+
],
|
|
664
|
+
"docs": "Whether it can stand half-open like a laptop.",
|
|
665
|
+
"complexTypes": [],
|
|
666
|
+
"type": "boolean"
|
|
667
|
+
}
|
|
668
|
+
]
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
"name": "FoldState",
|
|
672
|
+
"slug": "foldstate",
|
|
673
|
+
"docs": "Current fold of the window.\n\nPhones that do not fold, iOS, and web resolve to a flat state.",
|
|
674
|
+
"tags": [
|
|
675
|
+
{
|
|
676
|
+
"text": "8.2.0",
|
|
677
|
+
"name": "since"
|
|
678
|
+
}
|
|
679
|
+
],
|
|
680
|
+
"methods": [],
|
|
681
|
+
"properties": [
|
|
682
|
+
{
|
|
683
|
+
"name": "state",
|
|
684
|
+
"tags": [
|
|
685
|
+
{
|
|
686
|
+
"text": "8.2.0",
|
|
687
|
+
"name": "since"
|
|
688
|
+
}
|
|
689
|
+
],
|
|
690
|
+
"docs": "Posture of the fold.",
|
|
691
|
+
"complexTypes": [
|
|
692
|
+
"FoldStateValue"
|
|
693
|
+
],
|
|
694
|
+
"type": "FoldStateValue"
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"name": "isSeparating",
|
|
698
|
+
"tags": [
|
|
699
|
+
{
|
|
700
|
+
"text": "8.2.0",
|
|
701
|
+
"name": "since"
|
|
702
|
+
}
|
|
703
|
+
],
|
|
704
|
+
"docs": "Whether the fold splits the web view into two areas.",
|
|
705
|
+
"complexTypes": [],
|
|
706
|
+
"type": "boolean"
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
"name": "posture",
|
|
710
|
+
"tags": [
|
|
711
|
+
{
|
|
712
|
+
"text": "8.2.0",
|
|
713
|
+
"name": "since"
|
|
714
|
+
}
|
|
715
|
+
],
|
|
716
|
+
"docs": "How the device is held.",
|
|
717
|
+
"complexTypes": [
|
|
718
|
+
"FoldPosture"
|
|
719
|
+
],
|
|
720
|
+
"type": "FoldPosture"
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
"name": "hingeOrientation",
|
|
724
|
+
"tags": [
|
|
725
|
+
{
|
|
726
|
+
"text": "8.2.0",
|
|
727
|
+
"name": "since"
|
|
728
|
+
}
|
|
729
|
+
],
|
|
730
|
+
"docs": "Direction of the hinge. Omitted when there is no fold.",
|
|
731
|
+
"complexTypes": [
|
|
732
|
+
"HingeOrientation"
|
|
733
|
+
],
|
|
734
|
+
"type": "HingeOrientation"
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"name": "hingeBounds",
|
|
738
|
+
"tags": [
|
|
739
|
+
{
|
|
740
|
+
"text": "8.2.0",
|
|
741
|
+
"name": "since"
|
|
742
|
+
}
|
|
743
|
+
],
|
|
744
|
+
"docs": "Position of the fold in CSS pixels. Omitted when there is no fold.",
|
|
745
|
+
"complexTypes": [
|
|
746
|
+
"FoldBounds"
|
|
747
|
+
],
|
|
748
|
+
"type": "FoldBounds"
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
"name": "occludedBounds",
|
|
752
|
+
"tags": [
|
|
753
|
+
{
|
|
754
|
+
"text": "8.2.0",
|
|
755
|
+
"name": "since"
|
|
756
|
+
}
|
|
757
|
+
],
|
|
758
|
+
"docs": "Area the hinge covers. Present when the hinge has a physical gap.",
|
|
759
|
+
"complexTypes": [
|
|
760
|
+
"FoldBounds"
|
|
761
|
+
],
|
|
762
|
+
"type": "FoldBounds"
|
|
763
|
+
}
|
|
764
|
+
]
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"name": "FoldBounds",
|
|
768
|
+
"slug": "foldbounds",
|
|
769
|
+
"docs": "A rectangle in CSS pixels, relative to the web view.",
|
|
770
|
+
"tags": [
|
|
771
|
+
{
|
|
772
|
+
"text": "8.2.0",
|
|
773
|
+
"name": "since"
|
|
774
|
+
}
|
|
775
|
+
],
|
|
776
|
+
"methods": [],
|
|
777
|
+
"properties": [
|
|
778
|
+
{
|
|
779
|
+
"name": "x",
|
|
780
|
+
"tags": [],
|
|
781
|
+
"docs": "",
|
|
782
|
+
"complexTypes": [],
|
|
783
|
+
"type": "number"
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
"name": "y",
|
|
787
|
+
"tags": [],
|
|
788
|
+
"docs": "",
|
|
789
|
+
"complexTypes": [],
|
|
790
|
+
"type": "number"
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
"name": "width",
|
|
794
|
+
"tags": [],
|
|
795
|
+
"docs": "",
|
|
796
|
+
"complexTypes": [],
|
|
797
|
+
"type": "number"
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"name": "height",
|
|
801
|
+
"tags": [],
|
|
802
|
+
"docs": "",
|
|
803
|
+
"complexTypes": [],
|
|
804
|
+
"type": "number"
|
|
805
|
+
}
|
|
806
|
+
]
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"name": "HingeAngleResult",
|
|
810
|
+
"slug": "hingeangleresult",
|
|
811
|
+
"docs": "Angle between the two halves of a foldable, in degrees.\n\n`0` is closed and `180` is flat. `angle` is `null` when the device has no hinge sensor.",
|
|
812
|
+
"tags": [
|
|
813
|
+
{
|
|
814
|
+
"text": "8.2.0",
|
|
815
|
+
"name": "since"
|
|
816
|
+
}
|
|
817
|
+
],
|
|
818
|
+
"methods": [],
|
|
819
|
+
"properties": [
|
|
820
|
+
{
|
|
821
|
+
"name": "angle",
|
|
822
|
+
"tags": [
|
|
823
|
+
{
|
|
824
|
+
"text": "8.2.0",
|
|
825
|
+
"name": "since"
|
|
826
|
+
}
|
|
827
|
+
],
|
|
828
|
+
"docs": "Hinge angle in degrees, or `null` when no sensor is available.",
|
|
829
|
+
"complexTypes": [],
|
|
830
|
+
"type": "number | null"
|
|
831
|
+
}
|
|
832
|
+
]
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"name": "SizeClass",
|
|
836
|
+
"slug": "sizeclass",
|
|
837
|
+
"docs": "Window size classes.\n\n`horizontal` and `vertical` follow Apple's compact/regular split.\nOn Android and web, `regular` starts at 600 CSS pixels wide and 480 tall.\n`widthClass` and `heightClass` follow Material window size classes.",
|
|
838
|
+
"tags": [
|
|
839
|
+
{
|
|
840
|
+
"text": "8.2.0",
|
|
841
|
+
"name": "since"
|
|
842
|
+
}
|
|
843
|
+
],
|
|
844
|
+
"methods": [],
|
|
845
|
+
"properties": [
|
|
846
|
+
{
|
|
847
|
+
"name": "horizontal",
|
|
848
|
+
"tags": [
|
|
849
|
+
{
|
|
850
|
+
"text": "8.2.0",
|
|
851
|
+
"name": "since"
|
|
852
|
+
}
|
|
853
|
+
],
|
|
854
|
+
"docs": "Width size class. `compact` on a phone, `regular` on the inner display of a foldable, a tablet, or a window at least 600 CSS pixels wide.",
|
|
855
|
+
"complexTypes": [],
|
|
856
|
+
"type": "'compact' | 'regular'"
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"name": "vertical",
|
|
860
|
+
"tags": [
|
|
861
|
+
{
|
|
862
|
+
"text": "8.2.0",
|
|
863
|
+
"name": "since"
|
|
864
|
+
}
|
|
865
|
+
],
|
|
866
|
+
"docs": "Height size class. `regular` starts at 480 CSS pixels.",
|
|
867
|
+
"complexTypes": [],
|
|
868
|
+
"type": "'compact' | 'regular'"
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
"name": "widthClass",
|
|
872
|
+
"tags": [
|
|
873
|
+
{
|
|
874
|
+
"text": "8.2.0",
|
|
875
|
+
"name": "since"
|
|
876
|
+
}
|
|
877
|
+
],
|
|
878
|
+
"docs": "Material window width class.",
|
|
879
|
+
"complexTypes": [],
|
|
880
|
+
"type": "'compact' | 'medium' | 'expanded' | 'large' | 'extraLarge'"
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
"name": "heightClass",
|
|
884
|
+
"tags": [
|
|
885
|
+
{
|
|
886
|
+
"text": "8.2.0",
|
|
887
|
+
"name": "since"
|
|
888
|
+
}
|
|
889
|
+
],
|
|
890
|
+
"docs": "Material window height class.",
|
|
891
|
+
"complexTypes": [],
|
|
892
|
+
"type": "'compact' | 'medium' | 'expanded'"
|
|
893
|
+
}
|
|
894
|
+
]
|
|
895
|
+
},
|
|
430
896
|
{
|
|
431
897
|
"name": "PluginListenerHandle",
|
|
432
898
|
"slug": "pluginlistenerhandle",
|
|
@@ -507,6 +973,55 @@
|
|
|
507
973
|
"complexTypes": []
|
|
508
974
|
}
|
|
509
975
|
]
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"name": "FoldStateValue",
|
|
979
|
+
"slug": "foldstatevalue",
|
|
980
|
+
"docs": "How open a foldable is.\n\n`closed` is reserved. A device shut onto its cover display reports `flat`.",
|
|
981
|
+
"types": [
|
|
982
|
+
{
|
|
983
|
+
"text": "'flat'",
|
|
984
|
+
"complexTypes": []
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
"text": "'half-opened'",
|
|
988
|
+
"complexTypes": []
|
|
989
|
+
}
|
|
990
|
+
]
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
"name": "FoldPosture",
|
|
994
|
+
"slug": "foldposture",
|
|
995
|
+
"docs": "How a half-open foldable is held.\n\n`tabletop` is a horizontal hinge, like a laptop. `book` is a vertical hinge.",
|
|
996
|
+
"types": [
|
|
997
|
+
{
|
|
998
|
+
"text": "'flat'",
|
|
999
|
+
"complexTypes": []
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
"text": "'tabletop'",
|
|
1003
|
+
"complexTypes": []
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
"text": "'book'",
|
|
1007
|
+
"complexTypes": []
|
|
1008
|
+
}
|
|
1009
|
+
]
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
"name": "HingeOrientation",
|
|
1013
|
+
"slug": "hingeorientation",
|
|
1014
|
+
"docs": "Direction of the hinge relative to the window.",
|
|
1015
|
+
"types": [
|
|
1016
|
+
{
|
|
1017
|
+
"text": "'horizontal'",
|
|
1018
|
+
"complexTypes": []
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"text": "'vertical'",
|
|
1022
|
+
"complexTypes": []
|
|
1023
|
+
}
|
|
1024
|
+
]
|
|
510
1025
|
}
|
|
511
1026
|
],
|
|
512
1027
|
"pluginConfigs": []
|