wait For
void waitFor()
Content copied to clipboard
Waits for the key hold action to complete. Note this can wait indefinitely.
boolean waitFor(long timeoutMs)
Content copied to clipboard
Waits for the key hold action to complete up until the specified timeout.
Return
true if the key hold action ended, false if the timeout was reached