ListView.AddDataUnbinder
AddDataUnbinder<TData, TVisuals>(UIEventHandler<Data.OnUnbind<TData>, TVisuals, int>)
Subscribe to an indexed Data.OnUnbind<TData> event on this ListView's set of list items
Remarks
TData
should match or be derived from the underlying data source element type, the type parameter passed into SetDataSource<T>(IList<T>).
Declaration
public void AddDataUnbinder<TData, TVisuals>(UIEventHandler<Data.OnUnbind<TData>, TVisuals, int> eventHandler)
where TVisuals : ItemVisuals
Parameters
Type | Name | Description |
---|---|---|
UIEventHandler<Data.OnUnbind<TData>, TVisuals, int> | eventHandler | The callback invoked when the event fires |
Type Parameters
Name | Description |
---|---|
TData | The data type to unbind from the corresponding |
TVisuals | The type of ItemVisuals, configured on a list item prefab, to target. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |