Package io.scanbot.sdk.barcode
Class SuccessFrameDebouncer
-
- All Implemented Interfaces:
public final class SuccessFrameDebouncer
Allows to keep track of the interval between successful events
-
-
Constructor Summary
Constructors Constructor Description SuccessFrameDebouncer(Long interval)
-
Method Summary
Modifier and Type Method Description final Long
getInterval()
final Unit
setInterval(Long interval)
final Unit
activate()
shouldSkip will return false until the interval will pass starting from the current moment final Boolean
shouldSkip()
Returns if currently all the events should be skipped final Unit
reset()
Resets the current state of the SuccessFrameDebouncer -
-
Constructor Detail
-
SuccessFrameDebouncer
SuccessFrameDebouncer(Long interval)
-
-
Method Detail
-
getInterval
final Long getInterval()
-
setInterval
final Unit setInterval(Long interval)
-
activate
final Unit activate()
shouldSkip will return false until the interval will pass starting from the current moment
-
shouldSkip
final Boolean shouldSkip()
Returns if currently all the events should be skipped
-
reset
final Unit reset()
Resets the current state of the SuccessFrameDebouncer
-
-
-
-