FREE TRIAL

|

☀
☾
delegate

Delegate PrefabProviderCallback<T>

A callback to provide a list item prefab to the requesting ListView or GridView which will represent the object in the data source at the given index.

Parameters
Type Name Description
T index

The index into the underlying data source of the object the provided prefab will represent

ItemView sourcePrefab

The source prefab (not an instance) for the ListView to clone or pull from the list item prefab pool

Returns
Type Description
bool

true if the caller wishes to use an instance of the provided source prefab
false if the caller wishes to have the ListView attempt to use a fallback prefab option

Type Parameters
Name Description
T

The index type of the underlying data source

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