ListView.AddGestureHandler
AddGestureHandler<TEvent, TVisuals>(UIEventHandler<TEvent, TVisuals, int>)
Subscribe to an indexed IGestureEvent event on this ListView's set of list items
Declaration
public void AddGestureHandler<TEvent, TVisuals>(UIEventHandler<TEvent, TVisuals, int> eventHandler)
where TEvent : struct, IGestureEvent where TVisuals : ItemVisuals
Parameters
Type | Name | Description |
---|---|---|
UIEventHandler<TEvent, TVisuals, int> | eventHandler | The callback invoked when the event fires |
Type Parameters
Name | Description |
---|---|
TEvent | The type of gesture event to handle for list items of type |
TVisuals | The type of ItemVisuals, configured on a list item prefab, to target. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |