Compartilhar via


AsyncTask.IsCancelled Property

Definition

Returns true if this task was cancelled before it completed normally.

public bool IsCancelled { [Android.Runtime.Register("isCancelled", "()Z", "")] get; }
[<get: Android.Runtime.Register("isCancelled", "()Z", "")>]
member this.IsCancelled : bool

Property Value

true if task was cancelled before it completed

Attributes

Remarks

Returns true if this task was cancelled before it completed normally. If you are calling #cancel(boolean) on the task, the value returned by this method should be checked periodically from #doInBackground(Object[]) to end the task as soon as possible.

Java documentation for android.os.AsyncTask.isCancelled().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to