Class RecycleAdapter
Definition
- Assembly:
- Tizen.NUI.Wearable.dll
[Draft] Defalt adapter for RecyclerView. Managing RecycleItem and Data for RecyclerView.
public class RecycleAdapter
- Inheritance
-
objectRecycleAdapter
Properties
View SourceData
Triggered when user called Notify().
Declaration
public List<object> Data { get; set; }
Property Value
Type | Description |
---|---|
List<><object> |
Methods
View SourceBindData(RecycleItem)
Bind data with recycler item. This function is called when RecyclerItem is used again with new data. Can update content of recycle item with new data at DataIndex of item.
Declaration
public virtual void BindData(RecycleItem item)
Parameters
Type | Name | Description |
---|---|---|
RecycleItem | item | Reused RecycleItem which needs data binding. |
CreateRecycleItem()
Create recycle item for RecyclerView. RecyclerView will make its children using this api.
Declaration
public virtual RecycleItem CreateRecycleItem()
Returns
Type | Description |
---|---|
RecycleItem | Item for RecyclerView |
Notify()
Notify when data of adapter is changed.
Declaration
public void Notify()
Events
View SourceOnDataChanged
Triggered when user called Notify().
Declaration
public event EventHandler<EventArgs> OnDataChanged
Event Type
Type | Description |
---|---|
EventHandler<><EventArgs> |