setOnMenuItemLongClickListener

Sets a listener for menu item long clicks. Calling this method will replace any previously set listener. You may provide null to clear the listener.

Parameters

listener

OnMenuItemLongClickListener that should be notified, or null to clear the listener.