Open boutier opened 1 year ago
For starters the android implementation was created before iOS so I failed to match the behaviour so the differences could be me trying to make things easier.
byte[]
and Data
. If needed we can use a custom JSON parse to ensure rawBytes is returned as an Array/ArrayBuffer
Hi !
With mlkit
2.0.0
, on Android, when scanning a *code, I have something like:While I have on iOS:
(both reordered for better readability)
The
BarcodeResult
interface is defined in https://github.com/NativeScript/mlkit/blob/0712e3dfe4b4d2eb4d0caa3e22786c603366f19f/packages/mlkit-barcode-scanning/index.tsGiven
BarcodeResult
is the reference:QR_CODE
andText
instead ofqr_code
andtext
in this case)bounds
is simpler (origin
andsize
are inlined — which I personally prefer BTW)rawBytes
being base64 encoded (I guess) instead of being an array ofany
format
being an arraySide questions about
BarcodeResult
:bounds
withorigin
andsize
in theBarcodeResult
model rather than just inlining them as in the current iOS implementation?Origin
type while we already have aPoint
?rawBytes
asany[]
instead ofnumber[]
(orstring
if base64 is deemed better)