Document

public interface Document implements Parcelable

This class is the container for transferring documents between the client application and the Gini Capture SDK and between the Fragments of the Gini Capture SDK.

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

Link copied to clipboard
public enum ImportMethod
Enum of supported methods for importing documents.
Link copied to clipboard
public class Source implements Parcelable
Source of the document (e.g.
Link copied to clipboard
public enum Type
Supported document types.

Functions

Link copied to clipboard
public abstract int describeContents()
Link copied to clipboard
public abstract Array<byte> getData()
The contents of a document, if the document was loaded into memory.
Link copied to clipboard
public abstract String getId()
Retrieve the document's unique id.
Link copied to clipboard
Retrieve with which method the document has been imported.
Link copied to clipboard
public abstract Intent getIntent()
The Intent with which the imported document was received.
Link copied to clipboard
public abstract String getMimeType()
Retrieve the document's mime type (media type).
Link copied to clipboard
public abstract Document.Source getSource()
Retrieve from which source the document originates from.
Link copied to clipboard
public abstract Document.Type getType()
Get the concrete document type.
Link copied to clipboard
public abstract Uri getUri()
The Uri of the imported document.
Link copied to clipboard
public abstract boolean isImported()
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 Capture SDK through the client application from another app.
Link copied to clipboard
public abstract boolean isReviewable()
Documents like PDFs are not reviewable and can be passed directly to the Analysis Screen.
Link copied to clipboard
public abstract void writeToParcel(Parcel p, int p1)

Inheritors

Link copied to clipboard