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

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

Functions

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

Inheritors

GiniCaptureDocument
Link copied to clipboard