Package io.scanbot.sdk.barcode
Class SuccessFrameDebouncer
-
- All Implemented Interfaces:
public final class SuccessFrameDebouncerAllows 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 LonggetInterval()final UnitsetInterval(Long interval)final Unitactivate()shouldSkip will return false until the interval will pass starting from the current moment final BooleanshouldSkip()Returns if currently all the events should be skipped final Unitreset()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
-
-
-
-