EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 446 forks source link

CameraView. Expose preview image size #1492

Open leevigraham opened 4 years ago

leevigraham commented 4 years ago

Is it possible to get the preview image size before a successful barcode scan? I'm trying to position a simple label over the barcode when it is detected which involves a bit of scale math in order to correctly position the label. Given the image size doesn't change per scan I was hoping to get this information when the MLKitBarcodeScanner element is mounted and the native view is created.

EddyVerbruggen commented 4 years ago

Good question. If you can share the required code for both platforms then I'd be more than happy to incorporate it in the plugin.