public class

SavedSignatureAdapter

extends SimpleRecyclerViewAdapter<T, VH extends ViewHolder>
java.lang.Object
   ↳
     ↳ com.pdftron.pdf.widget.recyclerview.SimpleRecyclerViewAdapter<T, VH extends RecyclerView.ViewHolder>
       ↳ com.pdftron.pdf.adapter.SavedSignatureAdapter

Summary

Public Constructors
SavedSignatureAdapter(Context context, ViewHolderBindListener bindListener)
Public Methods
void add(File item)
Adds the item.
void dispose()
File getItem(int position)
Returns the item in the specified position.
int getItemCount()
void insert(File item, int position)
Inserts the item at the specified position.
void onBindViewHolder(SavedSignatureAdapter.ViewHolder holder, int position)
SavedSignatureAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType)
boolean remove(File item)
Removes the item.
File removeAt(int position)
Removes the item at the specified position.
void setSignatures(List<File> signatureFiles)
void updateSpanCount(int count)
Updates span count.
[Expand]
Inherited Methods
From class com.pdftron.pdf.widget.recyclerview.SimpleRecyclerViewAdapter
From class java.lang.Object

Public Constructors

public SavedSignatureAdapter (Context context, ViewHolderBindListener bindListener)

Public Methods

public void add (File item)

Adds the item.

Parameters
item The item

public void dispose ()

public File getItem (int position)

Returns the item in the specified position.

Parameters
position The position
Returns
  • The item

public int getItemCount ()

public void insert (File item, int position)

Inserts the item at the specified position.

Parameters
item The item
position The position

public void onBindViewHolder (SavedSignatureAdapter.ViewHolder holder, int position)

public SavedSignatureAdapter.ViewHolder onCreateViewHolder (ViewGroup parent, int viewType)

public boolean remove (File item)

Removes the item.

Parameters
item The item
Returns
  • True if the item is removed

public File removeAt (int position)

Removes the item at the specified position.

Parameters
position The position
Returns
  • The removed item

public void setSignatures (List<File> signatureFiles)

public void updateSpanCount (int count)

Updates span count.

Parameters
count The span count