Skip to content

Commit af53c19

Browse files
committed
fix: typings
1 parent 5b301b4 commit af53c19

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

packages/mlkit-core/index.android.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const IMAGE_LABELING_SUPPORTED = lazy(() => typeof io.github.triniwiz.fancycamer
1919
const OBJECT_DETECTION_SUPPORTED = lazy(() => typeof io.github.triniwiz.fancycamera?.objectdetection?.ObjectDetection);
2020
const POSE_DETECTION_SUPPORTED = lazy(() => typeof io.github.triniwiz.fancycamera?.posedetection?.PoseDetection);
2121

22+
export { BarcodeFormats, barcodeFormatsProperty, CameraPosition, cameraPositionProperty, DetectionType, faceDetectionMinFaceSizeProperty, faceDetectionPerformanceModeProperty, faceDetectionTrackingEnabledProperty, imageLablerConfidenceThresholdProperty, objectDetectionClassifyProperty, objectDetectionMultipleProperty } from './common';
2223

2324
export class MLKitView extends MLKitViewBase {
2425
#camera: io.github.triniwiz.fancycamera.FancyCamera;

packages/mlkit-core/index.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { MLKitViewBase } from "./common";
2+
export { BarcodeFormats, barcodeFormatsProperty, CameraPosition, cameraPositionProperty, DetectionType, faceDetectionMinFaceSizeProperty, faceDetectionPerformanceModeProperty, faceDetectionTrackingEnabledProperty, imageLablerConfidenceThresholdProperty, objectDetectionClassifyProperty, objectDetectionMultipleProperty } from './common';
3+
export declare class MLKitView extends MLKitViewBase {
4+
static isAvailable(): boolean;
5+
onDetection: (data: {
6+
[key: string]: any;
7+
}) => void;
8+
stopPreview(): void;
9+
toggleCamera(): void;
10+
startPreview(): void;
11+
requestCameraPermission(): Promise<void>;
12+
hasCameraPermission(): boolean;
13+
}

packages/mlkit-core/index.ios.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,8 @@ class AVCaptureVideoDataOutputSampleBufferDelegateImpl extends NSObject implemen
613613
}
614614

615615

616+
export { BarcodeFormats, barcodeFormatsProperty, CameraPosition, cameraPositionProperty, DetectionType, faceDetectionMinFaceSizeProperty, faceDetectionPerformanceModeProperty, faceDetectionTrackingEnabledProperty, imageLablerConfidenceThresholdProperty, objectDetectionClassifyProperty, objectDetectionMultipleProperty } from './common';
617+
616618
export class MLKitView extends MLKitViewBase {
617619
#session: AVCaptureSession;
618620
#device: AVCaptureDevice;

0 commit comments

Comments
 (0)