Most visited

Recently visited

Added in API level 23

GestureDetector.OnContextClickListener

public static interface GestureDetector.OnContextClickListener

android.view.GestureDetector.OnContextClickListener
Known Indirect Subclasses


The listener that is used to notify when a context click occurs. When listening for a context click ensure that you call onGenericMotionEvent(MotionEvent) in onGenericMotionEvent(MotionEvent).

Summary

Public methods

abstract boolean onContextClick(MotionEvent e)

Notified when a context click occurs.

Public methods

onContextClick

Added in API level 23
boolean onContextClick (MotionEvent e)

Notified when a context click occurs.

Parameters
e MotionEvent: The motion event that occurred during the context click.
Returns
boolean true if the event is consumed, else false

Hooray!