Interface AnnotationManager.OnAnnotationSelectedListener
-
- All Implemented Interfaces:
public interface AnnotationManager.OnAnnotationSelectedListener
Listener for annotation selection.
-
-
Method Summary
Modifier and Type Method Description abstract boolean
onPrepareAnnotationSelection(@NonNull() AnnotationSelectionController controller, @NonNull() Annotation annotation, boolean annotationCreated)
Called immediately before annotation is going to be selected. abstract void
onAnnotationSelected(@NonNull() Annotation annotation, boolean annotationCreated)
Called when annotation gets selected. void
onAnnotationSelectionFinished(@NonNull() List<Annotation> annotations, boolean annotationsCreated)
Called when annotation gets selected. -
-
Method Detail
-
onPrepareAnnotationSelection
abstract 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
abstract 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 .
-
onAnnotationSelectionFinished
void onAnnotationSelectionFinished(@NonNull() List<Annotation> annotations, boolean annotationsCreated)
Called when annotation gets selected.
- Parameters:
annotations
- Annotation that were selected.annotationsCreated
-true
if selected annotation are being created in .
-
-
-
-