다음을 통해 공유


Dialog.TakeKeyEvents(Boolean) Method

Definition

Request that key events come to this dialog.

[Android.Runtime.Register("takeKeyEvents", "(Z)V", "GetTakeKeyEvents_ZHandler")]
public virtual void TakeKeyEvents (bool get);
[<Android.Runtime.Register("takeKeyEvents", "(Z)V", "GetTakeKeyEvents_ZHandler")>]
abstract member TakeKeyEvents : bool -> unit
override this.TakeKeyEvents : bool -> unit

Parameters

get
Boolean

true if the dialog should receive key events, false otherwise

Attributes

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.

Java documentation for android.app.Dialog.takeKeyEvents(boolean).

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.

Applies to

See also