AnnotationsView.OnAnnotationLocatedListener


fun interface AnnotationsView.OnAnnotationLocatedListener


Callback interface for annotation hit events.

Summary

Public functions

Unit
onAnnotationsLocated(
    x: Float,
    y: Float,
    annotations: List<KeyedPdfAnnotation>
)

Called when one or more annotations are successfully located at a specific touch location.

Public functions

onAnnotationsLocated

Added in 1.0.0-alpha19
fun onAnnotationsLocated(
    x: Float,
    y: Float,
    annotations: List<KeyedPdfAnnotation>
): Unit

Called when one or more annotations are successfully located at a specific touch location.

Parameters
x: Float

The x-coordinate of the touch event in view coordinates.

y: Float

The y-coordinate of the touch event in view coordinates.

annotations: List<KeyedPdfAnnotation>

The list of KeyedPdfAnnotation objects found at the (x, y) location, typically ordered by visual stacking order (Z-index) (top-bottom).