Android APIs
Added in API level 23
public static interface

GestureDetector.OnContextClickListener

android.view.GestureDetector.OnContextClickListener
Known Indirect Subclasses

Class Overview

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

public abstract boolean onContextClick (MotionEvent e)

Added in API level 23

Notified when a context click occurs.

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