FREE TRIAL

|

☀
☾

UIBlockExtensions.RemoveGestureHandler

RemoveGestureHandler<TGesture, TVisuals>(UIBlock, UIEventHandler<TGesture, TVisuals>)

Unsubscribe from a gesture event previously subscribed to via AddGestureHandler<TGesture, TVisuals>(UIBlock, UIEventHandler<TGesture, TVisuals>).

Declaration
public static void RemoveGestureHandler<TGesture, TVisuals>(this UIBlock uiBlock, UIEventHandler<TGesture, TVisuals> gestureHandler)
    where TGesture : struct, IGestureEvent where TVisuals : ItemVisuals
Parameters
Type Name Description
UIBlock uiBlock
UIEventHandler<TGesture, TVisuals> gestureHandler

The callback to remove from the subscription list.

Type Parameters
Name Description
TGesture

The type of gesture event to handle.

TVisuals

The type to target as the event propagates. If no object of this type is in the event propogation path, the gestureHandler won't be invoked.

Exceptions
Type Condition
System.ArgumentNullException

If uiBlock or gestureHandler is null.

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