@capgo/capacitor-device-info 8.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/dist/docs.json ADDED
@@ -0,0 +1,1285 @@
1
+ {
2
+ "api": {
3
+ "name": "DeviceInfoPlugin",
4
+ "slug": "deviceinfoplugin",
5
+ "docs": "Capacitor plugin contract for reading device CPU, memory, GPU, storage, and onboard sensor metrics.",
6
+ "tags": [
7
+ {
8
+ "text": "8.0.0",
9
+ "name": "since"
10
+ }
11
+ ],
12
+ "methods": [
13
+ {
14
+ "name": "getInfo",
15
+ "signature": "() => Promise<DeviceInfoSnapshot>",
16
+ "parameters": [],
17
+ "returns": "Promise<DeviceInfoSnapshot>",
18
+ "tags": [
19
+ {
20
+ "name": "since",
21
+ "text": "8.0.0"
22
+ }
23
+ ],
24
+ "docs": "Read one CPU, memory, GPU, storage, thermal, and onboard sensor snapshot.",
25
+ "complexTypes": [
26
+ "DeviceInfoSnapshot"
27
+ ],
28
+ "slug": "getinfo"
29
+ },
30
+ {
31
+ "name": "startMonitoring",
32
+ "signature": "(options?: MonitoringOptions | undefined) => Promise<StartMonitoringResult>",
33
+ "parameters": [
34
+ {
35
+ "name": "options",
36
+ "docs": "",
37
+ "type": "MonitoringOptions | undefined"
38
+ }
39
+ ],
40
+ "returns": "Promise<StartMonitoringResult>",
41
+ "tags": [
42
+ {
43
+ "name": "since",
44
+ "text": "8.0.0"
45
+ }
46
+ ],
47
+ "docs": "Start periodic device snapshots.\n\nListen to `deviceInfoUpdate` to receive samples. Calling this while monitoring\nis already active restarts monitoring with the new options.",
48
+ "complexTypes": [
49
+ "StartMonitoringResult",
50
+ "MonitoringOptions"
51
+ ],
52
+ "slug": "startmonitoring"
53
+ },
54
+ {
55
+ "name": "stopMonitoring",
56
+ "signature": "() => Promise<StopMonitoringResult>",
57
+ "parameters": [],
58
+ "returns": "Promise<StopMonitoringResult>",
59
+ "tags": [
60
+ {
61
+ "name": "since",
62
+ "text": "8.0.0"
63
+ }
64
+ ],
65
+ "docs": "Stop periodic device snapshots.",
66
+ "complexTypes": [
67
+ "StopMonitoringResult"
68
+ ],
69
+ "slug": "stopmonitoring"
70
+ },
71
+ {
72
+ "name": "isMonitoring",
73
+ "signature": "() => Promise<MonitoringState>",
74
+ "parameters": [],
75
+ "returns": "Promise<MonitoringState>",
76
+ "tags": [
77
+ {
78
+ "name": "since",
79
+ "text": "8.0.0"
80
+ }
81
+ ],
82
+ "docs": "Return current periodic monitoring state.",
83
+ "complexTypes": [
84
+ "MonitoringState"
85
+ ],
86
+ "slug": "ismonitoring"
87
+ },
88
+ {
89
+ "name": "addListener",
90
+ "signature": "(eventName: 'deviceInfoUpdate', listenerFunc: (event: DeviceInfoUpdate) => void) => Promise<PluginListenerHandle>",
91
+ "parameters": [
92
+ {
93
+ "name": "eventName",
94
+ "docs": "Only the `deviceInfoUpdate` event is supported.",
95
+ "type": "'deviceInfoUpdate'"
96
+ },
97
+ {
98
+ "name": "listenerFunc",
99
+ "docs": "Callback invoked with each snapshot.",
100
+ "type": "(event: DeviceInfoUpdate) => void"
101
+ }
102
+ ],
103
+ "returns": "Promise<PluginListenerHandle>",
104
+ "tags": [
105
+ {
106
+ "name": "param",
107
+ "text": "eventName Only the `deviceInfoUpdate` event is supported."
108
+ },
109
+ {
110
+ "name": "param",
111
+ "text": "listenerFunc Callback invoked with each snapshot."
112
+ },
113
+ {
114
+ "name": "since",
115
+ "text": "8.0.0"
116
+ }
117
+ ],
118
+ "docs": "Listen for periodic device snapshots.",
119
+ "complexTypes": [
120
+ "PluginListenerHandle",
121
+ "DeviceInfoUpdate"
122
+ ],
123
+ "slug": "addlistenerdeviceinfoupdate-"
124
+ },
125
+ {
126
+ "name": "removeAllListeners",
127
+ "signature": "() => Promise<void>",
128
+ "parameters": [],
129
+ "returns": "Promise<void>",
130
+ "tags": [
131
+ {
132
+ "name": "since",
133
+ "text": "8.0.0"
134
+ }
135
+ ],
136
+ "docs": "Remove all listeners that have been registered on the plugin.",
137
+ "complexTypes": [],
138
+ "slug": "removealllisteners"
139
+ },
140
+ {
141
+ "name": "getPluginVersion",
142
+ "signature": "() => Promise<PluginVersionResult>",
143
+ "parameters": [],
144
+ "returns": "Promise<PluginVersionResult>",
145
+ "tags": [
146
+ {
147
+ "name": "since",
148
+ "text": "8.0.0"
149
+ }
150
+ ],
151
+ "docs": "Get the native Capacitor plugin version.",
152
+ "complexTypes": [
153
+ "PluginVersionResult"
154
+ ],
155
+ "slug": "getpluginversion"
156
+ }
157
+ ],
158
+ "properties": []
159
+ },
160
+ "interfaces": [
161
+ {
162
+ "name": "DeviceInfoSnapshot",
163
+ "slug": "deviceinfosnapshot",
164
+ "docs": "Instant device snapshot returned by {@link DeviceInfoPlugin.getInfo}.",
165
+ "tags": [
166
+ {
167
+ "text": "8.0.0",
168
+ "name": "since"
169
+ }
170
+ ],
171
+ "methods": [],
172
+ "properties": [
173
+ {
174
+ "name": "timestamp",
175
+ "tags": [
176
+ {
177
+ "text": "8.0.0",
178
+ "name": "since"
179
+ }
180
+ ],
181
+ "docs": "Snapshot timestamp as Unix epoch milliseconds.",
182
+ "complexTypes": [],
183
+ "type": "number"
184
+ },
185
+ {
186
+ "name": "platform",
187
+ "tags": [
188
+ {
189
+ "text": "8.0.0",
190
+ "name": "since"
191
+ }
192
+ ],
193
+ "docs": "Platform implementation that produced the snapshot.",
194
+ "complexTypes": [],
195
+ "type": "'ios' | 'android' | 'web'"
196
+ },
197
+ {
198
+ "name": "cpu",
199
+ "tags": [
200
+ {
201
+ "text": "8.0.0",
202
+ "name": "since"
203
+ }
204
+ ],
205
+ "docs": "CPU information and usage.",
206
+ "complexTypes": [
207
+ "CpuInfo"
208
+ ],
209
+ "type": "CpuInfo"
210
+ },
211
+ {
212
+ "name": "memory",
213
+ "tags": [
214
+ {
215
+ "text": "8.0.0",
216
+ "name": "since"
217
+ }
218
+ ],
219
+ "docs": "Memory information and usage.",
220
+ "complexTypes": [
221
+ "MemoryInfo"
222
+ ],
223
+ "type": "MemoryInfo"
224
+ },
225
+ {
226
+ "name": "storage",
227
+ "tags": [
228
+ {
229
+ "text": "8.0.0",
230
+ "name": "since"
231
+ }
232
+ ],
233
+ "docs": "Storage information and usage.",
234
+ "complexTypes": [
235
+ "StorageInfo"
236
+ ],
237
+ "type": "StorageInfo"
238
+ },
239
+ {
240
+ "name": "gpu",
241
+ "tags": [
242
+ {
243
+ "text": "8.0.0",
244
+ "name": "since"
245
+ }
246
+ ],
247
+ "docs": "GPU information when the platform exposes it.",
248
+ "complexTypes": [
249
+ "GpuInfo"
250
+ ],
251
+ "type": "GpuInfo"
252
+ },
253
+ {
254
+ "name": "thermalState",
255
+ "tags": [
256
+ {
257
+ "text": "8.0.0",
258
+ "name": "since"
259
+ }
260
+ ],
261
+ "docs": "Thermal state when the platform exposes it.",
262
+ "complexTypes": [
263
+ "ThermalState"
264
+ ],
265
+ "type": "ThermalState"
266
+ },
267
+ {
268
+ "name": "lowPowerMode",
269
+ "tags": [
270
+ {
271
+ "text": "8.0.0",
272
+ "name": "since"
273
+ }
274
+ ],
275
+ "docs": "Low-power mode state when the platform exposes it.",
276
+ "complexTypes": [],
277
+ "type": "boolean | undefined"
278
+ },
279
+ {
280
+ "name": "sensors",
281
+ "tags": [
282
+ {
283
+ "text": "8.0.0",
284
+ "name": "since"
285
+ }
286
+ ],
287
+ "docs": "Onboard sensor availability and readings.",
288
+ "complexTypes": [
289
+ "OnboardSensorsInfo"
290
+ ],
291
+ "type": "OnboardSensorsInfo"
292
+ }
293
+ ]
294
+ },
295
+ {
296
+ "name": "CpuInfo",
297
+ "slug": "cpuinfo",
298
+ "docs": "CPU snapshot for the current device.\n\nAll frequency values are reported in hertz. `usagePercent` is `null` when a\nplatform needs at least two samples to calculate CPU usage.",
299
+ "tags": [
300
+ {
301
+ "text": "8.0.0",
302
+ "name": "since"
303
+ }
304
+ ],
305
+ "methods": [],
306
+ "properties": [
307
+ {
308
+ "name": "cores",
309
+ "tags": [
310
+ {
311
+ "text": "8.0.0",
312
+ "name": "since"
313
+ }
314
+ ],
315
+ "docs": "Total logical CPU cores visible to the app.",
316
+ "complexTypes": [],
317
+ "type": "number"
318
+ },
319
+ {
320
+ "name": "activeCores",
321
+ "tags": [
322
+ {
323
+ "text": "8.0.0",
324
+ "name": "since"
325
+ }
326
+ ],
327
+ "docs": "Logical CPU cores currently active, when the platform exposes it.",
328
+ "complexTypes": [],
329
+ "type": "number | undefined"
330
+ },
331
+ {
332
+ "name": "architecture",
333
+ "tags": [
334
+ {
335
+ "text": "8.0.0",
336
+ "name": "since"
337
+ }
338
+ ],
339
+ "docs": "CPU architecture, for example `arm64` or `x86_64`.",
340
+ "complexTypes": [],
341
+ "type": "string | undefined"
342
+ },
343
+ {
344
+ "name": "model",
345
+ "tags": [
346
+ {
347
+ "text": "8.0.0",
348
+ "name": "since"
349
+ }
350
+ ],
351
+ "docs": "CPU or SoC model identifier when available.",
352
+ "complexTypes": [],
353
+ "type": "string | undefined"
354
+ },
355
+ {
356
+ "name": "usagePercent",
357
+ "tags": [
358
+ {
359
+ "text": "8.0.0",
360
+ "name": "since"
361
+ }
362
+ ],
363
+ "docs": "System CPU usage from 0 to 100.",
364
+ "complexTypes": [],
365
+ "type": "number | null | undefined"
366
+ },
367
+ {
368
+ "name": "maxFrequencyHz",
369
+ "tags": [
370
+ {
371
+ "text": "8.0.0",
372
+ "name": "since"
373
+ }
374
+ ],
375
+ "docs": "Highest CPU frequency exposed by the platform.",
376
+ "complexTypes": [],
377
+ "type": "number | undefined"
378
+ },
379
+ {
380
+ "name": "temperatureCelsius",
381
+ "tags": [
382
+ {
383
+ "text": "8.0.0",
384
+ "name": "since"
385
+ }
386
+ ],
387
+ "docs": "CPU temperature in Celsius when the platform exposes an onboard thermal sensor.\n\nAndroid reads this as a best-effort value from device thermal zones. iOS does\nnot expose raw CPU temperature through public APIs.",
388
+ "complexTypes": [],
389
+ "type": "number | undefined"
390
+ }
391
+ ]
392
+ },
393
+ {
394
+ "name": "MemoryInfo",
395
+ "slug": "memoryinfo",
396
+ "docs": "Memory snapshot for the current device and app process.\n\nAll size values are reported in bytes.",
397
+ "tags": [
398
+ {
399
+ "text": "8.0.0",
400
+ "name": "since"
401
+ }
402
+ ],
403
+ "methods": [],
404
+ "properties": [
405
+ {
406
+ "name": "totalBytes",
407
+ "tags": [
408
+ {
409
+ "text": "8.0.0",
410
+ "name": "since"
411
+ }
412
+ ],
413
+ "docs": "Total physical memory on the device.",
414
+ "complexTypes": [],
415
+ "type": "number | undefined"
416
+ },
417
+ {
418
+ "name": "freeBytes",
419
+ "tags": [
420
+ {
421
+ "text": "8.0.0",
422
+ "name": "since"
423
+ }
424
+ ],
425
+ "docs": "Memory available to the system.",
426
+ "complexTypes": [],
427
+ "type": "number | undefined"
428
+ },
429
+ {
430
+ "name": "usedBytes",
431
+ "tags": [
432
+ {
433
+ "text": "8.0.0",
434
+ "name": "since"
435
+ }
436
+ ],
437
+ "docs": "Memory currently used by the system.",
438
+ "complexTypes": [],
439
+ "type": "number | undefined"
440
+ },
441
+ {
442
+ "name": "usedPercent",
443
+ "tags": [
444
+ {
445
+ "text": "8.0.0",
446
+ "name": "since"
447
+ }
448
+ ],
449
+ "docs": "Memory usage from 0 to 100.",
450
+ "complexTypes": [],
451
+ "type": "number | undefined"
452
+ },
453
+ {
454
+ "name": "appUsedBytes",
455
+ "tags": [
456
+ {
457
+ "text": "8.0.0",
458
+ "name": "since"
459
+ }
460
+ ],
461
+ "docs": "Memory used by the current app process.",
462
+ "complexTypes": [],
463
+ "type": "number | undefined"
464
+ },
465
+ {
466
+ "name": "appLimitBytes",
467
+ "tags": [
468
+ {
469
+ "text": "8.0.0",
470
+ "name": "since"
471
+ }
472
+ ],
473
+ "docs": "Heap limit visible to the current app process.",
474
+ "complexTypes": [],
475
+ "type": "number | undefined"
476
+ },
477
+ {
478
+ "name": "lowMemory",
479
+ "tags": [
480
+ {
481
+ "text": "8.0.0",
482
+ "name": "since"
483
+ }
484
+ ],
485
+ "docs": "Whether the OS currently reports low-memory pressure.",
486
+ "complexTypes": [],
487
+ "type": "boolean | undefined"
488
+ },
489
+ {
490
+ "name": "pressure",
491
+ "tags": [
492
+ {
493
+ "text": "8.0.0",
494
+ "name": "since"
495
+ }
496
+ ],
497
+ "docs": "Platform memory pressure label.",
498
+ "complexTypes": [],
499
+ "type": "'normal' | 'warning' | 'critical' | 'unknown' | undefined"
500
+ }
501
+ ]
502
+ },
503
+ {
504
+ "name": "StorageInfo",
505
+ "slug": "storageinfo",
506
+ "docs": "Storage snapshot for the app data volume.\n\nAll size values are reported in bytes.",
507
+ "tags": [
508
+ {
509
+ "text": "8.0.0",
510
+ "name": "since"
511
+ }
512
+ ],
513
+ "methods": [],
514
+ "properties": [
515
+ {
516
+ "name": "totalBytes",
517
+ "tags": [
518
+ {
519
+ "text": "8.0.0",
520
+ "name": "since"
521
+ }
522
+ ],
523
+ "docs": "Total bytes on the app data volume.",
524
+ "complexTypes": [],
525
+ "type": "number | undefined"
526
+ },
527
+ {
528
+ "name": "freeBytes",
529
+ "tags": [
530
+ {
531
+ "text": "8.0.0",
532
+ "name": "since"
533
+ }
534
+ ],
535
+ "docs": "Free bytes on the app data volume.",
536
+ "complexTypes": [],
537
+ "type": "number | undefined"
538
+ },
539
+ {
540
+ "name": "usedBytes",
541
+ "tags": [
542
+ {
543
+ "text": "8.0.0",
544
+ "name": "since"
545
+ }
546
+ ],
547
+ "docs": "Used bytes on the app data volume.",
548
+ "complexTypes": [],
549
+ "type": "number | undefined"
550
+ },
551
+ {
552
+ "name": "usedPercent",
553
+ "tags": [
554
+ {
555
+ "text": "8.0.0",
556
+ "name": "since"
557
+ }
558
+ ],
559
+ "docs": "Storage usage from 0 to 100.",
560
+ "complexTypes": [],
561
+ "type": "number | undefined"
562
+ }
563
+ ]
564
+ },
565
+ {
566
+ "name": "GpuInfo",
567
+ "slug": "gpuinfo",
568
+ "docs": "GPU snapshot for the primary graphics device.",
569
+ "tags": [
570
+ {
571
+ "text": "8.0.0",
572
+ "name": "since"
573
+ }
574
+ ],
575
+ "methods": [],
576
+ "properties": [
577
+ {
578
+ "name": "api",
579
+ "tags": [
580
+ {
581
+ "text": "8.0.0",
582
+ "name": "since"
583
+ }
584
+ ],
585
+ "docs": "Graphics API used to query the GPU.",
586
+ "complexTypes": [],
587
+ "type": "'unknown' | 'metal' | 'opengl' | 'webgl' | undefined"
588
+ },
589
+ {
590
+ "name": "vendor",
591
+ "tags": [
592
+ {
593
+ "text": "8.0.0",
594
+ "name": "since"
595
+ }
596
+ ],
597
+ "docs": "GPU vendor when available.",
598
+ "complexTypes": [],
599
+ "type": "string | undefined"
600
+ },
601
+ {
602
+ "name": "renderer",
603
+ "tags": [
604
+ {
605
+ "text": "8.0.0",
606
+ "name": "since"
607
+ }
608
+ ],
609
+ "docs": "GPU renderer or model name when available.",
610
+ "complexTypes": [],
611
+ "type": "string | undefined"
612
+ },
613
+ {
614
+ "name": "version",
615
+ "tags": [
616
+ {
617
+ "text": "8.0.0",
618
+ "name": "since"
619
+ }
620
+ ],
621
+ "docs": "Graphics API version string when available.",
622
+ "complexTypes": [],
623
+ "type": "string | undefined"
624
+ },
625
+ {
626
+ "name": "maxTextureSize",
627
+ "tags": [
628
+ {
629
+ "text": "8.0.0",
630
+ "name": "since"
631
+ }
632
+ ],
633
+ "docs": "Maximum texture size reported by the graphics API.",
634
+ "complexTypes": [],
635
+ "type": "number | undefined"
636
+ },
637
+ {
638
+ "name": "temperatureCelsius",
639
+ "tags": [
640
+ {
641
+ "text": "8.0.0",
642
+ "name": "since"
643
+ }
644
+ ],
645
+ "docs": "GPU temperature in Celsius when the platform exposes an onboard thermal sensor.\n\nAndroid reads this as a best-effort value from device thermal zones. iOS does\nnot expose raw GPU temperature through public APIs.",
646
+ "complexTypes": [],
647
+ "type": "number | undefined"
648
+ }
649
+ ]
650
+ },
651
+ {
652
+ "name": "OnboardSensorsInfo",
653
+ "slug": "onboardsensorsinfo",
654
+ "docs": "Onboard sensors snapshot.\n\nThis only reports hardware sensors exposed by the device or operating system.\nIt does not fetch weather data or any external temperature/humidity source.",
655
+ "tags": [
656
+ {
657
+ "text": "8.0.0",
658
+ "name": "since"
659
+ }
660
+ ],
661
+ "methods": [],
662
+ "properties": [
663
+ {
664
+ "name": "availableSensors",
665
+ "tags": [
666
+ {
667
+ "text": "8.0.0",
668
+ "name": "since"
669
+ }
670
+ ],
671
+ "docs": "Sensors available to the app.",
672
+ "complexTypes": [
673
+ "OnboardSensorDescriptor"
674
+ ],
675
+ "type": "OnboardSensorDescriptor[] | undefined"
676
+ },
677
+ {
678
+ "name": "readings",
679
+ "tags": [
680
+ {
681
+ "text": "8.0.0",
682
+ "name": "since"
683
+ }
684
+ ],
685
+ "docs": "Instant sensor readings captured for common environmental sensors.",
686
+ "complexTypes": [
687
+ "OnboardSensorReading"
688
+ ],
689
+ "type": "OnboardSensorReading[] | undefined"
690
+ },
691
+ {
692
+ "name": "batteryTemperatureCelsius",
693
+ "tags": [
694
+ {
695
+ "text": "8.0.0",
696
+ "name": "since"
697
+ }
698
+ ],
699
+ "docs": "Battery temperature in Celsius when available.",
700
+ "complexTypes": [],
701
+ "type": "number | undefined"
702
+ },
703
+ {
704
+ "name": "ambientTemperatureCelsius",
705
+ "tags": [
706
+ {
707
+ "text": "8.0.0",
708
+ "name": "since"
709
+ }
710
+ ],
711
+ "docs": "Ambient air temperature from an onboard sensor in Celsius when available.",
712
+ "complexTypes": [],
713
+ "type": "number | undefined"
714
+ },
715
+ {
716
+ "name": "relativeHumidityPercent",
717
+ "tags": [
718
+ {
719
+ "text": "8.0.0",
720
+ "name": "since"
721
+ }
722
+ ],
723
+ "docs": "Relative humidity from an onboard sensor as a percentage when available.",
724
+ "complexTypes": [],
725
+ "type": "number | undefined"
726
+ },
727
+ {
728
+ "name": "pressureHpa",
729
+ "tags": [
730
+ {
731
+ "text": "8.0.0",
732
+ "name": "since"
733
+ }
734
+ ],
735
+ "docs": "Atmospheric pressure from an onboard barometer in hectopascals when available.",
736
+ "complexTypes": [],
737
+ "type": "number | undefined"
738
+ },
739
+ {
740
+ "name": "illuminanceLux",
741
+ "tags": [
742
+ {
743
+ "text": "8.0.0",
744
+ "name": "since"
745
+ }
746
+ ],
747
+ "docs": "Ambient light from an onboard light sensor in lux when available.",
748
+ "complexTypes": [],
749
+ "type": "number | undefined"
750
+ },
751
+ {
752
+ "name": "proximityDistanceCm",
753
+ "tags": [
754
+ {
755
+ "text": "8.0.0",
756
+ "name": "since"
757
+ }
758
+ ],
759
+ "docs": "Proximity distance from an onboard proximity sensor in centimeters when available.",
760
+ "complexTypes": [],
761
+ "type": "number | undefined"
762
+ }
763
+ ]
764
+ },
765
+ {
766
+ "name": "OnboardSensorDescriptor",
767
+ "slug": "onboardsensordescriptor",
768
+ "docs": "Description of an onboard hardware sensor exposed by the platform.",
769
+ "tags": [
770
+ {
771
+ "text": "8.0.0",
772
+ "name": "since"
773
+ }
774
+ ],
775
+ "methods": [],
776
+ "properties": [
777
+ {
778
+ "name": "type",
779
+ "tags": [
780
+ {
781
+ "text": "8.0.0",
782
+ "name": "since"
783
+ }
784
+ ],
785
+ "docs": "Stable sensor type label, for example `pressure`, `ambientTemperature`, or `accelerometer`.",
786
+ "complexTypes": [],
787
+ "type": "string"
788
+ },
789
+ {
790
+ "name": "name",
791
+ "tags": [
792
+ {
793
+ "text": "8.0.0",
794
+ "name": "since"
795
+ }
796
+ ],
797
+ "docs": "Platform sensor name when available.",
798
+ "complexTypes": [],
799
+ "type": "string | undefined"
800
+ },
801
+ {
802
+ "name": "vendor",
803
+ "tags": [
804
+ {
805
+ "text": "8.0.0",
806
+ "name": "since"
807
+ }
808
+ ],
809
+ "docs": "Sensor vendor when available.",
810
+ "complexTypes": [],
811
+ "type": "string | undefined"
812
+ },
813
+ {
814
+ "name": "platformType",
815
+ "tags": [
816
+ {
817
+ "text": "8.0.0",
818
+ "name": "since"
819
+ }
820
+ ],
821
+ "docs": "Android sensor type id when available.",
822
+ "complexTypes": [],
823
+ "type": "number | undefined"
824
+ },
825
+ {
826
+ "name": "maximumRange",
827
+ "tags": [
828
+ {
829
+ "text": "8.0.0",
830
+ "name": "since"
831
+ }
832
+ ],
833
+ "docs": "Maximum sensor range when available.",
834
+ "complexTypes": [],
835
+ "type": "number | undefined"
836
+ },
837
+ {
838
+ "name": "resolution",
839
+ "tags": [
840
+ {
841
+ "text": "8.0.0",
842
+ "name": "since"
843
+ }
844
+ ],
845
+ "docs": "Sensor resolution when available.",
846
+ "complexTypes": [],
847
+ "type": "number | undefined"
848
+ },
849
+ {
850
+ "name": "powerMilliamp",
851
+ "tags": [
852
+ {
853
+ "text": "8.0.0",
854
+ "name": "since"
855
+ }
856
+ ],
857
+ "docs": "Sensor power draw in milliamps when available.",
858
+ "complexTypes": [],
859
+ "type": "number | undefined"
860
+ },
861
+ {
862
+ "name": "minDelayMicroseconds",
863
+ "tags": [
864
+ {
865
+ "text": "8.0.0",
866
+ "name": "since"
867
+ }
868
+ ],
869
+ "docs": "Minimum sensor delay in microseconds when available.",
870
+ "complexTypes": [],
871
+ "type": "number | undefined"
872
+ },
873
+ {
874
+ "name": "wakeUp",
875
+ "tags": [
876
+ {
877
+ "text": "8.0.0",
878
+ "name": "since"
879
+ }
880
+ ],
881
+ "docs": "Whether this is a wake-up sensor when available.",
882
+ "complexTypes": [],
883
+ "type": "boolean | undefined"
884
+ }
885
+ ]
886
+ },
887
+ {
888
+ "name": "OnboardSensorReading",
889
+ "slug": "onboardsensorreading",
890
+ "docs": "Instant onboard sensor reading.",
891
+ "tags": [
892
+ {
893
+ "text": "8.0.0",
894
+ "name": "since"
895
+ }
896
+ ],
897
+ "methods": [],
898
+ "properties": [
899
+ {
900
+ "name": "type",
901
+ "tags": [
902
+ {
903
+ "text": "8.0.0",
904
+ "name": "since"
905
+ }
906
+ ],
907
+ "docs": "Stable sensor type label.",
908
+ "complexTypes": [],
909
+ "type": "string"
910
+ },
911
+ {
912
+ "name": "unit",
913
+ "tags": [
914
+ {
915
+ "text": "8.0.0",
916
+ "name": "since"
917
+ }
918
+ ],
919
+ "docs": "Human-readable unit, for example `celsius`, `percent`, `hPa`, `lux`, or `cm`.",
920
+ "complexTypes": [],
921
+ "type": "string"
922
+ },
923
+ {
924
+ "name": "value",
925
+ "tags": [
926
+ {
927
+ "text": "8.0.0",
928
+ "name": "since"
929
+ }
930
+ ],
931
+ "docs": "Sensor value.",
932
+ "complexTypes": [],
933
+ "type": "number"
934
+ },
935
+ {
936
+ "name": "name",
937
+ "tags": [
938
+ {
939
+ "text": "8.0.0",
940
+ "name": "since"
941
+ }
942
+ ],
943
+ "docs": "Platform sensor name when available.",
944
+ "complexTypes": [],
945
+ "type": "string | undefined"
946
+ },
947
+ {
948
+ "name": "timestamp",
949
+ "tags": [
950
+ {
951
+ "text": "8.0.0",
952
+ "name": "since"
953
+ }
954
+ ],
955
+ "docs": "Reading timestamp as Unix epoch milliseconds.",
956
+ "complexTypes": [],
957
+ "type": "number | undefined"
958
+ }
959
+ ]
960
+ },
961
+ {
962
+ "name": "StartMonitoringResult",
963
+ "slug": "startmonitoringresult",
964
+ "docs": "Result returned when monitoring starts.",
965
+ "tags": [
966
+ {
967
+ "text": "8.0.0",
968
+ "name": "since"
969
+ }
970
+ ],
971
+ "methods": [],
972
+ "properties": [
973
+ {
974
+ "name": "monitoring",
975
+ "tags": [
976
+ {
977
+ "text": "8.0.0",
978
+ "name": "since"
979
+ }
980
+ ],
981
+ "docs": "Whether monitoring is active.",
982
+ "complexTypes": [],
983
+ "type": "boolean"
984
+ },
985
+ {
986
+ "name": "intervalMs",
987
+ "tags": [
988
+ {
989
+ "text": "8.0.0",
990
+ "name": "since"
991
+ }
992
+ ],
993
+ "docs": "Effective interval in milliseconds.",
994
+ "complexTypes": [],
995
+ "type": "number"
996
+ },
997
+ {
998
+ "name": "startedAt",
999
+ "tags": [
1000
+ {
1001
+ "text": "8.0.0",
1002
+ "name": "since"
1003
+ }
1004
+ ],
1005
+ "docs": "Monitoring start timestamp as Unix epoch milliseconds.",
1006
+ "complexTypes": [],
1007
+ "type": "number"
1008
+ }
1009
+ ]
1010
+ },
1011
+ {
1012
+ "name": "MonitoringOptions",
1013
+ "slug": "monitoringoptions",
1014
+ "docs": "Options used to start periodic device snapshots.",
1015
+ "tags": [
1016
+ {
1017
+ "text": "8.0.0",
1018
+ "name": "since"
1019
+ }
1020
+ ],
1021
+ "methods": [],
1022
+ "properties": [
1023
+ {
1024
+ "name": "intervalMs",
1025
+ "tags": [
1026
+ {
1027
+ "text": "8.0.0",
1028
+ "name": "since"
1029
+ }
1030
+ ],
1031
+ "docs": "Time between samples in milliseconds.\n\nValues below 250ms are clamped to 250ms to avoid excessive native work.\nDefaults to 1000ms.",
1032
+ "complexTypes": [],
1033
+ "type": "number | undefined"
1034
+ },
1035
+ {
1036
+ "name": "durationMs",
1037
+ "tags": [
1038
+ {
1039
+ "text": "8.0.0",
1040
+ "name": "since"
1041
+ }
1042
+ ],
1043
+ "docs": "Stop automatically after this duration in milliseconds.",
1044
+ "complexTypes": [],
1045
+ "type": "number | undefined"
1046
+ },
1047
+ {
1048
+ "name": "sampleCount",
1049
+ "tags": [
1050
+ {
1051
+ "text": "8.0.0",
1052
+ "name": "since"
1053
+ }
1054
+ ],
1055
+ "docs": "Stop automatically after this number of emitted samples.",
1056
+ "complexTypes": [],
1057
+ "type": "number | undefined"
1058
+ },
1059
+ {
1060
+ "name": "emitImmediately",
1061
+ "tags": [
1062
+ {
1063
+ "text": "8.0.0",
1064
+ "name": "since"
1065
+ }
1066
+ ],
1067
+ "docs": "Emit one sample immediately when monitoring starts.\n\nDefaults to `true`.",
1068
+ "complexTypes": [],
1069
+ "type": "boolean | undefined"
1070
+ }
1071
+ ]
1072
+ },
1073
+ {
1074
+ "name": "StopMonitoringResult",
1075
+ "slug": "stopmonitoringresult",
1076
+ "docs": "Result returned by {@link DeviceInfoPlugin.stopMonitoring}.",
1077
+ "tags": [
1078
+ {
1079
+ "text": "8.0.0",
1080
+ "name": "since"
1081
+ }
1082
+ ],
1083
+ "methods": [],
1084
+ "properties": [
1085
+ {
1086
+ "name": "monitoring",
1087
+ "tags": [
1088
+ {
1089
+ "text": "8.0.0",
1090
+ "name": "since"
1091
+ }
1092
+ ],
1093
+ "docs": "Whether monitoring remains active after the stop request.",
1094
+ "complexTypes": [],
1095
+ "type": "boolean"
1096
+ }
1097
+ ]
1098
+ },
1099
+ {
1100
+ "name": "MonitoringState",
1101
+ "slug": "monitoringstate",
1102
+ "docs": "Current monitoring state.",
1103
+ "tags": [
1104
+ {
1105
+ "text": "8.0.0",
1106
+ "name": "since"
1107
+ }
1108
+ ],
1109
+ "methods": [],
1110
+ "properties": [
1111
+ {
1112
+ "name": "monitoring",
1113
+ "tags": [
1114
+ {
1115
+ "text": "8.0.0",
1116
+ "name": "since"
1117
+ }
1118
+ ],
1119
+ "docs": "Whether monitoring is active.",
1120
+ "complexTypes": [],
1121
+ "type": "boolean"
1122
+ },
1123
+ {
1124
+ "name": "intervalMs",
1125
+ "tags": [
1126
+ {
1127
+ "text": "8.0.0",
1128
+ "name": "since"
1129
+ }
1130
+ ],
1131
+ "docs": "Effective interval in milliseconds when monitoring is active.",
1132
+ "complexTypes": [],
1133
+ "type": "number | undefined"
1134
+ },
1135
+ {
1136
+ "name": "startedAt",
1137
+ "tags": [
1138
+ {
1139
+ "text": "8.0.0",
1140
+ "name": "since"
1141
+ }
1142
+ ],
1143
+ "docs": "Monitoring start timestamp as Unix epoch milliseconds.",
1144
+ "complexTypes": [],
1145
+ "type": "number | undefined"
1146
+ },
1147
+ {
1148
+ "name": "samplesEmitted",
1149
+ "tags": [
1150
+ {
1151
+ "text": "8.0.0",
1152
+ "name": "since"
1153
+ }
1154
+ ],
1155
+ "docs": "Number of samples emitted by the active monitoring session.",
1156
+ "complexTypes": [],
1157
+ "type": "number | undefined"
1158
+ }
1159
+ ]
1160
+ },
1161
+ {
1162
+ "name": "PluginListenerHandle",
1163
+ "slug": "pluginlistenerhandle",
1164
+ "docs": "",
1165
+ "tags": [],
1166
+ "methods": [],
1167
+ "properties": [
1168
+ {
1169
+ "name": "remove",
1170
+ "tags": [],
1171
+ "docs": "",
1172
+ "complexTypes": [],
1173
+ "type": "() => Promise<void>"
1174
+ }
1175
+ ]
1176
+ },
1177
+ {
1178
+ "name": "DeviceInfoUpdate",
1179
+ "slug": "deviceinfoupdate",
1180
+ "docs": "Periodic event payload emitted while monitoring is active.",
1181
+ "tags": [
1182
+ {
1183
+ "text": "8.0.0",
1184
+ "name": "since"
1185
+ }
1186
+ ],
1187
+ "methods": [],
1188
+ "properties": [
1189
+ {
1190
+ "name": "sequence",
1191
+ "tags": [
1192
+ {
1193
+ "text": "8.0.0",
1194
+ "name": "since"
1195
+ }
1196
+ ],
1197
+ "docs": "One-based sample sequence for the active monitoring session.",
1198
+ "complexTypes": [],
1199
+ "type": "number"
1200
+ },
1201
+ {
1202
+ "name": "startedAt",
1203
+ "tags": [
1204
+ {
1205
+ "text": "8.0.0",
1206
+ "name": "since"
1207
+ }
1208
+ ],
1209
+ "docs": "Monitoring start timestamp as Unix epoch milliseconds.",
1210
+ "complexTypes": [],
1211
+ "type": "number"
1212
+ },
1213
+ {
1214
+ "name": "elapsedMs",
1215
+ "tags": [
1216
+ {
1217
+ "text": "8.0.0",
1218
+ "name": "since"
1219
+ }
1220
+ ],
1221
+ "docs": "Elapsed milliseconds since monitoring started.",
1222
+ "complexTypes": [],
1223
+ "type": "number"
1224
+ }
1225
+ ]
1226
+ },
1227
+ {
1228
+ "name": "PluginVersionResult",
1229
+ "slug": "pluginversionresult",
1230
+ "docs": "Plugin version payload.",
1231
+ "tags": [
1232
+ {
1233
+ "text": "8.0.0",
1234
+ "name": "since"
1235
+ }
1236
+ ],
1237
+ "methods": [],
1238
+ "properties": [
1239
+ {
1240
+ "name": "version",
1241
+ "tags": [
1242
+ {
1243
+ "text": "8.0.0",
1244
+ "name": "since"
1245
+ }
1246
+ ],
1247
+ "docs": "Version identifier returned by the platform implementation.",
1248
+ "complexTypes": [],
1249
+ "type": "string"
1250
+ }
1251
+ ]
1252
+ }
1253
+ ],
1254
+ "enums": [],
1255
+ "typeAliases": [
1256
+ {
1257
+ "name": "ThermalState",
1258
+ "slug": "thermalstate",
1259
+ "docs": "Thermal state reported by the platform.",
1260
+ "types": [
1261
+ {
1262
+ "text": "'nominal'",
1263
+ "complexTypes": []
1264
+ },
1265
+ {
1266
+ "text": "'fair'",
1267
+ "complexTypes": []
1268
+ },
1269
+ {
1270
+ "text": "'serious'",
1271
+ "complexTypes": []
1272
+ },
1273
+ {
1274
+ "text": "'critical'",
1275
+ "complexTypes": []
1276
+ },
1277
+ {
1278
+ "text": "'unknown'",
1279
+ "complexTypes": []
1280
+ }
1281
+ ]
1282
+ }
1283
+ ],
1284
+ "pluginConfigs": []
1285
+ }