public class

AnnotationNoteHinter

extends PdfDrawableProvider
implements AnnotationProvider.OnAnnotationUpdatedListener
java.lang.Object
   ↳ com.pspdfkit.ui.drawable.PdfDrawableProvider
     ↳ com.pspdfkit.ui.note.AnnotationNoteHinter

Class Overview

PdfDrawableProvider creating visual contents hints for supported Annotation.

Summary

[Expand]
Inherited Fields
From class com.pspdfkit.ui.drawable.PdfDrawableProvider
Public Constructors
AnnotationNoteHinter(Context context)
Public Methods
synchronized List<? extends PdfDrawable> getDrawablesForPage(Context context, PdfDocument document, int pageIndex)
Returns all drawables for the given document and pageIndex.
void onAnnotationCreated(Annotation annotation)
Called when annotation has been created.
void onAnnotationRemoved(Annotation annotation)
Called when existing annotation has been removed.
void onAnnotationUpdated(Annotation annotation)
Called when existing annotation has changed.
[Expand]
Inherited Methods
From class com.pspdfkit.ui.drawable.PdfDrawableProvider
From class java.lang.Object
From interface com.pspdfkit.annotations.AnnotationProvider.OnAnnotationUpdatedListener

Public Constructors

public AnnotationNoteHinter (Context context)

Public Methods

public synchronized 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 onAnnotationCreated (Annotation annotation)

Called when annotation has been created.

public void onAnnotationRemoved (Annotation annotation)

Called when existing annotation has been removed.

public void onAnnotationUpdated (Annotation annotation)

Called when existing annotation has changed.