Udostępnij za pośrednictwem


KeyEvent.RepeatCount Property

Definition

Retrieve the repeat count of the event.

public int RepeatCount { [Android.Runtime.Register("getRepeatCount", "()I", "")] get; }
[<get: Android.Runtime.Register("getRepeatCount", "()I", "")>]
member this.RepeatCount : int

Property Value

The number of times the key has repeated.

Attributes

Remarks

Retrieve the repeat count of the event. For key down events, this is the number of times the key has repeated with the first down starting at 0 and counting up from there. For key up events, this is always equal to zero. For multiple key events, this is the number of down/up pairs that have occurred.

Java documentation for android.view.KeyEvent.getRepeatCount().

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