QRCodeDocument

Contains payment information required for transactions that were parsed from a document with a QR Code.

Payment data from BezahlCode and EPC069-12 (Stuzza (AT) and GiroCode (DE)) QRCodes are detected and read.

Get the contents with ( getData ) and upload it to the Gini API to get the extractions.

public final class QRCodeDocument extends GiniVisionDocument

Functions

describeContents
Link copied to clipboard
abstract int describeContents()

Internal use only.

int describeContents()
equals
Link copied to clipboard
boolean equals(Object o)
fromPaymentQRCodeData
Link copied to clipboard

Creates an instance with the provided QR Code data.

static QRCodeDocument fromPaymentQRCodeData(PaymentQRCodeData paymentQRCodeData)
getData
Link copied to clipboard

The contents of a document, if the document was loaded into memory.

For photos captured with the camera or for QR Codes this is never null.

If isImported is {@code true} then this might be null. If it's null you can use getIntent and access the contents using the Intent.

synchronized Array<byte> getData()
getId
Link copied to clipboard

Retrieve the document's unique id.

String getId()
getImportMethod
Link copied to clipboard

Retrieve with which method the document has been imported.

Document.ImportMethod getImportMethod()
getIntent
Link copied to clipboard

The Intent with which the imported document was received.

Intent getIntent()
getJpeg
Link copied to clipboard

The image of a document as a JPEG.

Array<byte> getJpeg()
getMimeType
Link copied to clipboard

Retrieve the document's mime type (media type).

String getMimeType()
getParcelableMemoryCacheTag
Link copied to clipboard
String getParcelableMemoryCacheTag()
getPaymentData
Link copied to clipboard

Internal use only.

PaymentQRCodeData getPaymentData()
getRotationForDisplay
Link copied to clipboard

The amount of clockwise rotation needed to display the image in the correct orientation.

Degrees are positive and multiples of 90.

int getRotationForDisplay()
getSource
Link copied to clipboard

Retrieve from which source the document originates from.

Document.Source getSource()
getType
Link copied to clipboard

Get the concrete document type.

Document.Type getType()
getUri
Link copied to clipboard

The Uri of the imported document.

Uri getUri()
hashCode
Link copied to clipboard
int hashCode()
isImported
Link copied to clipboard

Document is imported if it was picked from another app from the Camera Screen's document upload button or if a file was passed to the Gini Vision Library through the client application from another app.

boolean isImported()
isReviewable
Link copied to clipboard

Documents like PDFs are not reviewable and can be passed directly to the Analysis Screen. Reviewable documents have to be shown in the Review Screen first before passing it on to the Analysis Screen.

boolean isReviewable()
loadData
Link copied to clipboard
synchronized void loadData(Context context, AsyncCallback<Array<byte>, Exceptioncallback)
setData
Link copied to clipboard
synchronized void setData(Array<byte> data)
setParcelableMemoryCacheTag
Link copied to clipboard
void setParcelableMemoryCacheTag(String tag)
toString
Link copied to clipboard
String toString()
unloadData
Link copied to clipboard
synchronized void unloadData()
writeToParcel
Link copied to clipboard
abstract void writeToParcel(Parcel p, int p1)

Internal use only.

void writeToParcel(Parcel dest, int flags)
void writeToParcel(Parcel dest, int flags)

Properties

CREATOR
Link copied to clipboard

Internal use only.

public final static Parcelable.Creator<QRCodeDocumentCREATOR