FREE TRIAL

|

☀
☾

ListView.AddPrefabProvider

AddPrefabProvider<TData>(PrefabProviderCallback<int>)

Register a PrefabProviderCallback<T> for a particular data type in the data source, TData.

Remarks

Allows the caller to manually provide the prefab to use for a given object in the data source. Useful for when the
caller wants to bind multiple list item prefab types to a single data type in the data source, TData, or if the caller
wants to bypass the serialized set of list item prefabs.

Declaration
public void AddPrefabProvider<TData>(PrefabProviderCallback<int> prefabProvider)
Parameters
Type Name Description
PrefabProviderCallback<int> prefabProvider

The callback that will be invoked before loading a list item for data source element type TData

Type Parameters
Name Description
TData

The the list element type of the data source (or a derived type)

Exceptions
Type Condition
System.ArgumentNullException

If prefabProvider is null.

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