SelectionExample Class |
Namespace: frame8.ScrollRectItemsAdapter.SelectionExample
public class SelectionExample : GridAdapter<MyGridParams, MyCellViewsHolder>, LongClickableItemIItemLongClickListener, ExpandCollapseOnClickISizeChangesHandler, ILazyListSimpleDataManager<BasicModel>
The SelectionExample type exposes the following members.
| Name | Description | |
|---|---|---|
| SelectionExample |
| Name | Description | |
|---|---|---|
| Awake | (Overrides SRIATParams, TItemViewsHolderAwake.) | |
| ChangeItemsCount | Overridden in order to convert the cellsCount to groupsCount before passing it to the base's implementation (Overrides GridAdapterTParams, TCellVHChangeItemsCount(ItemCountChangeMode, Int32, Int32, Boolean, Boolean).) | |
| CreateViewsHolder | Creates the Group viewsholder which instantiates the group prefab using the provided params in [!:ScrollRectItemsAdapter8<TParams, TItemViewsHolder>.Init(TParams)] (Overrides GridAdapterTParams, TCellVHCreateViewsHolder(Int32).) | |
| HandleSizeChangeRequest | ||
| OnBeforeRecycleOrDisableCellViewsHolder | The only important callback for inheritors. It provides cell's views holder which has just become visible and whose views should be updated from its corresponding data model. viewsHolder.ItemIndex(ItemIndex) can be used to know what data model is associated with. (Overrides GridAdapterTParams, TCellVHOnBeforeRecycleOrDisableCellViewsHolder(TCellVH, Int32).) | |
| OnExpandedStateChanged | ||
| OnItemLongClicked | ||
| Refresh | contentPanelEndEdgeStationary is overridden by the corresponding setting in the drawer. This is because the ILazyListSimpleDataManagerTItem calls refresh after any data modification, but it can't know about the drawer panel settings, since it calls the parameterless version of Refresh(), which calls this version | |
| Start | (Overrides SRIATParams, TItemViewsHolderStart.) | |
| Update | (Overrides SRIATParams, TItemViewsHolderUpdate.) | |
| UpdateCellViewsHolder | Called when a cell becomes visible (Overrides GridAdapterTParams, TCellVHUpdateCellViewsHolder(TCellVH).) |
| Name | Description | |
|---|---|---|
| LazyAddItemsBasicModel | (Defined by ISimpleDataManagerExtensions.) | |
| LazyClearItemsBasicModel | (Defined by ISimpleDataManagerExtensions.) | |
| LazyGetItemBasicModel | (Defined by ISimpleDataManagerExtensions.) | |
| LazyInsertItemsBasicModel | (Defined by ISimpleDataManagerExtensions.) | |
| LazyRemoveItemAtBasicModel | (Defined by ISimpleDataManagerExtensions.) | |
| LazyRemoveItemsBasicModel | (Defined by ISimpleDataManagerExtensions.) | |
| LazySetNewItemsBasicModel | (Defined by ISimpleDataManagerExtensions.) |