waitFor

open fun waitFor()

Waits for the key hold action to complete. Note this can wait indefinitely.


open fun waitFor(timeoutMs: Long): Boolean

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