AbstractThreadedSyncAdapter.OnSyncCanceled Method

Definition

Overloads

OnSyncCanceled()

Indicates that a sync operation has been canceled.

OnSyncCanceled(Thread)

Indicates that a sync operation has been canceled.

OnSyncCanceled()

Indicates that a sync operation has been canceled.

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

Remarks

Indicates that a sync operation has been canceled. This will be invoked on a separate thread than the sync thread and so you must consider the multi-threaded implications of the work that you do in this method.

This will only be invoked when the SyncAdapter indicates that it doesn't support parallel syncs.

Java documentation for android.content.AbstractThreadedSyncAdapter.onSyncCanceled().

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

OnSyncCanceled(Thread)

Indicates that a sync operation has been canceled.

[Android.Runtime.Register("onSyncCanceled", "(Ljava/lang/Thread;)V", "GetOnSyncCanceled_Ljava_lang_Thread_Handler")]
public virtual void OnSyncCanceled (Java.Lang.Thread? thread);
[<Android.Runtime.Register("onSyncCanceled", "(Ljava/lang/Thread;)V", "GetOnSyncCanceled_Ljava_lang_Thread_Handler")>]
abstract member OnSyncCanceled : Java.Lang.Thread -> unit
override this.OnSyncCanceled : Java.Lang.Thread -> unit

Parameters

thread
Thread

the Thread of the sync that is to be canceled.

Attributes

Remarks

Indicates that a sync operation has been canceled. This will be invoked on a separate thread than the sync thread and so you must consider the multi-threaded implications of the work that you do in this method.

This will only be invoked when the SyncAdapter indicates that it does support parallel syncs.

Java documentation for android.content.AbstractThreadedSyncAdapter.onSyncCanceled(java.lang.Thread).

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