Ir a la consola

ControllableTask

public abstract class ControllableTask extends CancellableTask<StateT>
Known Direct Subclasses
Known Indirect Subclasses

Represents an asynchronous operation that can be paused, resumed and canceled. This task also receives progress and other state change notifications.

Public Constructor Summary

Public Method Summary

abstract ControllableTask<StateT>
addOnPausedListener(Activity activity, OnPausedListener<? super StateT> listener)
Adds a listener that is called when the Task becomes paused.
abstract ControllableTask<StateT>
addOnPausedListener(OnPausedListener<? super StateT> listener)
Adds a listener that is called when the Task becomes paused.
abstract ControllableTask<StateT>
addOnPausedListener(Executor executor, OnPausedListener<? super StateT> listener)
Adds a listener that is called when the Task becomes paused.
abstract boolean
abstract boolean
pause()
Attempts to pause the task.
abstract boolean
resume()
Attempts to resume this task.

Inherited Method Summary