Package com.android.repository.api
Interface ProgressRunner
-
- All Known Implementing Classes:
RepoManager.DummyProgressRunner
public interface ProgressRunnerAn interface for facilities that can run tasks, synchronously or asynchronously, and allow them to show their progress using aProgressIndicator.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceProgressRunner.ProgressRunnableInterface for tasks that can show their progress using aProgressIndicator.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrunAsyncWithProgress(ProgressRunner.ProgressRunnable r)Runs a task synchronously.voidrunSyncWithoutProgress(java.lang.Runnable r)Runs aRunnablesynchronously.voidrunSyncWithProgress(ProgressRunner.ProgressRunnable r)Runs a task asynchronously.
-
-
-
Method Detail
-
runAsyncWithProgress
void runAsyncWithProgress(@NonNull ProgressRunner.ProgressRunnable r)Runs a task synchronously.
-
runSyncWithProgress
void runSyncWithProgress(@NonNull ProgressRunner.ProgressRunnable r)Runs a task asynchronously.
-
runSyncWithoutProgress
void runSyncWithoutProgress(@NonNull java.lang.Runnable r)Runs aRunnablesynchronously. Useful if e.g. it must be run on a certain thread.
-
-