public class ProgressSpinnerScheduler
extends java.lang.Object
Purpose of this scheduler : When a user kicks off a background operation if the operation takes a very short time (like parsing a json files) the progress spinner is shown and gone for a few milliseconds which gives a flickering effect. To avoid this effect this scheduler wait for 0.5 sec before displaying the spinner, then if background operation is still running after 0.5 sec we show the spinner for a minimum of 1 sec.
Note: a transparent layer is applied first to avoid the user from clicking any views twice.
| Constructor and Description |
|---|
ProgressSpinnerScheduler(com.yoti.mobile.android.common.ui.widgets.progress.ProgressSpinnerScheduler.Listener listener,
android.os.Handler handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
startProgress() |
void |
stopProgress() |
void |
stopProgressImmediate() |