Package com.inmobi.ads.utils
Class TimeOutManager
-
- All Implemented Interfaces:
public final class TimeOutManager
-
-
Constructor Summary
Constructors Constructor Description TimeOutManager(TimeOutInformer timeOutInformer)
-
Method Summary
-
-
Constructor Detail
-
TimeOutManager
TimeOutManager(TimeOutInformer timeOutInformer)
-
-
Method Detail
-
start
@UiThread() final Boolean start(Byte timeOutScenario, Long delayInMillis)
Calling start will start counting till given timeout occurs. At given any instance there can be only one single timeOut handled. If there was any previous scheduled timeOut it will be canceled first then new one will be scheduled.
- Parameters:
timeOutScenario- the timeout scenario to startdelayInMillis- the timeout value- Returns:
trueif successfully scheduled, otherwisefalse
-
cancel
@UiThread() final Unit cancel(Byte timeOutScenario)
Calling cancel will cancel all scheduled timeOuts.
-
setTimeOutIdForTest
final static Unit setTimeOutIdForTest(Byte id)
-
-
-
-