Package com.pspdfkit.ui.outline
Class DefaultOutlineViewListener
-
- All Implemented Interfaces:
-
com.pspdfkit.ui.PdfOutlineView.OnAnnotationTapListener
,com.pspdfkit.ui.PdfOutlineView.OnEmbeddedFileTapListener
,com.pspdfkit.ui.PdfOutlineView.OnOutlineElementTapListener
public class DefaultOutlineViewListener implements PdfOutlineView.OnOutlineElementTapListener, PdfOutlineView.OnAnnotationTapListener, PdfOutlineView.OnEmbeddedFileTapListener
Default implementation of OnOutlineElementTapListener and OnAnnotationTapListener to handle interactions with annotations and outline in PdfOutlineView.
-
-
Constructor Summary
Constructors Constructor Description DefaultOutlineViewListener(PdfFragment fragment)
-
Method Summary
Modifier and Type Method Description void
onAnnotationTap(@NonNull() PdfOutlineView self, @NonNull() Annotation annotation)
Called when an annotation was tapped inside the annotation list. void
onOutlineElementTap(@NonNull() PdfOutlineView self, @NonNull() OutlineElement outlineElement)
Called when an outline element was tapped. void
onEmbeddedFileTap(@NonNull() PdfOutlineView self, @NonNull() EmbeddedFile embeddedFile)
Called when an embedded file was tapped. -
-
Constructor Detail
-
DefaultOutlineViewListener
DefaultOutlineViewListener(PdfFragment fragment)
-
-
Method Detail
-
onAnnotationTap
void onAnnotationTap(@NonNull() PdfOutlineView self, @NonNull() Annotation annotation)
Called when an annotation was tapped inside the annotation list.
- Parameters:
self
- The PdfOutlineView instance that triggered the event.annotation
- The Annotation that was tapped.
-
onOutlineElementTap
void onOutlineElementTap(@NonNull() PdfOutlineView self, @NonNull() OutlineElement outlineElement)
Called when an outline element was tapped.
- Parameters:
self
- The PdfOutlineView instance that triggered the event.outlineElement
- The OutlineElement that was tapped.
-
onEmbeddedFileTap
void onEmbeddedFileTap(@NonNull() PdfOutlineView self, @NonNull() EmbeddedFile embeddedFile)
Called when an embedded file was tapped.
- Parameters:
self
- The PdfOutlineView instance that triggered the event.embeddedFile
- The EmbeddedFile that was tapped.
-
-
-
-