Interface View.OnLongClickListener

Enclosing class:
View
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface View.OnLongClickListener
Interface definition for a callback to be invoked when a view has been clicked and held.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Called when a view has been clicked and held.
  • Method Details

    • onLongClick

      boolean onLongClick(View v)
      Called when a view has been clicked and held.
      Parameters:
      v - The view that was clicked and held.
      Returns:
      true if the callback consumed the long click, false otherwise.