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.
void onAnnotationZOrderChanged(int pageIndex, List<Annotation> oldOrder, List<Annotation> newOrder)
Called when the z-order of annotations has changed on a specified page.
[Expand]
Inherited Methods
From class com.pspdfkit.ui.drawable.PdfDrawableProvider
From class java.lang.Object
From interface com.pspdfkit.annotations.AnnotationProvider.OnAnnotationUpdatedListener
From interface com.pspdfkit.ui.PageObjectProvider

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.

Parameters
annotation Annotation that has been created.

public void onAnnotationRemoved (Annotation annotation)

Called when existing annotation has been removed.

Parameters
annotation Annotation that has been removed.

public void onAnnotationUpdated (Annotation annotation)

Called when existing annotation has changed.

Parameters
annotation Annotation that has been changed.

public void onAnnotationZOrderChanged (int pageIndex, List<Annotation> oldOrder, List<Annotation> newOrder)

Called when the z-order of annotations has changed on a specified page.

Parameters
pageIndex Index of the page where the z-order has changed.
oldOrder The old order of annotations on the page.
newOrder The new order of annotations on the page.