ComparisonDocument

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

documentSource

The DocumentSource to use for comparison.

pageIndex

The 0-based index of the page to use for comparison.

lineColor

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

documentSource

The DocumentSource to use for comparison.

pageIndex

The 0-based index of the page to use for comparison.

lineColor

The color to use for tinting the page content while comparing.