FREE TRIAL

|

☀
☾

ListView.RemoveDataUnbinder

RemoveDataUnbinder<TData, TVisuals>(UIEventHandler<Data.OnUnbind<TData>, TVisuals, int>)

Unsubscribe from an indexed Data.OnUnbind<TData> event previously subscribed to via AddDataUnbinder<TData, TVisuals>(UIEventHandler<Data.OnUnbind<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 RemoveDataUnbinder<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 to remove from the subscription list

Type Parameters
Name Description
TData

The data type to bind to the corresponding TVisuals type

TVisuals

The type of ItemVisuals, configured on a list item prefab, to target.

Exceptions
Type Condition
System.ArgumentNullException

If eventHandler is null.

☀
☾
In This Article
Legal EmailContact Github
Copyright © 2022 Supernova Technologies, LLC