Edit

Share via


ISKCanvasViewController Interface

Definition

Defines the controller interface for SKCanvasView to communicate with platform renderers.

public interface ISKCanvasViewController : Microsoft.Maui.Controls.IViewController
Derived
Implements

Remarks

This interface provides the communication channel between the cross-platform SKCanvasView control and its platform-specific renderer. It is primarily used for internal implementation and is typically not used directly by application code.

Methods

Name Description
OnPaintSurface(SKPaintSurfaceEventArgs)

Called by the renderer when the surface needs to be painted.

OnTouch(SKTouchEventArgs)

Called by the renderer when a touch event occurs.

Events

Name Description
GetCanvasSize

Occurs when the renderer needs to retrieve the current canvas size.

SurfaceInvalidated

Occurs when the control requests a surface redraw.

Applies to