Loader.OnCancelLoad Method

Definition

Subclasses must implement this to take care of requests to #cancelLoad().

[Android.Runtime.Register("onCancelLoad", "()Z", "GetOnCancelLoadHandler")]
protected virtual bool OnCancelLoad ();
[<Android.Runtime.Register("onCancelLoad", "()Z", "GetOnCancelLoadHandler")>]
abstract member OnCancelLoad : unit -> bool
override this.OnCancelLoad : unit -> bool

Returns

Returns false if the task could not be canceled, typically because it has already completed normally, or because #startLoading() hasn't been called; returns true otherwise. When true is returned, the task is still running and the OnLoadCanceledListener will be called when the task completes.

Attributes

Remarks

Subclasses must implement this to take care of requests to #cancelLoad(). This will always be called from the process's main thread.

Java documentation for android.content.Loader.onCancelLoad().

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