Table of Contents

Class PlatformView

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

Adds additional functionality to the SKCanvasView control.

public class PlatformView : SKCanvasView, Drawable.ICallback, IAccessibilityEventSource, KeyEvent.ICallback, View.IOnLongClickListener, IJavaObject, IJavaPeerable, IDisposable
Inheritance
PlatformView
Implements

Constructors

PlatformView(Context)
PlatformView(Context, IAttributeSet)
PlatformView(Context, IAttributeSet, int)

Fields

NotifyFocusChanged
NotifyKeyDown
NotifyKeyLongPress
NotifyKeyMultiple
NotifyKeyUp

Properties

HasPointerCapture

Checks pointer capture status.

IsInEditMode

Indicates whether this View is currently in edit mode.

IsInTouchMode

Returns the touch mode state associated with this view.

Methods

DispatchPointerCaptureChanged(bool)

To be added.

Initialize()
OnCapturedPointerEvent(MotionEvent?)

Implement this method to handle captured pointer events

OnCheckIsTextEditor()

Check whether the called view is a text editor, in which case it would make sense to automatically display a soft input window for it.

OnFocusChanged(bool, FocusSearchDirection, Rect?)

Called by the view system when the focus state of this view changes.

OnKeyDown(Keycode, KeyEvent?)

Default implementation of KeyEvent.Callback#onKeyDown(int, KeyEvent) KeyEvent.Callback.onKeyDown(): perform press of the view when KeyEvent#KEYCODE_DPAD_CENTER or KeyEvent#KEYCODE_ENTER is released, if the view is enabled and clickable.

OnKeyLongPress(Keycode, KeyEvent?)

Default implementation of KeyEvent.Callback#onKeyLongPress(int, KeyEvent) KeyEvent.Callback.onKeyLongPress(): always returns false (doesn't handle the event).

OnKeyMultiple(Keycode, int, KeyEvent?)

Default implementation of KeyEvent.Callback#onKeyMultiple(int, int, KeyEvent) KeyEvent.Callback.onKeyMultiple(): always returns false (doesn't handle the event).

OnKeyUp(Keycode, KeyEvent?)

Default implementation of KeyEvent.Callback#onKeyUp(int, KeyEvent) KeyEvent.Callback.onKeyUp(): perform clicking of the view when KeyEvent#KEYCODE_DPAD_CENTER, KeyEvent#KEYCODE_ENTER or KeyEvent#KEYCODE_SPACE is released.