Android APIs
Added in API level 23
public static interface

View.OnContextClickListener

android.view.View.OnContextClickListener

Class Overview

Interface definition for a callback to be invoked when a view is context clicked.

Summary

Public Methods
abstract boolean onContextClick(View v)
Called when a view is context clicked.

Public Methods

public abstract boolean onContextClick (View v)

Added in API level 23

Called when a view is context clicked.

Parameters
v The view that has been context clicked.
Returns
  • true if the callback consumed the context click, false otherwise.