public class

LinkAnnotationHighlighter

extends PdfDrawableProvider
java.lang.Object
   ↳ com.pspdfkit.ui.drawable.PdfDrawableProvider
     ↳ com.pspdfkit.annotations.links.LinkAnnotationHighlighter

Class Overview

PdfDrawableProvider creating highlights based on a LinkAnnotation instances.

Summary

[Expand]
Inherited Fields
From class com.pspdfkit.ui.drawable.PdfDrawableProvider
Public Constructors
LinkAnnotationHighlighter(Context context)
Creates the link annotation highlighter.
Public Methods
List<? extends PdfDrawable> getDrawablesForPage(Context context, PdfDocument document, int pageIndex)
Returns all drawables for the given document and pageIndex.
void setLinkAnnotation(LinkAnnotation linkAnnotation)
Sets the link annotation to highlight.
[Expand]
Inherited Methods
From class com.pspdfkit.ui.drawable.PdfDrawableProvider
From class java.lang.Object

Public Constructors

public LinkAnnotationHighlighter (Context context)

Creates the link annotation highlighter.

Parameters
context Context used for pulling theme attributes set for the link annotation highlights.

Public Methods

public List<? extends PdfDrawable> getDrawablesForPage (Context context, PdfDocument document, int pageIndex)

Returns all drawables for the given document and pageIndex. The framework may call this method on any thread.

Parameters
context Context for resource resolution.
document The currently loaded PdfDocument.
pageIndex Number of the page for which the drawables should be returned.
Returns
  • A list of all drawables for the given document and page.

public void setLinkAnnotation (LinkAnnotation linkAnnotation)

Sets the link annotation to highlight. Calling this will replace any previously set link annotation.

Parameters
linkAnnotation link annotation to highlight.