Document

data class Document(var id: String = "", var name: String = "", var date: Long = 0, var pagesCount: Int = 0, var size: Long = -1L, var thumbnailUri: String? = null, var ocrStatus: OcrStatus = OcrStatus.NOT_SCHEDULED, var language: Language? = null, var ocrText: String? = null, var documentType: DocumentType = DocumentType.UNKNOWN) : Parcelable

Document model used in the application and database.

Constructors

Link copied to clipboard
constructor()
constructor(id: String = "", name: String = "", date: Long = 0, pagesCount: Int = 0, size: Long = -1L, thumbnailUri: String? = null, ocrStatus: OcrStatus = OcrStatus.NOT_SCHEDULED, language: Language? = null, ocrText: String? = null, documentType: DocumentType = DocumentType.UNKNOWN)

Properties

Link copied to clipboard

Document creation date

Link copied to clipboard

Type of the document

Link copied to clipboard

Document id

Link copied to clipboard

Language of the document

Link copied to clipboard

Document name

Link copied to clipboard

Status of OCR operation on this document

Link copied to clipboard

Detected text content

Link copied to clipboard

Document pages count

Link copied to clipboard

Size of document file

Link copied to clipboard

Uri of document thumbnail file

Functions

Link copied to clipboard
open operator override fun equals(o: Any?): Boolean