FREE TRIAL

|

☀
☾

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

TVisuals

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

Exceptions
Type Condition
System.ArgumentNullException

If eventHandler is null.

See Also
Gesture.OnClick
Gesture.OnPress
Gesture.OnRelease
Gesture.OnHover
Gesture.OnUnhover
Gesture.OnScroll
Gesture.OnMove
Gesture.OnDrag
Gesture.OnCancel
☀
☾
In This Article
Legal EmailContact Github
Copyright © 2022 Supernova Technologies, LLC