Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 116b1a2a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Documentation for KeyEvent.getRepeatCount()"

parents 68467fa0 4fddffcc
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -2523,10 +2523,11 @@ public class KeyEvent extends InputEvent implements Parcelable {
    }

    /**
     * Retrieve the repeat count of the event.  For both key up and 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 multiple key
     * events, this is the number of down/up pairs that have occurred.
     * 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.
     *
     * @return The number of times the key has repeated.
     */