-
public class PaymentQRCodeReaderInternal use only. Reads the first supported QRCode payment data from images.
See PaymentQRCodeParser for supported formats.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfacePaymentQRCodeReader.ListenerInternal use only.
public interfacePaymentQRCodeReader.CallbackInternal use only.
-
Method Summary
Modifier and Type Method Description static PaymentQRCodeReadernewInstance(@NonNull() QRCodeDetectorTask qrCodeDetectorTask)Create a new instance which uses the provided QRCodeDetectorTask to do QRCodedetection. voidreadFromImage(@NonNull() Image image, @NonNull() Size imageSize, int rotation, @NonNull() PaymentQRCodeReader.Callback callback)Reads the first supported QRCode payment data from the image. voidreadFromByteArray(@NonNull() Array<byte> image, @NonNull() Size imageSize, int rotation)Reads the first supported QRCode payment data from the image. voidrelease()Release all resources. voidsetListener(@Nullable() PaymentQRCodeReader.Listener listener)-
-
Method Detail
-
newInstance
static PaymentQRCodeReader newInstance(@NonNull() QRCodeDetectorTask qrCodeDetectorTask)
Create a new instance which uses the provided QRCodeDetectorTask to do QRCodedetection.
- Parameters:
qrCodeDetectorTask- a QRCodeDetectorTask implementation
-
readFromImage
void readFromImage(@NonNull() Image image, @NonNull() Size imageSize, int rotation, @NonNull() PaymentQRCodeReader.Callback callback)
Reads the first supported QRCode payment data from the image.
- Parameters:
image- an image byte arrayimageSize- size of the imagerotation- rotation to be applied to the image for correct orientation
-
readFromByteArray
void readFromByteArray(@NonNull() Array<byte> image, @NonNull() Size imageSize, int rotation)
Reads the first supported QRCode payment data from the image.
- Parameters:
image- an image byte arrayimageSize- size of the imagerotation- rotation to be applied to the image for correct orientation
-
release
void release()
Release all resources. Detection not possible after this has been called.
-
setListener
void setListener(@Nullable() PaymentQRCodeReader.Listener listener)
-
-
-
-