KeyEvent.ChangeAction(KeyEvent, KeyEventActions) Method

Definition

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

[Android.Runtime.Register("changeAction", "(Landroid/view/KeyEvent;I)Landroid/view/KeyEvent;", "")]
public static Android.Views.KeyEvent? ChangeAction (Android.Views.KeyEvent? e, Android.Views.KeyEventActions action);
[<Android.Runtime.Register("changeAction", "(Landroid/view/KeyEvent;I)Landroid/view/KeyEvent;", "")>]
static member ChangeAction : Android.Views.KeyEvent * Android.Views.KeyEventActions -> Android.Views.KeyEvent

Parameters

e
KeyEvent

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

action
KeyEventActions

The new action code of the event.

Returns

Attributes

Remarks

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

Java documentation for android.view.KeyEvent.changeAction(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