public class

ItemClickHelper

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.widget.recyclerview.ItemClickHelper

Class Overview

Helper class to receive the click and long click events on the items of a recycler view

Summary

Nested Classes
interface ItemClickHelper.OnItemClickListener Callback interface invoked when an item is clicked. 
interface ItemClickHelper.OnItemLongClickListener Callback interface invoked when an item is long clicked. 
Public Constructors
ItemClickHelper()
Public Methods
void attachToRecyclerView(RecyclerView recyclerView)
Calls this method to enable receiving click and long click events on its items.
void onChildViewAttachedToWindow(View view)
void onChildViewDetachedFromWindow(View view)
void setOnItemClickListener(ItemClickHelper.OnItemClickListener listener)
void setOnItemLongClickListener(ItemClickHelper.OnItemLongClickListener listener)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ItemClickHelper ()

Public Methods

public void attachToRecyclerView (RecyclerView recyclerView)

Calls this method to enable receiving click and long click events on its items.

Parameters
recyclerView The recycler view

public void onChildViewAttachedToWindow (View view)

public void onChildViewDetachedFromWindow (View view)

public void setOnItemClickListener (ItemClickHelper.OnItemClickListener listener)

Parameters
listener The listener

public void setOnItemLongClickListener (ItemClickHelper.OnItemLongClickListener listener)

Parameters
listener The listener