Udostępnij za pośrednictwem


AsyncTaskLoader.OnCanceled(Object) Method

Definition

Called if the task was canceled before it was completed.

[Android.Runtime.Register("onCanceled", "(Ljava/lang/Object;)V", "GetOnCanceled_Ljava_lang_Object_Handler")]
public virtual void OnCanceled (Java.Lang.Object? data);
[<Android.Runtime.Register("onCanceled", "(Ljava/lang/Object;)V", "GetOnCanceled_Ljava_lang_Object_Handler")>]
abstract member OnCanceled : Java.Lang.Object -> unit
override this.OnCanceled : Java.Lang.Object -> unit

Parameters

data
Object

The value that was returned by #loadInBackground, or null if the task threw OperationCanceledException.

Attributes

Remarks

Called if the task was canceled before it was completed. Gives the class a chance to clean up post-cancellation and to properly dispose of the result.

Java documentation for android.content.AsyncTaskLoader.onCanceled(D).

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