LongClickEvent

open class LongClickEvent

Components should implement an event of this type in order to receive Android long click events. The method is equivalent to the Android method onLongClick - implementations should return true if they consumed the long click and false otherwise. An example of the correct usage is:




static boolean onLongClick(
    View view,
    Param someParam
    Prop someProp) {
  if (shouldHandleLongClick(someParam, someProp)) {
    handleLongClick(view);
    return true;
  }

  return false;
}
</pre>

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open var view: View