Interface BackgroundTask
-
- All Known Implementing Classes:
BackgroundTaskImpl
public interface BackgroundTaskInterface describes a cancelable task started with BackgroundTaskManager. Such task can report its progress and can be found by ID.- See Also:
BackgroundTaskManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatgetFraction()FuturegetFuture()StringgetId()Task identifier, which was used when task were createdStringgetProgressText()Get current progress text, which was set by ActivityProgress#setProgressTextbooleanisDone()
-
-
-
Method Detail
-
getId
String getId()
Task identifier, which was used when task were created- Returns:
- see above
-
getProgressText
String getProgressText()
Get current progress text, which was set by ActivityProgress#setProgressText- Returns:
- see above
-
getFraction
float getFraction()
- Returns:
- completion percentage, see ActivityProgress#setFraction
-
getFuture
Future getFuture()
- Returns:
- future object, associated with the given task
-
isDone
boolean isDone()
- Returns:
- true if task has finished or canceled
-
-