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 |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |