Document
This class is the container for transferring documents between the client application and the Gini Vision Library and between the Fragments of the Gini Vision Library.
Due to the size limitations of the android.os.Bundle, the document data byte array has to be stored in a memory cache when parceling and read from the cache when unparceling.
Warning: Always retrieve the Document extras from a Bundle to force unparceling and removing of the reference to the byte array from the memory cache. Failing to do so will lead to memory leaks.
Types
Import Method
Link copied to clipboard
public enum ImportMethod
Content copied to clipboard
Enum of supported methods for importing documents.
Source
Link copied to clipboard
Source of the document (e.g.
Functions
describe Contents
Link copied to clipboard
abstract int describeContents()
Content copied to clipboard
get Import Method
Link copied to clipboard
Retrieve with which method the document has been imported.
get Jpeg
Link copied to clipboard
The image of a document as a JPEG.
get Mime Type
Link copied to clipboard
Retrieve the document's mime type (media type).
get Rotation For Display
Link copied to clipboard
The amount of clockwise rotation needed to display the image in the correct orientation.
get Source
Link copied to clipboard
Retrieve from which source the document originates from.
get Type
Link copied to clipboard
Get the concrete document type.
is Imported
Link copied to clipboard
abstract boolean isImported()
Content 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.
is Reviewable
Link copied to clipboard
abstract boolean isReviewable()
Content copied to clipboard
Documents like PDFs are not reviewable and can be passed directly to the Analysis Screen.
write To Parcel
Link copied to clipboard
Inheritors
GiniVisionDocument
Link copied to clipboard