Document

public class Document implements Parcelable

Constructors

Link copied to clipboard
public void Document(String id, Document.ProcessingState state, String filename, Integer pageCount, Date creationDate, Document.SourceClassification sourceClassification, Uri uri, List<Uri> compositeDocuments, List<Uri> partialDocuments)

Types

Link copied to clipboard
public enum ProcessingState
The possible processing states of a document.
Link copied to clipboard

Functions

Link copied to clipboard
public int describeContents()
Link copied to clipboard
public static Document fromApiResponse(JSONObject responseData)
Creates a new document instance from the JSON data usually returned by the Gini API.
Link copied to clipboard
Link copied to clipboard
The document's creation date.
Link copied to clipboard
The document's filename (as stated on upload).
Link copied to clipboard
public String getId()
The document's unique identifier.
Link copied to clipboard
public int getPageCount()
The number of pages.
Link copied to clipboard
Link copied to clipboard
Classification of the source file.
Link copied to clipboard
The document's processing state.
Link copied to clipboard
public Uri getUri()
Link copied to clipboard
public void writeToParcel(Parcel dest, int flags)

Properties

Link copied to clipboard
public final static int CONTENTS_FILE_DESCRIPTOR
Link copied to clipboard
public final static Parcelable.Creator<Document> CREATOR
Link copied to clipboard
public final static int PARCELABLE_WRITE_RETURN_VALUE