ListView.RemoveDataBinder
RemoveDataBinder<TData, TVisuals>(UIEventHandler<Data.OnBind<TData>, TVisuals, int>)
Unsubscribe from an indexed Data.OnBind<TData> event previously subscribed to via AddDataBinder<TData, TVisuals>(UIEventHandler<Data.OnBind<TData>, TVisuals, Int32>)
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 RemoveDataBinder<TData, TVisuals>(UIEventHandler<Data.OnBind<TData>, TVisuals, int> eventHandler)
where TVisuals : ItemVisuals
Parameters
Type | Name | Description |
---|---|---|
UIEventHandler<Data.OnBind<TData>, TVisuals, int> | eventHandler | The callback to remove from the subscription list |
Type Parameters
Name | Description |
---|---|
TData | The data type to bind to the corresponding |
TVisuals | The type of ItemVisuals, configured on a list item prefab, to target. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |