Android Guides | Samples

Android.App.Dialog.OnKeyUp Method

A key was released.

Syntax

[Android.Runtime.Register("onKeyUp", "(ILandroid/view/KeyEvent;)Z", "GetOnKeyUp_ILandroid_view_KeyEvent_Handler")]
public virtual Boolean OnKeyUp (Keycode keyCode, KeyEvent e)

See Also

Parameters

keyCode
The value in event.getKeyCode().
e
Description of the key event.

Remarks

A key was released.

The default implementation handles KEYCODE_BACK to close the dialog.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1