ComparisonDocument

This class holds the data used for document comparison. Use this class to provide documents when comparing them with the show method.

Constructors

Link copied to clipboard
constructor(@NonNull documentSource: DocumentSource, @IntRange(from = 0) pageIndex: Int, @ColorInt lineColor: Int)
Creates and initializes a ComparisonDocument class.
constructor(@NotNull documentSource: @NotNull ParcelableDocumentSource, @IntRange(from = 0) pageIndex: Int, @ColorInt lineColor: Int)
Creates and initializes a ComparisonDocument class.

Properties

Link copied to clipboard
Link copied to clipboard
Color to tint the line strokes with.
Link copied to clipboard
@get:IntRange(from = 0)
val pageIndex: Int
Index of the page to use for comparison.

Functions

Link copied to clipboard
open fun describeContents(): Int
Link copied to clipboard
Returns the DocumentSource used by this comparison document.
Link copied to clipboard
open fun writeToParcel(dest: Parcel, flags: Int)