Table of Contents

Class TouchEventDispatchExtensions

Namespace
Bunit
Assembly
Bunit.Web.dll

Pointer event dispatch helper extension methods.

public static class TouchEventDispatchExtensions
Inheritance
TouchEventDispatchExtensions
Inherited Members

Methods

TouchCancel(IElement, TouchEventArgs)

Raises the @ontouchcancel event on element, passing the provided eventArgs to the event handler.

public static void TouchCancel(this IElement element, TouchEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs TouchEventArgs

The event arguments to pass to the event handler.

TouchCancel(IElement, long, TouchPoint[]?, TouchPoint[]?, TouchPoint[]?, bool, bool, bool, bool, string?)

Raises the @ontouchcancel event on element, passing the provided properties to the event handler via a TouchEventArgs object.

public static void TouchCancel(this IElement element, long detail = 0, TouchPoint[]? touches = null, TouchPoint[]? targetTouches = null, TouchPoint[]? changedTouches = null, bool ctrlKey = false, bool shiftKey = false, bool altKey = false, bool metaKey = false, string? type = null)

Parameters

element IElement

The element to raise the event on.

detail long

A count of consecutive clicks that happened in a short amount of time, incremented by one.

touches TouchPoint[]

A list of TouchPoint for every point of contact currently touching the surface.

targetTouches TouchPoint[]

A list of TouchPoint for every point of contact that is touching the surface and started on the element that is the target of the current event.

changedTouches TouchPoint[]

A list of Touches for every point of contact which contributed to the event. For the touchstart event this must be a list of the touch points that just became active with the current event. For the touchmove event this must be a list of the touch points that have moved since the last event. For the touchend and touchcancel events this must be a list of the touch points that have just been removed from the surface.

ctrlKey bool

true if the control key was down when the event was fired. false otherwise.

shiftKey bool

true if the shift key was down when the event was fired. false otherwise.

altKey bool

true if the alt key was down when the event was fired. false otherwise.

metaKey bool

true if the meta key was down when the event was fired. false otherwise.

type string

Gets or sets the type of the event.

TouchCancelAsync(IElement, TouchEventArgs)

Raises the @ontouchcancel event on element, passing the provided eventArgs to the event handler.

public static Task TouchCancelAsync(this IElement element, TouchEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs TouchEventArgs

The event arguments to pass to the event handler.

Returns

Task

A task that completes when the event handler is done.

TouchEnd(IElement, TouchEventArgs)

Raises the @ontouchend event on element, passing the provided eventArgs to the event handler.

public static void TouchEnd(this IElement element, TouchEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs TouchEventArgs

The event arguments to pass to the event handler.

TouchEnd(IElement, long, TouchPoint[]?, TouchPoint[]?, TouchPoint[]?, bool, bool, bool, bool, string?)

Raises the @ontouchend event on element, passing the provided properties to the event handler via a TouchEventArgs object.

public static void TouchEnd(this IElement element, long detail = 0, TouchPoint[]? touches = null, TouchPoint[]? targetTouches = null, TouchPoint[]? changedTouches = null, bool ctrlKey = false, bool shiftKey = false, bool altKey = false, bool metaKey = false, string? type = null)

Parameters

element IElement

The element to raise the event on.

detail long

A count of consecutive clicks that happened in a short amount of time, incremented by one.

touches TouchPoint[]

A list of TouchPoint for every point of contact currently touching the surface.

targetTouches TouchPoint[]

A list of TouchPoint for every point of contact that is touching the surface and started on the element that is the target of the current event.

changedTouches TouchPoint[]

A list of Touches for every point of contact which contributed to the event. For the touchstart event this must be a list of the touch points that just became active with the current event. For the touchmove event this must be a list of the touch points that have moved since the last event. For the touchend and touchcancel events this must be a list of the touch points that have just been removed from the surface.

ctrlKey bool

true if the control key was down when the event was fired. false otherwise.

shiftKey bool

true if the shift key was down when the event was fired. false otherwise.

altKey bool

true if the alt key was down when the event was fired. false otherwise.

metaKey bool

true if the meta key was down when the event was fired. false otherwise.

type string

Gets or sets the type of the event.

TouchEndAsync(IElement, TouchEventArgs)

Raises the @ontouchend event on element, passing the provided eventArgs to the event handler.

public static Task TouchEndAsync(this IElement element, TouchEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs TouchEventArgs

The event arguments to pass to the event handler.

Returns

Task

A task that completes when the event handler is done.

TouchEnter(IElement, TouchEventArgs)

Raises the @ontouchenter event on element, passing the provided eventArgs to the event handler.

public static void TouchEnter(this IElement element, TouchEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs TouchEventArgs

The event arguments to pass to the event handler.

TouchEnter(IElement, long, TouchPoint[]?, TouchPoint[]?, TouchPoint[]?, bool, bool, bool, bool, string?)

Raises the @ontouchenter event on element, passing the provided properties to the event handler via a TouchEventArgs object.

public static void TouchEnter(this IElement element, long detail = 0, TouchPoint[]? touches = null, TouchPoint[]? targetTouches = null, TouchPoint[]? changedTouches = null, bool ctrlKey = false, bool shiftKey = false, bool altKey = false, bool metaKey = false, string? type = null)

Parameters

element IElement

The element to raise the event on.

detail long

A count of consecutive clicks that happened in a short amount of time, incremented by one.

touches TouchPoint[]

A list of TouchPoint for every point of contact currently touching the surface.

targetTouches TouchPoint[]

A list of TouchPoint for every point of contact that is touching the surface and started on the element that is the target of the current event.

changedTouches TouchPoint[]

A list of Touches for every point of contact which contributed to the event. For the touchstart event this must be a list of the touch points that just became active with the current event. For the touchmove event this must be a list of the touch points that have moved since the last event. For the touchend and touchcancel events this must be a list of the touch points that have just been removed from the surface.

ctrlKey bool

true if the control key was down when the event was fired. false otherwise.

shiftKey bool

true if the shift key was down when the event was fired. false otherwise.

altKey bool

true if the alt key was down when the event was fired. false otherwise.

metaKey bool

true if the meta key was down when the event was fired. false otherwise.

type string

Gets or sets the type of the event.

TouchEnterAsync(IElement, TouchEventArgs)

Raises the @ontouchenter event on element, passing the provided eventArgs to the event handler.

public static Task TouchEnterAsync(this IElement element, TouchEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs TouchEventArgs

The event arguments to pass to the event handler.

Returns

Task

A task that completes when the event handler is done.

TouchLeave(IElement, TouchEventArgs)

Raises the @ontouchleave event on element, passing the provided eventArgs to the event handler.

public static void TouchLeave(this IElement element, TouchEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs TouchEventArgs

The event arguments to pass to the event handler.

TouchLeave(IElement, long, TouchPoint[]?, TouchPoint[]?, TouchPoint[]?, bool, bool, bool, bool, string?)

Raises the @ontouchleave event on element, passing the provided properties to the event handler via a TouchEventArgs object.

public static void TouchLeave(this IElement element, long detail = 0, TouchPoint[]? touches = null, TouchPoint[]? targetTouches = null, TouchPoint[]? changedTouches = null, bool ctrlKey = false, bool shiftKey = false, bool altKey = false, bool metaKey = false, string? type = null)

Parameters

element IElement

The element to raise the event on.

detail long

A count of consecutive clicks that happened in a short amount of time, incremented by one.

touches TouchPoint[]

A list of TouchPoint for every point of contact currently touching the surface.

targetTouches TouchPoint[]

A list of TouchPoint for every point of contact that is touching the surface and started on the element that is the target of the current event.

changedTouches TouchPoint[]

A list of Touches for every point of contact which contributed to the event. For the touchstart event this must be a list of the touch points that just became active with the current event. For the touchmove event this must be a list of the touch points that have moved since the last event. For the touchend and touchcancel events this must be a list of the touch points that have just been removed from the surface.

ctrlKey bool

true if the control key was down when the event was fired. false otherwise.

shiftKey bool

true if the shift key was down when the event was fired. false otherwise.

altKey bool

true if the alt key was down when the event was fired. false otherwise.

metaKey bool

true if the meta key was down when the event was fired. false otherwise.

type string

Gets or sets the type of the event.

TouchLeaveAsync(IElement, TouchEventArgs)

Raises the @ontouchleave event on element, passing the provided eventArgs to the event handler.

public static Task TouchLeaveAsync(this IElement element, TouchEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs TouchEventArgs

The event arguments to pass to the event handler.

Returns

Task

A task that completes when the event handler is done.

TouchMove(IElement, TouchEventArgs)

Raises the @ontouchmove event on element, passing the provided eventArgs to the event handler.

public static void TouchMove(this IElement element, TouchEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs TouchEventArgs

The event arguments to pass to the event handler.

TouchMove(IElement, long, TouchPoint[]?, TouchPoint[]?, TouchPoint[]?, bool, bool, bool, bool, string?)

Raises the @ontouchmove event on element, passing the provided properties to the event handler via a TouchEventArgs object.

public static void TouchMove(this IElement element, long detail = 0, TouchPoint[]? touches = null, TouchPoint[]? targetTouches = null, TouchPoint[]? changedTouches = null, bool ctrlKey = false, bool shiftKey = false, bool altKey = false, bool metaKey = false, string? type = null)

Parameters

element IElement

The element to raise the event on.

detail long

A count of consecutive clicks that happened in a short amount of time, incremented by one.

touches TouchPoint[]

A list of TouchPoint for every point of contact currently touching the surface.

targetTouches TouchPoint[]

A list of TouchPoint for every point of contact that is touching the surface and started on the element that is the target of the current event.

changedTouches TouchPoint[]

A list of Touches for every point of contact which contributed to the event. For the touchstart event this must be a list of the touch points that just became active with the current event. For the touchmove event this must be a list of the touch points that have moved since the last event. For the touchend and touchcancel events this must be a list of the touch points that have just been removed from the surface.

ctrlKey bool

true if the control key was down when the event was fired. false otherwise.

shiftKey bool

true if the shift key was down when the event was fired. false otherwise.

altKey bool

true if the alt key was down when the event was fired. false otherwise.

metaKey bool

true if the meta key was down when the event was fired. false otherwise.

type string

Gets or sets the type of the event.

TouchMoveAsync(IElement, TouchEventArgs)

Raises the @ontouchmove event on element, passing the provided eventArgs to the event handler.

public static Task TouchMoveAsync(this IElement element, TouchEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs TouchEventArgs

The event arguments to pass to the event handler.

Returns

Task

A task that completes when the event handler is done.

TouchStart(IElement, TouchEventArgs)

Raises the @ontouchstart event on element, passing the provided eventArgs to the event handler.

public static void TouchStart(this IElement element, TouchEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs TouchEventArgs

The event arguments to pass to the event handler.

TouchStart(IElement, long, TouchPoint[]?, TouchPoint[]?, TouchPoint[]?, bool, bool, bool, bool, string?)

Raises the @ontouchstart event on element, passing the provided properties to the event handler via a TouchEventArgs object.

public static void TouchStart(this IElement element, long detail = 0, TouchPoint[]? touches = null, TouchPoint[]? targetTouches = null, TouchPoint[]? changedTouches = null, bool ctrlKey = false, bool shiftKey = false, bool altKey = false, bool metaKey = false, string? type = null)

Parameters

element IElement

The element to raise the event on.

detail long

A count of consecutive clicks that happened in a short amount of time, incremented by one.

touches TouchPoint[]

A list of TouchPoint for every point of contact currently touching the surface.

targetTouches TouchPoint[]

A list of TouchPoint for every point of contact that is touching the surface and started on the element that is the target of the current event.

changedTouches TouchPoint[]

A list of Touches for every point of contact which contributed to the event. For the touchstart event this must be a list of the touch points that just became active with the current event. For the touchmove event this must be a list of the touch points that have moved since the last event. For the touchend and touchcancel events this must be a list of the touch points that have just been removed from the surface.

ctrlKey bool

true if the control key was down when the event was fired. false otherwise.

shiftKey bool

true if the shift key was down when the event was fired. false otherwise.

altKey bool

true if the alt key was down when the event was fired. false otherwise.

metaKey bool

true if the meta key was down when the event was fired. false otherwise.

type string

Gets or sets the type of the event.

TouchStartAsync(IElement, TouchEventArgs)

Raises the @ontouchstart event on element, passing the provided eventArgs to the event handler.

public static Task TouchStartAsync(this IElement element, TouchEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs TouchEventArgs

The event arguments to pass to the event handler.

Returns

Task

A task that completes when the event handler is done.

.NET Foundation

Supported by the .NET Foundation.