com.android.ddmlib
Interface SyncService.ISyncProgressMonitor

Enclosing class:
SyncService

public static interface SyncService.ISyncProgressMonitor

Classes which implement this interface provide methods that deal with displaying transfer progress.


Method Summary
 void advance(int work)
          Sent when some progress have been made.
 boolean isCanceled()
          Sent to query for possible cancellation.
 void start(int totalWork)
          Sent when the transfer starts
 void startSubTask(String name)
          Sent when a sub task is started.
 void stop()
          Sent when the transfer is finished or interrupted.
 

Method Detail

start

void start(int totalWork)
Sent when the transfer starts

Parameters:
totalWork - the total amount of work.

stop

void stop()
Sent when the transfer is finished or interrupted.


isCanceled

boolean isCanceled()
Sent to query for possible cancellation.

Returns:
true if the transfer should be stopped.

startSubTask

void startSubTask(String name)
Sent when a sub task is started.

Parameters:
name - the name of the sub task.

advance

void advance(int work)
Sent when some progress have been made.

Parameters:
work - the amount of work done.


Copyright © 2008-2012. All Rights Reserved.