Package com.pspdfkit.ui.note
Class AnnotationNoteHinter
-
- All Implemented Interfaces:
-
com.pspdfkit.annotations.AnnotationProvider.OnAnnotationUpdatedListener
,com.pspdfkit.ui.PageObjectProvider
public class AnnotationNoteHinter extends PdfDrawableProvider implements AnnotationProvider.OnAnnotationUpdatedListener
PdfDrawableProvider creating visual contents hints for supported Annotation.
-
-
Constructor Summary
Constructors Constructor Description AnnotationNoteHinter(Context context)
-
Method Summary
Modifier and Type Method Description synchronized List<out PdfDrawable>
getDrawablesForPage(@NonNull() Context context, @NonNull() PdfDocument document, @IntRange(from = 0) int pageIndex)
Returns all drawables for the given document
andpageIndex
.void
onAnnotationCreated(@NonNull() Annotation annotation)
Called when annotation has been created. void
onAnnotationUpdated(@NonNull() Annotation annotation)
Called when existing annotation has changed. void
onAnnotationRemoved(@NonNull() Annotation annotation)
Called when existing annotation has been removed. void
onAnnotationZOrderChanged(int pageIndex, @NonNull() List<Annotation> oldOrder, @NonNull() List<Annotation> newOrder)
Called when the z-order of annotations has changed on a specified page. -
-
Constructor Detail
-
AnnotationNoteHinter
AnnotationNoteHinter(Context context)
-
-
Method Detail
-
getDrawablesForPage
@NonNull() synchronized List<out PdfDrawable> getDrawablesForPage(@NonNull() Context context, @NonNull() PdfDocument document, @IntRange(from = 0) int pageIndex)
Returns all drawables for the given
document
andpageIndex
. 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.
-
onAnnotationCreated
void onAnnotationCreated(@NonNull() Annotation annotation)
Called when annotation has been created.
- Parameters:
annotation
- Annotation that has been created.
-
onAnnotationUpdated
void onAnnotationUpdated(@NonNull() Annotation annotation)
Called when existing annotation has changed.
- Parameters:
annotation
- Annotation that has been changed.
-
onAnnotationRemoved
void onAnnotationRemoved(@NonNull() Annotation annotation)
Called when existing annotation has been removed.
- Parameters:
annotation
- Annotation that has been removed.
-
onAnnotationZOrderChanged
void onAnnotationZOrderChanged(int pageIndex, @NonNull() List<Annotation> oldOrder, @NonNull() 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.
-
-
-
-