Skip to end of metadata
Go to start of metadata

Represents adapter for recycler view.

Definition

public class RecyclerViewAdapter : Adapter, IRecyclerViewAdapter

Summary

The following table summarizes the members exposed in this class.

Public Constructors

Public Properties

EnableGrouping Gets or sets a value indicating whether grouping is enabled.
this[int] Gets the item with the specified position.
ItemBindingDescription Gets the item binding description.
ItemCount Gets the item count.
Items Gets or sets the items.
RecyclerView Gets the recycler view.
SelectedIndex Gets or sets the index of the selected.
SelectedItem Gets or sets the selected item.
SelectedItems Gets or sets the selected items.
ViewModel Gets the view model.

Public Methods

GetItemAt(IndexPath) Gets the item at specified position.
GetItemViewType(int) Gets the type of the item view at specified position.
LoadImageAsync(ImageView, object, object) Loads the image asynchronously.
OnBindViewHolder(ViewHolder, int) Called when binding the view holder.
OnCreateViewHolder(ViewGroup, int) Called when creating a view holder.
OnViewAttachedToWindow(Object) Called when view is attached to window.
OnViewDetachedFromWindow(Object) Called when view is detached from window.
SelectAll() Selects all items.

Protected Methods

Dispose(bool) Releases unmanaged and - optionally - managed resources.

Public Constructors

public RecyclerViewAdapter(Fragment fragment, RecyclerViewAdapterOptions options)

Initializes a new instance of the RecyclerViewAdapter class.

Parameters

fragment The fragment.
options The options.

Public Properties

public bool EnableGrouping { get; set; }

Gets or sets a value indicating whether grouping is enabled.

public object this[int position] { get; }

Gets the item with the specified position.

Parameters

position The position.

public ItemBindingDescription ItemBindingDescription { get; }

Gets the item binding description.

public int ItemCount { get; }

Gets the item count.

public IEnumerable Items { get; set; }

Gets or sets the items.

public RecyclerView RecyclerView { get; }

Gets the recycler view.

public int SelectedIndex { get; set; }

Gets or sets the index of the selected.

public object SelectedItem { get; set; }

Gets or sets the selected item.

public IList SelectedItems { get; set; }

Gets or sets the selected items.

public IViewModel ViewModel { get; }

Gets the view model.

Public Methods

public object GetItemAt(IndexPath indexPath)

Gets the item at specified position.

Parameters

indexPath The index path.

public int GetItemViewType(int position)

Gets the type of the item view at specified position.

Parameters

position The position.

public void LoadImageAsync(ImageView imageView, object item, object imageSource)

Loads the image asynchronously.

Parameters

imageView The image view.
item The item.
imageSource The image source.

public void OnBindViewHolder(ViewHolder viewHolder, int position)

Called when binding the view holder.

Parameters

viewHolder The view holder.
position The position.

public ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)

Called when creating a view holder.

Parameters

parent The parent.
viewType Type of the view.

public void OnViewAttachedToWindow(Object holder)

Called when view is attached to window.

Parameters

holder The holder.

public void OnViewDetachedFromWindow(Object holder)

Called when view is detached from window.

Parameters

holder The holder.

public void SelectAll()

Selects all items.

Protected Methods

protected void Dispose(bool disposing)

Releases unmanaged and - optionally - managed resources.

Parameters

disposing true to release both managed and unmanaged resources; false to release only unmanaged resources.
  • No labels