invoke

operator fun invoke(onFirstPress: () -> Unit, onSecondPress: () -> Unit)

Runs onFirstPress for the first press and onSecondPress when called again within the configured confirmation window.