com.android.repository.api
Interface ProgressRunner

All Known Implementing Classes:
FakeProgressRunner

public interface ProgressRunner

An interface for facilities that can run tasks, synchronously or asynchronously, and allow them to show their progress using a ProgressIndicator.


Nested Class Summary
static interface ProgressRunner.ProgressRunnable
          Interface for tasks that can show their progress using a ProgressIndicator.
 
Method Summary
 void runAsyncWithProgress(ProgressRunner.ProgressRunnable r)
          Runs a task synchronously.
 void runSyncWithoutProgress(java.lang.Runnable r)
          Runs a ProgressRunner.ProgressRunnable synchronously.
 void runSyncWithProgress(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 a ProgressRunner.ProgressRunnable synchronously. Useful if e.g. it must be run on a certain thread.