UNPKG

nativescript-plugin-firebase-updated

Version:
14 lines (13 loc) 521 B
import { Property } from "@nativescript/core/ui/core/properties"; import { MLKitCameraView } from "../mlkit-cameraview"; export const confidenceThresholdProperty = new Property({ name: "confidenceThreshold", defaultValue: 0.5, }); export class MLKitImageLabeling extends MLKitCameraView { [confidenceThresholdProperty.setNative](value) { this.confidenceThreshold = parseFloat(value); } } MLKitImageLabeling.scanResultEvent = "scanResult"; confidenceThresholdProperty.register(MLKitImageLabeling);