Table of Contents

Method OnKeyUp

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

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.

public override bool OnKeyUp(Keycode keyCode, KeyEvent? e)

Parameters

keyCode Keycode

A key code that represents the button pressed, from android.view.KeyEvent.

e KeyEvent

The KeyEvent object that defines the button action.

Returns

bool

To be added.

Remarks

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.

Key presses in software keyboards will generally NOT trigger this listener, although some may elect to do so in some situations. Do not rely on this to catch software key presses.

Java documentation for

android.view.View.onKeyUp(int, android.view.KeyEvent)
.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.