Comparison Document
constructor(@NonNull documentSource: DocumentSource, @IntRange(from = 0 ) pageIndex: Int, @ColorInt lineColor: Int)
Creates and initializes a ComparisonDocument class. This is a convenience override for ComparisonDocument, and will convert the given documentSource
to a . This method will throw an exception if documentSource
is not parcelable.
Parameters
document Source
The DocumentSource to use for comparison.
page Index
The 0-based index of the page to use for comparison.
line Color
The color to use for tinting the page content while comparing.
constructor(@NotNull documentSource: @NotNull ParcelableDocumentSource, @IntRange(from = 0 ) pageIndex: Int, @ColorInt lineColor: Int)
Creates and initializes a ComparisonDocument class.
Parameters
document Source
The DocumentSource to use for comparison.
page Index
The 0-based index of the page to use for comparison.
line Color
The color to use for tinting the page content while comparing.