Language

PointerGestureRecognizer.SendPointerMoved Method

Definition

Executes the associated command and raises the PointerMoved event.

public void SendPointerMoved(Microsoft.Maui.Controls.View sender, Func<Microsoft.Maui.IElement?,Microsoft.Maui.Graphics.Point?>? getPosition, Microsoft.Maui.Controls.PlatformPointerEventArgs? platformArgs = default, Microsoft.Maui.Controls.ButtonsMask button = Microsoft.Maui.Controls.ButtonsMask.Primary);
member this.SendPointerMoved : Microsoft.Maui.Controls.View * Func<Microsoft.Maui.IElement, Nullable<Microsoft.Maui.Graphics.Point>> * Microsoft.Maui.Controls.PlatformPointerEventArgs * Microsoft.Maui.Controls.ButtonsMask -> unit
Public Sub SendPointerMoved (sender As View, getPosition As Func(Of IElement, Nullable(Of Point)), Optional platformArgs As PlatformPointerEventArgs = Nothing, Optional button As ButtonsMask = Microsoft.Maui.Controls.ButtonsMask.Primary)

Parameters

sender
View

The view within which the pointer moved.

getPosition
Func<IElement,Nullable<Point>>

A function that returns the pointer position relative to a specified element.

platformArgs
PlatformPointerEventArgs

The platform-specific data associated with the pointer event.

button
ButtonsMask

The button associated with the pointer event.

Exceptions

sender is null.

Remarks

This infrastructure method is intended for gesture platform managers.

Applies to