Udostępnij za pośrednictwem


KeyEvent.ChangeFlags(KeyEvent, KeyEventFlags) Method

Definition

Create a new key event that is the same as the given one, but whose flags are replaced with the given value.

[Android.Runtime.Register("changeFlags", "(Landroid/view/KeyEvent;I)Landroid/view/KeyEvent;", "")]
public static Android.Views.KeyEvent? ChangeFlags (Android.Views.KeyEvent? e, Android.Views.KeyEventFlags flags);
[<Android.Runtime.Register("changeFlags", "(Landroid/view/KeyEvent;I)Landroid/view/KeyEvent;", "")>]
static member ChangeFlags : Android.Views.KeyEvent * Android.Views.KeyEventFlags -> Android.Views.KeyEvent

Parameters

e
KeyEvent

The existing event to be copied. This is not modified.

flags
KeyEventFlags

The new flags constant.

Returns

Attributes

Remarks

Create a new key event that is the same as the given one, but whose flags are replaced with the given value.

Java documentation for android.view.KeyEvent.changeFlags(android.view.KeyEvent, int).

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