1
+ /// <reference path="android-declarations.d.ts"/>
2
+
1
3
declare module io {
2
4
export module github {
3
5
export module triniwiz {
@@ -88,6 +90,7 @@ declare module io {
88
90
public setPictureSize ( param0 : string ) : void ;
89
91
public getPosition ( ) : io . github . triniwiz . fancycamera . CameraPosition ;
90
92
public getFlashMode ( ) : io . github . triniwiz . fancycamera . CameraFlashMode ;
93
+ public setZoomRatio ( param0 : number ) : void ;
91
94
public getMaxVideoBitrate ( ) : number ;
92
95
public setFlashMode ( param0 : io . github . triniwiz . fancycamera . CameraFlashMode ) : void ;
93
96
public getCamera ( ) : globalAndroid . hardware . Camera ;
@@ -100,8 +103,10 @@ declare module io {
100
103
public getAvailablePictureSizes ( param0 : string ) : androidNative . Array < io . github . triniwiz . fancycamera . Size > ;
101
104
public setAutoFocus ( param0 : boolean ) : void ;
102
105
public setDisplayRatio ( param0 : string ) : void ;
106
+ public getEnableTapToFocus ( ) : boolean ;
103
107
public getEnablePinchZoom ( ) : boolean ;
104
108
public toggleCamera ( ) : void ;
109
+ public setEnableTapToFocus ( param0 : boolean ) : void ;
105
110
public constructor ( param0 : globalAndroid . content . Context , param1 : globalAndroid . util . AttributeSet , param2 : number ) ;
106
111
public stopRecording ( ) : void ;
107
112
public getPause ( ) : boolean ;
@@ -110,6 +115,7 @@ declare module io {
110
115
public setDetectorType ( param0 : io . github . triniwiz . fancycamera . DetectorType ) : void ;
111
116
public setMaxAudioBitRate ( param0 : number ) : void ;
112
117
public getDb ( ) : number ;
118
+ public getZoomRatio ( ) : number ;
113
119
}
114
120
export module Camera {
115
121
export class WhenMappings {
@@ -130,6 +136,7 @@ declare module io {
130
136
public getDisplayRatio ( ) : string ;
131
137
public cameraRecording ( ) : boolean ;
132
138
public setPause ( param0 : boolean ) : void ;
139
+ public getMinZoomRatio ( ) : number ;
133
140
public getRetrieveLatestImage ( ) : boolean ;
134
141
public getAllowExifRotation ( ) : boolean ;
135
142
public setEnablePinchZoom ( param0 : boolean ) : void ;
@@ -170,30 +177,38 @@ declare module io {
170
177
public setRetrieveLatestImage ( param0 : boolean ) : void ;
171
178
public setPictureSize ( param0 : string ) : void ;
172
179
public getPosition ( ) : io . github . triniwiz . fancycamera . CameraPosition ;
180
+ public getMaxZoomRatio ( ) : number ;
173
181
public setDb ( param0 : number ) : void ;
174
182
public getFlashMode ( ) : io . github . triniwiz . fancycamera . CameraFlashMode ;
183
+ public setZoomRatio ( param0 : number ) : void ;
175
184
public getMaxVideoBitrate ( ) : number ;
176
185
public setFlashMode ( param0 : io . github . triniwiz . fancycamera . CameraFlashMode ) : void ;
177
186
public getDetectorType ( ) : io . github . triniwiz . fancycamera . DetectorType ;
187
+ public setStoredZoomRatio ( param0 : number ) : void ;
178
188
public getMaxVideoFrameRate ( ) : number ;
179
189
public takePhoto ( ) : void ;
180
190
public getPreviewSurface ( ) : any ;
181
191
public getAmplitude ( ) : number ;
182
192
public getZoom ( ) : number ;
183
193
public getAvailablePictureSizes ( param0 : string ) : androidNative . Array < io . github . triniwiz . fancycamera . Size > ;
184
194
public setAutoFocus ( param0 : boolean ) : void ;
195
+ public getStoredZoom ( ) : number ;
185
196
public setDisplayRatio ( param0 : string ) : void ;
197
+ public getEnableTapToFocus ( ) : boolean ;
186
198
public getEnablePinchZoom ( ) : boolean ;
199
+ public setStoredZoom ( param0 : number ) : void ;
187
200
public toggleCamera ( ) : void ;
201
+ public setEnableTapToFocus ( param0 : boolean ) : void ;
188
202
public constructor ( param0 : globalAndroid . content . Context , param1 : globalAndroid . util . AttributeSet , param2 : number ) ;
189
203
public stopRecording ( ) : void ;
190
204
public getPause ( ) : boolean ;
191
205
public hasFlash ( ) : boolean ;
192
206
public constructor ( param0 : globalAndroid . content . Context ) ;
193
207
public setDetectorType ( param0 : io . github . triniwiz . fancycamera . DetectorType ) : void ;
194
208
public setMaxAudioBitRate ( param0 : number ) : void ;
195
- public getRecorderQuality$fancycamera_release ( param0 : io . github . triniwiz . fancycamera . Quality ) : androidx . camera . video . Quality ;
209
+ public getStoredZoomRatio ( ) : number ;
196
210
public getDb ( ) : number ;
211
+ public getZoomRatio ( ) : number ;
197
212
}
198
213
export module Camera2 {
199
214
export class WhenMappings {
@@ -279,6 +294,7 @@ declare module io {
279
294
public setAutoFocus ( param0 : boolean ) : void ;
280
295
public convertToExifDateTime$fancycamera_release ( param0 : number ) : string ;
281
296
public setOnFacesDetectedListener$fancycamera_release ( param0 : io . github . triniwiz . fancycamera . ImageAnalysisCallback ) : void ;
297
+ public getEnableTapToFocus ( ) : boolean ;
282
298
public setProcessEveryNthFrame ( param0 : number ) : void ;
283
299
public getEnablePinchZoom ( ) : boolean ;
284
300
public setImageLabelingOptions ( param0 : any ) : void ;
@@ -350,6 +366,7 @@ declare module io {
350
366
public setEnableAudio ( param0 : boolean ) : void ;
351
367
public setImageLabelingOptions$fancycamera_release ( param0 : any ) : void ;
352
368
public getFlashMode ( ) : io . github . triniwiz . fancycamera . CameraFlashMode ;
369
+ public setZoomRatio ( param0 : number ) : void ;
353
370
public convertFromExifDateTime$fancycamera_release ( param0 : string ) : java . util . Date ;
354
371
public hasPermission ( ) : boolean ;
355
372
public setOnSelfieSegmentationListener ( param0 : io . github . triniwiz . fancycamera . ImageAnalysisCallback ) : void ;
@@ -360,6 +377,7 @@ declare module io {
360
377
public setDisplayRatio ( param0 : string ) : void ;
361
378
public requestStoragePermission ( ) : void ;
362
379
public toggleCamera ( ) : void ;
380
+ public setEnableTapToFocus ( param0 : boolean ) : void ;
363
381
public constructor ( param0 : globalAndroid . content . Context , param1 : globalAndroid . util . AttributeSet , param2 : number ) ;
364
382
public getPause ( ) : boolean ;
365
383
public setOnPoseDetectedListener ( param0 : io . github . triniwiz . fancycamera . ImageAnalysisCallback ) : void ;
@@ -370,6 +388,7 @@ declare module io {
370
388
public getCurrentOrientation ( ) : number ;
371
389
public setOnFacesDetectedListener ( param0 : io . github . triniwiz . fancycamera . ImageAnalysisCallback ) : void ;
372
390
public getSelfieSegmentationOptions$fancycamera_release ( ) : any ;
391
+ public getZoomRatio ( ) : number ;
373
392
}
374
393
export module CameraBase {
375
394
export class Companion {
@@ -561,13 +580,16 @@ declare module io {
561
580
public static Selfie : io . github . triniwiz . fancycamera . DetectorType ;
562
581
public static None : io . github . triniwiz . fancycamera . DetectorType ;
563
582
public toString ( ) : string ;
583
+ public static fromName ( param0 : string ) : io . github . triniwiz . fancycamera . DetectorType ;
564
584
public static valueOf ( param0 : string ) : io . github . triniwiz . fancycamera . DetectorType ;
565
585
public static values ( ) : androidNative . Array < io . github . triniwiz . fancycamera . DetectorType > ;
586
+ public static fromInt ( param0 : number ) : io . github . triniwiz . fancycamera . DetectorType ;
566
587
}
567
588
export module DetectorType {
568
589
export class Companion {
569
590
public static class : java . lang . Class < io . github . triniwiz . fancycamera . DetectorType . Companion > ;
570
591
public fromInt ( param0 : number ) : io . github . triniwiz . fancycamera . DetectorType ;
592
+ public fromName ( param0 : string ) : io . github . triniwiz . fancycamera . DetectorType ;
571
593
}
572
594
}
573
595
}
@@ -611,7 +633,7 @@ declare module io {
611
633
export module github {
612
634
export module triniwiz {
613
635
export module fancycamera {
614
- export class FancyCamera {
636
+ export class FancyCamera extends globalAndroid . view . View {
615
637
public static class : java . lang . Class < io . github . triniwiz . fancycamera . FancyCamera > ;
616
638
public setFaceDetectionOptions ( param0 : any ) : void ;
617
639
public setPause ( param0 : boolean ) : void ;
@@ -639,6 +661,7 @@ declare module io {
639
661
public setRetrieveLatestImage ( param0 : boolean ) : void ;
640
662
public getPosition ( ) : io . github . triniwiz . fancycamera . CameraPosition ;
641
663
public setSelfieSegmentationOptions ( param0 : any ) : void ;
664
+ public getProcessEveryNthFrame ( ) : number ;
642
665
public getDuration ( ) : number ;
643
666
public requestAudioPermission ( ) : void ;
644
667
public hasAudioPermission ( ) : boolean ;
@@ -651,6 +674,8 @@ declare module io {
651
674
public takePhoto ( ) : void ;
652
675
public getAvailablePictureSizes ( param0 : string ) : androidNative . Array < io . github . triniwiz . fancycamera . Size > ;
653
676
public setAutoFocus ( param0 : boolean ) : void ;
677
+ public getEnableTapToFocus ( ) : boolean ;
678
+ public setProcessEveryNthFrame ( param0 : number ) : void ;
654
679
public getEnablePinchZoom ( ) : boolean ;
655
680
public setImageLabelingOptions ( param0 : any ) : void ;
656
681
public stopRecording ( ) : void ;
@@ -664,6 +689,7 @@ declare module io {
664
689
public setEnableAudioLevels ( param0 : boolean ) : void ;
665
690
public setBarcodeScannerOptions ( param0 : any ) : void ;
666
691
public static setForceV1 ( param0 : boolean ) : void ;
692
+ public setDetectorWithName ( param0 : string ) : void ;
667
693
public getRetrieveLatestImage ( ) : boolean ;
668
694
public getCameraOrientation ( ) : io . github . triniwiz . fancycamera . CameraOrientation ;
669
695
public setEnablePinchZoom ( param0 : boolean ) : void ;
@@ -706,6 +732,7 @@ declare module io {
706
732
public requestStoragePermission ( ) : void ;
707
733
public setRatio ( param0 : string ) : void ;
708
734
public toggleCamera ( ) : void ;
735
+ public setEnableTapToFocus ( param0 : boolean ) : void ;
709
736
public getPause ( ) : boolean ;
710
737
public setOnPoseDetectedListener ( param0 : io . github . triniwiz . fancycamera . ImageAnalysisCallback ) : void ;
711
738
public getPreviewView ( ) : any ;
0 commit comments