Udostępnij za pośrednictwem


AsyncTaskLoader.CancelLoadInBackground Method

Definition

Called on the main thread to abort a load in progress.

[Android.Runtime.Register("cancelLoadInBackground", "()V", "GetCancelLoadInBackgroundHandler")]
public virtual void CancelLoadInBackground ();
[<Android.Runtime.Register("cancelLoadInBackground", "()V", "GetCancelLoadInBackgroundHandler")>]
abstract member CancelLoadInBackground : unit -> unit
override this.CancelLoadInBackground : unit -> unit
Attributes

Remarks

Called on the main thread to abort a load in progress.

Override this method to abort the current invocation of #loadInBackground that is running in the background on a worker thread.

This method should do nothing if #loadInBackground has not started running or if it has already finished.

Java documentation for android.content.AsyncTaskLoader.cancelLoadInBackground().

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

See also