Class OnAnnotationSelectedListenerAdapter
-
- All Implemented Interfaces:
-
com.pspdfkit.ui.special_mode.manager.AnnotationManager.OnAnnotationSelectedListener
public class OnAnnotationSelectedListenerAdapter implements AnnotationManager.OnAnnotationSelectedListener
Empty implementation of the OnAnnotationSelectedListener.
-
-
Constructor Summary
Constructors Constructor Description OnAnnotationSelectedListenerAdapter()
-
Method Summary
Modifier and Type Method Description boolean
onPrepareAnnotationSelection(@NonNull() AnnotationSelectionController controller, @NonNull() Annotation annotation, boolean annotationCreated)
Called immediately before annotation is going to be selected. void
onAnnotationSelected(@NonNull() Annotation annotation, boolean annotationCreated)
Called when annotation gets selected. -
-
Method Detail
-
onPrepareAnnotationSelection
boolean onPrepareAnnotationSelection(@NonNull() AnnotationSelectionController controller, @NonNull() Annotation annotation, boolean annotationCreated)
Called immediately before annotation is going to be selected.
- Parameters:
controller
- Selection controller that is performing the selection.annotation
- Annotation that is going to be selected.annotationCreated
-true
if the annotation is being created.- Returns:
true
when you want AnnotationSelectionController to proceed with the selection. Returningfalse
will prevent annotation from being selected.
-
onAnnotationSelected
void onAnnotationSelected(@NonNull() Annotation annotation, boolean annotationCreated)
Called when annotation gets selected.
- Parameters:
annotation
- Annotation that is being selected.annotationCreated
-true
if selected annotation is being created in .
-
-
-
-