Added in API level 23
OnContextClickListener
interface OnContextClickListener
android.view.GestureDetector.OnContextClickListener |
The listener that is used to notify when a context click occurs. When listening for a context click ensure that you call onGenericMotionEvent(android.view.MotionEvent)
in View#onGenericMotionEvent(MotionEvent)
.
Summary
Public methods | |
---|---|
abstract Boolean |
Notified when a context click occurs. |
Public methods
onContextClick
Added in API level 23
abstract fun onContextClick(e: MotionEvent): Boolean
Notified when a context click occurs.
Parameters | |
---|---|
e |
MotionEvent: The motion event that occurred during the context click. This value cannot be null . |
Return | |
---|---|
Boolean |
true if the event is consumed, else false |