KeyEvent.ChangeTimeRepeat Method

Definition

Overloads

ChangeTimeRepeat(KeyEvent, Int64, Int32)

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

ChangeTimeRepeat(KeyEvent, Int64, Int32, KeyEventFlags)

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

ChangeTimeRepeat(KeyEvent, Int64, Int32)

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

[Android.Runtime.Register("changeTimeRepeat", "(Landroid/view/KeyEvent;JI)Landroid/view/KeyEvent;", "")]
public static Android.Views.KeyEvent? ChangeTimeRepeat (Android.Views.KeyEvent? e, long eventTime, int newRepeat);
[<Android.Runtime.Register("changeTimeRepeat", "(Landroid/view/KeyEvent;JI)Landroid/view/KeyEvent;", "")>]
static member ChangeTimeRepeat : Android.Views.KeyEvent * int64 * int -> Android.Views.KeyEvent

Parameters

e
KeyEvent

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

eventTime
Int64

The new event time (in android.os.SystemClock#uptimeMillis) of the event.

newRepeat
Int32

The new repeat count of the event.

Returns

Attributes

Remarks

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

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

ChangeTimeRepeat(KeyEvent, Int64, Int32, KeyEventFlags)

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

[Android.Runtime.Register("changeTimeRepeat", "(Landroid/view/KeyEvent;JII)Landroid/view/KeyEvent;", "")]
public static Android.Views.KeyEvent? ChangeTimeRepeat (Android.Views.KeyEvent? e, long eventTime, int newRepeat, Android.Views.KeyEventFlags newFlags);
[<Android.Runtime.Register("changeTimeRepeat", "(Landroid/view/KeyEvent;JII)Landroid/view/KeyEvent;", "")>]
static member ChangeTimeRepeat : Android.Views.KeyEvent * int64 * int * Android.Views.KeyEventFlags -> Android.Views.KeyEvent

Parameters

e
KeyEvent

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

eventTime
Int64

The new event time (in android.os.SystemClock#uptimeMillis) of the event.

newRepeat
Int32

The new repeat count of the event.

newFlags
KeyEventFlags

New flags for the event, replacing the entire value in the original event.

Returns

Attributes

Remarks

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

Java documentation for android.view.KeyEvent.changeTimeRepeat(android.view.KeyEvent, long, int, 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