Android Guides | Samples

Android.App.Dialog.TakeKeyEvents Method

Request that key events come to this dialog.

Syntax

[Android.Runtime.Register("takeKeyEvents", "(Z)V", "GetTakeKeyEvents_ZHandler")]
public virtual Void TakeKeyEvents (Boolean get)

See Also

Parameters

get
true if the dialog should receive key events, false otherwise

Remarks

Request that key events come to this dialog. Use this if your dialog has no views with focus, but the dialog still wants a chance to process key events.

[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