@capgo/camera-preview 7.4.0-beta.8 → 7.4.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 +243 -51
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraPreview.java +1249 -143
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraXView.java +3400 -1382
- package/android/src/main/java/com/ahm/capacitor/camera/preview/GridOverlayView.java +95 -58
- package/android/src/main/java/com/ahm/capacitor/camera/preview/model/CameraDevice.java +55 -46
- package/android/src/main/java/com/ahm/capacitor/camera/preview/model/CameraLens.java +61 -52
- package/android/src/main/java/com/ahm/capacitor/camera/preview/model/CameraSessionConfiguration.java +160 -72
- package/android/src/main/java/com/ahm/capacitor/camera/preview/model/LensInfo.java +29 -23
- package/android/src/main/java/com/ahm/capacitor/camera/preview/model/ZoomFactors.java +24 -23
- package/dist/docs.json +441 -40
- package/dist/esm/definitions.d.ts +167 -25
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +24 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/web.d.ts +23 -3
- package/dist/esm/web.js +463 -65
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +485 -64
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +485 -64
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/{CapgoCameraPreview → CapgoCameraPreviewPlugin}/CameraController.swift +731 -315
- package/ios/Sources/CapgoCameraPreviewPlugin/Plugin.swift +1902 -0
- package/package.json +11 -3
- package/android/.gradle/8.14.2/checksums/checksums.lock +0 -0
- package/android/.gradle/8.14.2/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.14.2/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.14.2/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/8.14.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.14.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.14.2/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/8.14.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.14.2/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/8.14.2/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/file-system.probe +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/ios/Sources/CapgoCameraPreview/Plugin.swift +0 -1211
- /package/ios/Sources/{CapgoCameraPreview → CapgoCameraPreviewPlugin}/GridOverlayView.swift +0 -0
package/dist/docs.json
CHANGED
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
"name": "setAspectRatio",
|
|
144
|
-
"signature": "(options: { aspectRatio:
|
|
144
|
+
"signature": "(options: { aspectRatio: \"4:3\" | \"16:9\"; x?: number; y?: number; }) => Promise<{ width: number; height: number; x: number; y: number; }>",
|
|
145
145
|
"parameters": [
|
|
146
146
|
{
|
|
147
147
|
"name": "options",
|
|
@@ -161,7 +161,11 @@
|
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
"name": "since",
|
|
164
|
-
"text": "7.
|
|
164
|
+
"text": "7.5.0"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "platform",
|
|
168
|
+
"text": "android, ios"
|
|
165
169
|
}
|
|
166
170
|
],
|
|
167
171
|
"docs": "Set the aspect ratio of the camera preview.",
|
|
@@ -170,7 +174,7 @@
|
|
|
170
174
|
},
|
|
171
175
|
{
|
|
172
176
|
"name": "getAspectRatio",
|
|
173
|
-
"signature": "() => Promise<{ aspectRatio:
|
|
177
|
+
"signature": "() => Promise<{ aspectRatio: \"4:3\" | \"16:9\"; }>",
|
|
174
178
|
"parameters": [],
|
|
175
179
|
"returns": "Promise<{ aspectRatio: '4:3' | '16:9'; }>",
|
|
176
180
|
"tags": [
|
|
@@ -180,7 +184,11 @@
|
|
|
180
184
|
},
|
|
181
185
|
{
|
|
182
186
|
"name": "since",
|
|
183
|
-
"text": "7.
|
|
187
|
+
"text": "7.5.0"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "platform",
|
|
191
|
+
"text": "android, ios"
|
|
184
192
|
}
|
|
185
193
|
],
|
|
186
194
|
"docs": "Gets the current aspect ratio of the camera preview.",
|
|
@@ -422,7 +430,11 @@
|
|
|
422
430
|
},
|
|
423
431
|
{
|
|
424
432
|
"name": "since",
|
|
425
|
-
"text": "7.
|
|
433
|
+
"text": "7.5.0"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"name": "platform",
|
|
437
|
+
"text": "android, ios"
|
|
426
438
|
}
|
|
427
439
|
],
|
|
428
440
|
"docs": "Checks if the camera preview is currently running.",
|
|
@@ -441,7 +453,11 @@
|
|
|
441
453
|
},
|
|
442
454
|
{
|
|
443
455
|
"name": "since",
|
|
444
|
-
"text": "7.
|
|
456
|
+
"text": "7.5.0"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"name": "platform",
|
|
460
|
+
"text": "android, ios"
|
|
445
461
|
}
|
|
446
462
|
],
|
|
447
463
|
"docs": "Gets all available camera devices.",
|
|
@@ -462,7 +478,11 @@
|
|
|
462
478
|
},
|
|
463
479
|
{
|
|
464
480
|
"name": "since",
|
|
465
|
-
"text": "7.
|
|
481
|
+
"text": "7.5.0"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"name": "platform",
|
|
485
|
+
"text": "android, ios"
|
|
466
486
|
}
|
|
467
487
|
],
|
|
468
488
|
"docs": "Gets the current zoom state, including min/max and current lens info.",
|
|
@@ -471,21 +491,40 @@
|
|
|
471
491
|
],
|
|
472
492
|
"slug": "getzoom"
|
|
473
493
|
},
|
|
494
|
+
{
|
|
495
|
+
"name": "getZoomButtonValues",
|
|
496
|
+
"signature": "() => Promise<{ values: number[]; }>",
|
|
497
|
+
"parameters": [],
|
|
498
|
+
"returns": "Promise<{ values: number[]; }>",
|
|
499
|
+
"tags": [
|
|
500
|
+
{
|
|
501
|
+
"name": "since",
|
|
502
|
+
"text": "7.5.0"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"name": "platform",
|
|
506
|
+
"text": "android, ios"
|
|
507
|
+
}
|
|
508
|
+
],
|
|
509
|
+
"docs": "Returns zoom button values for quick switching.\n- iOS/Android: includes 0.5 if ultra-wide available; 1 and 2 if wide available; 3 if telephoto available\n- Web: unsupported",
|
|
510
|
+
"complexTypes": [],
|
|
511
|
+
"slug": "getzoombuttonvalues"
|
|
512
|
+
},
|
|
474
513
|
{
|
|
475
514
|
"name": "setZoom",
|
|
476
|
-
"signature": "(options: { level: number; ramp?: boolean; }) => Promise<void>",
|
|
515
|
+
"signature": "(options: { level: number; ramp?: boolean; autoFocus?: boolean; }) => Promise<void>",
|
|
477
516
|
"parameters": [
|
|
478
517
|
{
|
|
479
518
|
"name": "options",
|
|
480
|
-
"docs": "- The desired zoom level. `ramp` is currently unused.",
|
|
481
|
-
"type": "{ level: number; ramp?: boolean | undefined; }"
|
|
519
|
+
"docs": "- The desired zoom level. `ramp` is currently unused. `autoFocus` defaults to true.",
|
|
520
|
+
"type": "{ level: number; ramp?: boolean | undefined; autoFocus?: boolean | undefined; }"
|
|
482
521
|
}
|
|
483
522
|
],
|
|
484
523
|
"returns": "Promise<void>",
|
|
485
524
|
"tags": [
|
|
486
525
|
{
|
|
487
526
|
"name": "param",
|
|
488
|
-
"text": "options - The desired zoom level. `ramp` is currently unused."
|
|
527
|
+
"text": "options - The desired zoom level. `ramp` is currently unused. `autoFocus` defaults to true."
|
|
489
528
|
},
|
|
490
529
|
{
|
|
491
530
|
"name": "returns",
|
|
@@ -493,10 +532,14 @@
|
|
|
493
532
|
},
|
|
494
533
|
{
|
|
495
534
|
"name": "since",
|
|
496
|
-
"text": "7.
|
|
535
|
+
"text": "7.5.0"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"name": "platform",
|
|
539
|
+
"text": "android, ios"
|
|
497
540
|
}
|
|
498
541
|
],
|
|
499
|
-
"docs": "Sets the
|
|
542
|
+
"docs": "Sets the zoom level of the camera.",
|
|
500
543
|
"complexTypes": [],
|
|
501
544
|
"slug": "setzoom"
|
|
502
545
|
},
|
|
@@ -512,7 +555,11 @@
|
|
|
512
555
|
},
|
|
513
556
|
{
|
|
514
557
|
"name": "since",
|
|
515
|
-
"text": "7.
|
|
558
|
+
"text": "7.5.0"
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"name": "platform",
|
|
562
|
+
"text": "android, ios"
|
|
516
563
|
}
|
|
517
564
|
],
|
|
518
565
|
"docs": "Gets the current flash mode.",
|
|
@@ -529,7 +576,11 @@
|
|
|
529
576
|
"tags": [
|
|
530
577
|
{
|
|
531
578
|
"name": "since",
|
|
532
|
-
"text": "7.
|
|
579
|
+
"text": "7.5.0"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"name": "platform",
|
|
583
|
+
"text": "android, ios"
|
|
533
584
|
}
|
|
534
585
|
],
|
|
535
586
|
"docs": "Removes all registered listeners.",
|
|
@@ -558,7 +609,11 @@
|
|
|
558
609
|
},
|
|
559
610
|
{
|
|
560
611
|
"name": "since",
|
|
561
|
-
"text": "7.
|
|
612
|
+
"text": "7.5.0"
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"name": "platform",
|
|
616
|
+
"text": "android, ios"
|
|
562
617
|
}
|
|
563
618
|
],
|
|
564
619
|
"docs": "Switches the active camera to the one with the specified `deviceId`.",
|
|
@@ -577,7 +632,11 @@
|
|
|
577
632
|
},
|
|
578
633
|
{
|
|
579
634
|
"name": "since",
|
|
580
|
-
"text": "7.
|
|
635
|
+
"text": "7.5.0"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"name": "platform",
|
|
639
|
+
"text": "android, ios"
|
|
581
640
|
}
|
|
582
641
|
],
|
|
583
642
|
"docs": "Gets the ID of the currently active camera device.",
|
|
@@ -592,6 +651,14 @@
|
|
|
592
651
|
"tags": [
|
|
593
652
|
{
|
|
594
653
|
"name": "returns"
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"name": "since",
|
|
657
|
+
"text": "7.5.0"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"name": "platform",
|
|
661
|
+
"text": "android, ios"
|
|
595
662
|
}
|
|
596
663
|
],
|
|
597
664
|
"docs": "Gets the current preview size and position.",
|
|
@@ -600,12 +667,12 @@
|
|
|
600
667
|
},
|
|
601
668
|
{
|
|
602
669
|
"name": "setPreviewSize",
|
|
603
|
-
"signature": "(options: { x
|
|
670
|
+
"signature": "(options: { x?: number; y?: number; width: number; height: number; }) => Promise<{ width: number; height: number; x: number; y: number; }>",
|
|
604
671
|
"parameters": [
|
|
605
672
|
{
|
|
606
673
|
"name": "options",
|
|
607
674
|
"docs": "The new position and dimensions.",
|
|
608
|
-
"type": "{ x
|
|
675
|
+
"type": "{ x?: number | undefined; y?: number | undefined; width: number; height: number; }"
|
|
609
676
|
}
|
|
610
677
|
],
|
|
611
678
|
"returns": "Promise<{ width: number; height: number; x: number; y: number; }>",
|
|
@@ -617,11 +684,204 @@
|
|
|
617
684
|
{
|
|
618
685
|
"name": "returns",
|
|
619
686
|
"text": "A promise that resolves with the actual preview dimensions and position."
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
"name": "since",
|
|
690
|
+
"text": "7.5.0"
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"name": "platform",
|
|
694
|
+
"text": "android, ios"
|
|
620
695
|
}
|
|
621
696
|
],
|
|
622
697
|
"docs": "Sets the preview size and position.",
|
|
623
698
|
"complexTypes": [],
|
|
624
699
|
"slug": "setpreviewsize"
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
"name": "setFocus",
|
|
703
|
+
"signature": "(options: { x: number; y: number; }) => Promise<void>",
|
|
704
|
+
"parameters": [
|
|
705
|
+
{
|
|
706
|
+
"name": "options",
|
|
707
|
+
"docs": "- The focus options.",
|
|
708
|
+
"type": "{ x: number; y: number; }"
|
|
709
|
+
}
|
|
710
|
+
],
|
|
711
|
+
"returns": "Promise<void>",
|
|
712
|
+
"tags": [
|
|
713
|
+
{
|
|
714
|
+
"name": "param",
|
|
715
|
+
"text": "options - The focus options."
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"name": "returns",
|
|
719
|
+
"text": "A promise that resolves when the focus is set."
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"name": "since",
|
|
723
|
+
"text": "7.5.0"
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"name": "platform",
|
|
727
|
+
"text": "android, ios"
|
|
728
|
+
}
|
|
729
|
+
],
|
|
730
|
+
"docs": "Sets the camera focus to a specific point in the preview.",
|
|
731
|
+
"complexTypes": [],
|
|
732
|
+
"slug": "setfocus"
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"name": "addListener",
|
|
736
|
+
"signature": "(eventName: \"screenResize\", listenerFunc: (data: { width: number; height: number; x: number; y: number; }) => void) => Promise<PluginListenerHandle>",
|
|
737
|
+
"parameters": [
|
|
738
|
+
{
|
|
739
|
+
"name": "eventName",
|
|
740
|
+
"docs": "- The event name to listen for.",
|
|
741
|
+
"type": "'screenResize'"
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"name": "listenerFunc",
|
|
745
|
+
"docs": "- The function to call when the event is triggered.",
|
|
746
|
+
"type": "(data: { width: number; height: number; x: number; y: number; }) => void"
|
|
747
|
+
}
|
|
748
|
+
],
|
|
749
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
750
|
+
"tags": [
|
|
751
|
+
{
|
|
752
|
+
"name": "param",
|
|
753
|
+
"text": "eventName - The event name to listen for."
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
"name": "param",
|
|
757
|
+
"text": "listenerFunc - The function to call when the event is triggered."
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
"name": "returns",
|
|
761
|
+
"text": "A promise that resolves with a handle to the listener."
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"name": "since",
|
|
765
|
+
"text": "7.5.0"
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"name": "platform",
|
|
769
|
+
"text": "android, ios"
|
|
770
|
+
}
|
|
771
|
+
],
|
|
772
|
+
"docs": "Adds a listener for screen resize events.",
|
|
773
|
+
"complexTypes": [
|
|
774
|
+
"PluginListenerHandle"
|
|
775
|
+
],
|
|
776
|
+
"slug": "addlistenerscreenresize-"
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"name": "addListener",
|
|
780
|
+
"signature": "(eventName: \"orientationChange\", listenerFunc: (data: { orientation: DeviceOrientation; }) => void) => Promise<PluginListenerHandle>",
|
|
781
|
+
"parameters": [
|
|
782
|
+
{
|
|
783
|
+
"name": "eventName",
|
|
784
|
+
"docs": "- The event name to listen for.",
|
|
785
|
+
"type": "'orientationChange'"
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
"name": "listenerFunc",
|
|
789
|
+
"docs": "- The function to call when the event is triggered.",
|
|
790
|
+
"type": "(data: { orientation: DeviceOrientation; }) => void"
|
|
791
|
+
}
|
|
792
|
+
],
|
|
793
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
794
|
+
"tags": [
|
|
795
|
+
{
|
|
796
|
+
"name": "param",
|
|
797
|
+
"text": "eventName - The event name to listen for."
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"name": "param",
|
|
801
|
+
"text": "listenerFunc - The function to call when the event is triggered."
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
"name": "returns",
|
|
805
|
+
"text": "A promise that resolves with a handle to the listener."
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
"name": "since",
|
|
809
|
+
"text": "7.5.0"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"name": "platform",
|
|
813
|
+
"text": "android, ios"
|
|
814
|
+
}
|
|
815
|
+
],
|
|
816
|
+
"docs": "Adds a listener for orientation change events.",
|
|
817
|
+
"complexTypes": [
|
|
818
|
+
"PluginListenerHandle",
|
|
819
|
+
"DeviceOrientation"
|
|
820
|
+
],
|
|
821
|
+
"slug": "addlistenerorientationchange-"
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"name": "deleteFile",
|
|
825
|
+
"signature": "(options: { path: string; }) => Promise<{ success: boolean; }>",
|
|
826
|
+
"parameters": [
|
|
827
|
+
{
|
|
828
|
+
"name": "options",
|
|
829
|
+
"docs": "",
|
|
830
|
+
"type": "{ path: string; }"
|
|
831
|
+
}
|
|
832
|
+
],
|
|
833
|
+
"returns": "Promise<{ success: boolean; }>",
|
|
834
|
+
"tags": [
|
|
835
|
+
{
|
|
836
|
+
"name": "since",
|
|
837
|
+
"text": "7.5.0"
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
"name": "platform",
|
|
841
|
+
"text": "android, ios"
|
|
842
|
+
}
|
|
843
|
+
],
|
|
844
|
+
"docs": "Deletes a file at the given absolute path on the device.\nUse this to quickly clean up temporary images created with `storeToFile`.\nOn web, this is not supported and will throw.",
|
|
845
|
+
"complexTypes": [],
|
|
846
|
+
"slug": "deletefile"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"name": "getSafeAreaInsets",
|
|
850
|
+
"signature": "() => Promise<SafeAreaInsets>",
|
|
851
|
+
"parameters": [],
|
|
852
|
+
"returns": "Promise<SafeAreaInsets>",
|
|
853
|
+
"tags": [
|
|
854
|
+
{
|
|
855
|
+
"name": "platform",
|
|
856
|
+
"text": "android, ios"
|
|
857
|
+
}
|
|
858
|
+
],
|
|
859
|
+
"docs": "Gets the safe area insets for devices.\nReturns the orientation-aware notch/camera cutout inset and the current orientation.\nIn portrait mode: returns top inset (notch at top).\nIn landscape mode: returns left inset (notch moved to side).\nThis specifically targets the cutout area (notch, punch hole, etc.) that all modern phones have.\n\nAndroid: Values returned in dp (logical pixels).\niOS: Values returned in physical pixels, excluding status bar (only pure notch/cutout size).",
|
|
860
|
+
"complexTypes": [
|
|
861
|
+
"SafeAreaInsets"
|
|
862
|
+
],
|
|
863
|
+
"slug": "getsafeareainsets"
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"name": "getOrientation",
|
|
867
|
+
"signature": "() => Promise<{ orientation: DeviceOrientation; }>",
|
|
868
|
+
"parameters": [],
|
|
869
|
+
"returns": "Promise<{ orientation: DeviceOrientation; }>",
|
|
870
|
+
"tags": [
|
|
871
|
+
{
|
|
872
|
+
"name": "since",
|
|
873
|
+
"text": "7.5.0"
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"name": "platform",
|
|
877
|
+
"text": "android, ios"
|
|
878
|
+
}
|
|
879
|
+
],
|
|
880
|
+
"docs": "Gets the current device orientation in a cross-platform format.",
|
|
881
|
+
"complexTypes": [
|
|
882
|
+
"DeviceOrientation"
|
|
883
|
+
],
|
|
884
|
+
"slug": "getorientation"
|
|
625
885
|
}
|
|
626
886
|
],
|
|
627
887
|
"properties": []
|
|
@@ -716,7 +976,7 @@
|
|
|
716
976
|
],
|
|
717
977
|
"docs": "The aspect ratio of the camera preview, '4:3' or '16:9' or 'fill'.\nCannot be set if width or height is provided, otherwise the call will be rejected.\nUse setPreviewSize to adjust size after starting.",
|
|
718
978
|
"complexTypes": [],
|
|
719
|
-
"type": "'4:3' | '16:9' |
|
|
979
|
+
"type": "'4:3' | '16:9' | undefined"
|
|
720
980
|
},
|
|
721
981
|
{
|
|
722
982
|
"name": "gridMode",
|
|
@@ -838,22 +1098,6 @@
|
|
|
838
1098
|
"complexTypes": [],
|
|
839
1099
|
"type": "boolean | undefined"
|
|
840
1100
|
},
|
|
841
|
-
{
|
|
842
|
-
"name": "enableHighResolution",
|
|
843
|
-
"tags": [
|
|
844
|
-
{
|
|
845
|
-
"text": "ios",
|
|
846
|
-
"name": "platform"
|
|
847
|
-
},
|
|
848
|
-
{
|
|
849
|
-
"text": "false",
|
|
850
|
-
"name": "default"
|
|
851
|
-
}
|
|
852
|
-
],
|
|
853
|
-
"docs": "If true, enables high-resolution image capture.",
|
|
854
|
-
"complexTypes": [],
|
|
855
|
-
"type": "boolean | undefined"
|
|
856
|
-
},
|
|
857
1101
|
{
|
|
858
1102
|
"name": "disableAudio",
|
|
859
1103
|
"tags": [
|
|
@@ -941,6 +1185,48 @@
|
|
|
941
1185
|
"docs": "The `deviceId` of the camera to use. If provided, `position` is ignored.",
|
|
942
1186
|
"complexTypes": [],
|
|
943
1187
|
"type": "string | undefined"
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
"name": "initialZoomLevel",
|
|
1191
|
+
"tags": [
|
|
1192
|
+
{
|
|
1193
|
+
"text": "1.0",
|
|
1194
|
+
"name": "default"
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
"text": "android, ios",
|
|
1198
|
+
"name": "platform"
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
"text": "2.2.0",
|
|
1202
|
+
"name": "since"
|
|
1203
|
+
}
|
|
1204
|
+
],
|
|
1205
|
+
"docs": "The initial zoom level when starting the camera preview.\nIf the requested zoom level is not available, the native plugin will reject.",
|
|
1206
|
+
"complexTypes": [],
|
|
1207
|
+
"type": "number | undefined"
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
"name": "positioning",
|
|
1211
|
+
"tags": [
|
|
1212
|
+
{
|
|
1213
|
+
"text": "\"center\"",
|
|
1214
|
+
"name": "default"
|
|
1215
|
+
},
|
|
1216
|
+
{
|
|
1217
|
+
"text": "android, ios, web",
|
|
1218
|
+
"name": "platform"
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
"text": "2.3.0",
|
|
1222
|
+
"name": "since"
|
|
1223
|
+
}
|
|
1224
|
+
],
|
|
1225
|
+
"docs": "The vertical positioning of the camera preview.",
|
|
1226
|
+
"complexTypes": [
|
|
1227
|
+
"CameraPositioning"
|
|
1228
|
+
],
|
|
1229
|
+
"type": "CameraPositioning"
|
|
944
1230
|
}
|
|
945
1231
|
]
|
|
946
1232
|
},
|
|
@@ -961,18 +1247,44 @@
|
|
|
961
1247
|
"properties": [
|
|
962
1248
|
{
|
|
963
1249
|
"name": "height",
|
|
964
|
-
"tags": [
|
|
965
|
-
|
|
1250
|
+
"tags": [
|
|
1251
|
+
{
|
|
1252
|
+
"text": ",\nThe desired height of the picture in pixels.\nIf not specified and no aspectRatio is provided, the captured image will match the preview's visible area.",
|
|
1253
|
+
"name": "deprecated"
|
|
1254
|
+
}
|
|
1255
|
+
],
|
|
1256
|
+
"docs": "",
|
|
966
1257
|
"complexTypes": [],
|
|
967
1258
|
"type": "number | undefined"
|
|
968
1259
|
},
|
|
969
1260
|
{
|
|
970
1261
|
"name": "width",
|
|
971
|
-
"tags": [
|
|
972
|
-
|
|
1262
|
+
"tags": [
|
|
1263
|
+
{
|
|
1264
|
+
"text": ",\nThe desired width of the picture in pixels.\nIf not specified and no aspectRatio is provided, the captured image will match the preview's visible area.",
|
|
1265
|
+
"name": "deprecated"
|
|
1266
|
+
}
|
|
1267
|
+
],
|
|
1268
|
+
"docs": "",
|
|
973
1269
|
"complexTypes": [],
|
|
974
1270
|
"type": "number | undefined"
|
|
975
1271
|
},
|
|
1272
|
+
{
|
|
1273
|
+
"name": "aspectRatio",
|
|
1274
|
+
"tags": [
|
|
1275
|
+
{
|
|
1276
|
+
"text": ",\nThe desired aspect ratio of the captured image (e.g., '4:3', '16:9').\nIf not specified and no width/height is provided, the aspect ratio from the camera start will be used.\nIf no aspect ratio was set at start, defaults to '4:3'.\nCannot be used together with width or height - the capture will be rejected with an error.",
|
|
1277
|
+
"name": "deprecated"
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
"text": "7.7.0",
|
|
1281
|
+
"name": "since"
|
|
1282
|
+
}
|
|
1283
|
+
],
|
|
1284
|
+
"docs": "",
|
|
1285
|
+
"complexTypes": [],
|
|
1286
|
+
"type": "string | undefined"
|
|
1287
|
+
},
|
|
976
1288
|
{
|
|
977
1289
|
"name": "quality",
|
|
978
1290
|
"tags": [
|
|
@@ -1276,6 +1588,45 @@
|
|
|
1276
1588
|
"type": "number"
|
|
1277
1589
|
}
|
|
1278
1590
|
]
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
"name": "PluginListenerHandle",
|
|
1594
|
+
"slug": "pluginlistenerhandle",
|
|
1595
|
+
"docs": "",
|
|
1596
|
+
"tags": [],
|
|
1597
|
+
"methods": [],
|
|
1598
|
+
"properties": [
|
|
1599
|
+
{
|
|
1600
|
+
"name": "remove",
|
|
1601
|
+
"tags": [],
|
|
1602
|
+
"docs": "",
|
|
1603
|
+
"complexTypes": [],
|
|
1604
|
+
"type": "() => Promise<void>"
|
|
1605
|
+
}
|
|
1606
|
+
]
|
|
1607
|
+
},
|
|
1608
|
+
{
|
|
1609
|
+
"name": "SafeAreaInsets",
|
|
1610
|
+
"slug": "safeareainsets",
|
|
1611
|
+
"docs": "Represents safe area insets for devices.\nAndroid: Values are expressed in logical pixels (dp) to match JS layout units.\niOS: Values are expressed in physical pixels and exclude status bar.",
|
|
1612
|
+
"tags": [],
|
|
1613
|
+
"methods": [],
|
|
1614
|
+
"properties": [
|
|
1615
|
+
{
|
|
1616
|
+
"name": "orientation",
|
|
1617
|
+
"tags": [],
|
|
1618
|
+
"docs": "Current device orientation (1 = portrait, 2 = landscape, 0 = unknown).",
|
|
1619
|
+
"complexTypes": [],
|
|
1620
|
+
"type": "number"
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
"name": "top",
|
|
1624
|
+
"tags": [],
|
|
1625
|
+
"docs": "Orientation-aware notch/camera cutout inset (excluding status bar).\nIn portrait mode: returns top inset (notch at top).\nIn landscape mode: returns left inset (notch at side).\nAndroid: Value in dp, iOS: Value in pixels (status bar excluded).",
|
|
1626
|
+
"complexTypes": [],
|
|
1627
|
+
"type": "number"
|
|
1628
|
+
}
|
|
1629
|
+
]
|
|
1279
1630
|
}
|
|
1280
1631
|
],
|
|
1281
1632
|
"enums": [
|
|
@@ -1363,6 +1714,25 @@
|
|
|
1363
1714
|
}
|
|
1364
1715
|
]
|
|
1365
1716
|
},
|
|
1717
|
+
{
|
|
1718
|
+
"name": "CameraPositioning",
|
|
1719
|
+
"slug": "camerapositioning",
|
|
1720
|
+
"docs": "",
|
|
1721
|
+
"types": [
|
|
1722
|
+
{
|
|
1723
|
+
"text": "\"center\"",
|
|
1724
|
+
"complexTypes": []
|
|
1725
|
+
},
|
|
1726
|
+
{
|
|
1727
|
+
"text": "\"top\"",
|
|
1728
|
+
"complexTypes": []
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
"text": "\"bottom\"",
|
|
1732
|
+
"complexTypes": []
|
|
1733
|
+
}
|
|
1734
|
+
]
|
|
1735
|
+
},
|
|
1366
1736
|
{
|
|
1367
1737
|
"name": "PictureFormat",
|
|
1368
1738
|
"slug": "pictureformat",
|
|
@@ -1413,6 +1783,37 @@
|
|
|
1413
1783
|
]
|
|
1414
1784
|
}
|
|
1415
1785
|
]
|
|
1786
|
+
},
|
|
1787
|
+
{
|
|
1788
|
+
"name": "DeviceOrientation",
|
|
1789
|
+
"slug": "deviceorientation",
|
|
1790
|
+
"docs": "Canonical device orientation values across platforms.",
|
|
1791
|
+
"types": [
|
|
1792
|
+
{
|
|
1793
|
+
"text": "\"portrait\"",
|
|
1794
|
+
"complexTypes": []
|
|
1795
|
+
},
|
|
1796
|
+
{
|
|
1797
|
+
"text": "\"landscape\"",
|
|
1798
|
+
"complexTypes": []
|
|
1799
|
+
},
|
|
1800
|
+
{
|
|
1801
|
+
"text": "\"landscape-left\"",
|
|
1802
|
+
"complexTypes": []
|
|
1803
|
+
},
|
|
1804
|
+
{
|
|
1805
|
+
"text": "\"landscape-right\"",
|
|
1806
|
+
"complexTypes": []
|
|
1807
|
+
},
|
|
1808
|
+
{
|
|
1809
|
+
"text": "\"portrait-upside-down\"",
|
|
1810
|
+
"complexTypes": []
|
|
1811
|
+
},
|
|
1812
|
+
{
|
|
1813
|
+
"text": "\"unknown\"",
|
|
1814
|
+
"complexTypes": []
|
|
1815
|
+
}
|
|
1816
|
+
]
|
|
1416
1817
|
}
|
|
1417
1818
|
],
|
|
1418
1819
|
"pluginConfigs": []
|