abstract fun onClick(@NonNull view: View): Boolean

Called when a view has been clicked. This returns a boolean to indicate whether you have consumed the event and it should not be carried further. That is, return true to indicate that you have handled the event and it should stop here; return false if you have not handled it and/or the event should continue to any other on-click listeners.


true if the callback consumed the long click, false otherwise. since 3.2.2



The view that was clicked.