AnnotationsView.OnGestureClaimListener


interface AnnotationsView.OnGestureClaimListener


Callback interface for gesture coordination events.

These signals allow the host to coordinate the touch event stream between different simultaneous interactions.

Summary

Public functions

Unit

Called when the view 'abandons' its interest in the current gesture.

Unit

Called when the view 'claims' the current gesture stream.

Public functions

onGestureAbandoned

Added in 1.0.0-alpha19
fun onGestureAbandoned(): Unit

Called when the view 'abandons' its interest in the current gesture.

The host can use this signal to allow other interactions to continue exclusively.

onGestureClaimed

Added in 1.0.0-alpha19
fun onGestureClaimed(): Unit

Called when the view 'claims' the current gesture stream.

The host should typically use this signal to cancel any other 'shadow' or simultaneous interactions that are currently tracking this gesture.