HighlightAnnotation


public final class HighlightAnnotation extends PdfAnnotation


Represents a Highlight Annotation in a PDF document.

Summary

Public constructors

HighlightAnnotation(
    int pageNum,
    @NonNull List<@NonNull RectF> bounds,
    int color
)

Public methods

boolean
equals(Object other)
final @NonNull List<@NonNull RectF>

The list of bounding RectF of the annotation denoting areas on the page which are highlighted.

final int

The color of the highlight.

int

Inherited methods

From androidx.pdf.annotation.content.PdfAnnotation
int

The page number (0-indexed) where this annotation is located.

Public constructors

HighlightAnnotation

public HighlightAnnotation(
    int pageNum,
    @NonNull List<@NonNull RectF> bounds,
    int color
)

Public methods

equals

public boolean equals(Object other)

getBounds

Added in 1.0.0-alpha19
public final @NonNull List<@NonNull RectFgetBounds()

The list of bounding RectF of the annotation denoting areas on the page which are highlighted.

getColor

Added in 1.0.0-alpha19
public final int getColor()

The color of the highlight.

hashCode

public int hashCode()