Enabled

class Enabled(val maxDelayMillis: Long = 500, val minDelayMillis: Long = 5, val delayDecayFactor: Float = 0.15f) : RepeatingButton

repeating button clicks on long press are enabled

Parameters

maxDelayMillis

the maximum delay between two consecutive button clicks emulated by a long press

minDelayMillis

the minimum delay between two consecutive button clicks emulated by a long press

delayDecayFactor

the increase factor of the initial dalay (=minDelayMillis) to the maximum delay (=maxDelayMillis) after each emulated button press

Constructors

Link copied to clipboard
constructor(maxDelayMillis: Long = 500, minDelayMillis: Long = 5, delayDecayFactor: Float = 0.15f)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard