Ir para o console

CancellableTask

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

Represents an asynchronous operation that can be canceled.

Public Constructor Summary

Public Method Summary

abstract CancellableTask<StateT>
addOnProgressListener(OnProgressListener<? super StateT> listener)
Adds a listener that is called periodically while the ControllableTask executes.
abstract CancellableTask<StateT>
addOnProgressListener(Activity activity, OnProgressListener<? super StateT> listener)
Adds a listener that is called periodically while the ControllableTask executes.
abstract CancellableTask<StateT>
addOnProgressListener(Executor executor, OnProgressListener<? super StateT> listener)
Adds a listener that is called periodically while the ControllableTask executes.
abstract boolean
cancel()
Attempts to cancel the task.
abstract boolean
abstract boolean

Inherited Method Summary