Language

PointerGestureRecognizer.SendPointerPressed Method

Definition

Executes the associated command and raises the PointerPressed event.

public void SendPointerPressed(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.SendPointerPressed : Microsoft.Maui.Controls.View * Func<Microsoft.Maui.IElement, Nullable<Microsoft.Maui.Graphics.Point>> * Microsoft.Maui.Controls.PlatformPointerEventArgs * Microsoft.Maui.Controls.ButtonsMask -> unit
Public Sub SendPointerPressed (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 on which the pointer was pressed.

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