Package io.anyline2.camera
Interface NativeBarcodeResultListener
-
public interface NativeBarcodeResultListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonFailure(java.lang.String failureMessage)Is called when NativeBarcode failedvoidonSuccess(AnylineYuvImage resultImage, java.util.List<com.google.mlkit.vision.barcode.common.Barcode> barcodes)Is called when NativeBarcode scanned with success
-
-
-
Method Detail
-
onSuccess
void onSuccess(AnylineYuvImage resultImage, java.util.List<com.google.mlkit.vision.barcode.common.Barcode> barcodes)Is called when NativeBarcode scanned with success- Parameters:
resultImage- the source imagebarcodes- the barcodeList found while scanning
-
onFailure
void onFailure(java.lang.String failureMessage)
Is called when NativeBarcode failed- Parameters:
failureMessage- the failure message when failure occurs
-
-