Language

PointerGestureRecognizer.SendPointerEntered Method

Definition

Executes the associated command and raises the PointerEntered event.

public void SendPointerEntered(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.SendPointerEntered : Microsoft.Maui.Controls.View * Func<Microsoft.Maui.IElement, Nullable<Microsoft.Maui.Graphics.Point>> * Microsoft.Maui.Controls.PlatformPointerEventArgs * Microsoft.Maui.Controls.ButtonsMask -> unit
Public Sub SendPointerEntered (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 that the pointer entered.

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