ImageDocument

public class ImageDocument extends GiniVisionDocument

A document containing an image.

Types

ImageFormat
Link copied to clipboard
public enum ImageFormat
Supported image formats.

Functions

describeContents
Link copied to clipboard
abstract int describeContents()
int describeContents()
Internal use only.
equals
Link copied to clipboard
boolean equals(Object o)
getData
Link copied to clipboard
synchronized Array<byte> getData()
The contents of a document, if the document was loaded into memory.
getDeviceOrientation
Link copied to clipboard
String getDeviceOrientation()
Internal use only.
getDeviceType
Link copied to clipboard
String getDeviceType()
Internal use only.
getFormat
Link copied to clipboard
ImageDocument.ImageFormat getFormat()
Retrieve the format of the image.
getId
Link copied to clipboard
String getId()
Retrieve the document's unique id.
getImportMethod
Link copied to clipboard
Document.ImportMethod getImportMethod()
Retrieve with which method the document has been imported.
getIntent
Link copied to clipboard
Intent getIntent()
The Intent with which the imported document was received.
getJpeg
Link copied to clipboard
Array<byte> getJpeg()
The image of a document as a JPEG.
getMimeType
Link copied to clipboard
String getMimeType()
Retrieve the document's mime type (media type).
getParcelableMemoryCacheTag
Link copied to clipboard
String getParcelableMemoryCacheTag()
getRotationDelta
Link copied to clipboard
int getRotationDelta()
getRotationForDisplay
Link copied to clipboard
int getRotationForDisplay()
The amount of clockwise rotation needed to display the image in the correct orientation.
getSource
Link copied to clipboard
Document.Source getSource()
Retrieve from which source the document originates from.
getType
Link copied to clipboard
Document.Type getType()
Get the concrete document type.
getUri
Link copied to clipboard
Uri getUri()
The Uri of the imported document.
hashCode
Link copied to clipboard
int hashCode()
isImported
Link copied to clipboard
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 Vision Library through the client application from another app.
isReviewable
Link copied to clipboard
boolean isReviewable()
Documents like PDFs are not reviewable and can be passed directly to the Analysis Screen.
loadData
Link copied to clipboard
synchronized void loadData(@NonNull() Context context, @NonNull() AsyncCallback<Array<byte>, Exception> callback)
setData
Link copied to clipboard
synchronized void setData(Array<byte> data)
setParcelableMemoryCacheTag
Link copied to clipboard
void setParcelableMemoryCacheTag(@NonNull() String tag)
setRotationForDisplay
Link copied to clipboard
void setRotationForDisplay(int degrees)
toString
Link copied to clipboard
String toString()
unloadData
Link copied to clipboard
synchronized void unloadData()
updateRotationDeltaBy
Link copied to clipboard
void updateRotationDeltaBy(int degrees)
writeToParcel
Link copied to clipboard
abstract void writeToParcel(Parcel p, int p1)
void writeToParcel(Parcel dest, int flags)
Internal use only.

Properties

CREATOR
Link copied to clipboard
public final static Parcelable.Creator<ImageDocumentCREATOR
Internal use only.