Table of Contents

Method OnCanvasTouch

Namespace
Alternet.UI
Assembly
Alternet.UI.Maui.dll

OnCanvasTouch(object?, SKTouchEventArgs)

Handles touch events on the canvas and raises the corresponding touch event on the associated control.

protected virtual void OnCanvasTouch(object? sender, SKTouchEventArgs e)

Parameters

sender object

The source of the touch event, typically the canvas.

e SKTouchEventArgs

The touch event arguments containing details about the touch action.

Remarks

This method processes touch actions such as Pressed and converts them into platform-independent touch events. If the associated control is not null, the touch event is raised on the control. On Android, wheel change actions are handled at the platform level and are ignored by this method.