FREE TRIAL

|

☀
☾

ListView.AddDataBinder

AddDataBinder<TData, TVisuals>(UIEventHandler<Data.OnBind<TData>, TVisuals, int>)

Subscribe to an indexed Data.OnBind<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 AddDataBinder<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 invoked when the event fires

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