ContentResolver.CancelSync ContentResolver.CancelSync Method

Definition

Overloads

CancelSync(SyncRequest) CancelSync(SyncRequest)

Remove the specified sync.

CancelSync(Uri) CancelSync(Uri)

Cancel any active or pending syncs that match the Uri.

CancelSync(Account, String) CancelSync(Account, String)

Cancel any active or pending syncs that match account and authority.

CancelSync(SyncRequest) CancelSync(SyncRequest)

Remove the specified sync.

[Android.Runtime.Register("cancelSync", "(Landroid/content/SyncRequest;)V", "", ApiSince=21)]
[Android.Runtime.RequiresPermission("android.permission.WRITE_SYNC_SETTINGS")]
public static void CancelSync (Android.Content.SyncRequest request);
static member CancelSync : Android.Content.SyncRequest -> unit

Parameters

request
SyncRequest SyncRequest

SyncRequest object containing information about sync to cancel.

Remarks

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.

CancelSync(Uri) CancelSync(Uri)

Warning

This API is now obsolete.

Cancel any active or pending syncs that match the Uri.

[Android.Runtime.Register("cancelSync", "(Landroid/net/Uri;)V", "GetCancelSync_Landroid_net_Uri_Handler")]
[System.Obsolete("deprecated")]
public virtual void CancelSync (Android.Net.Uri uri);
abstract member CancelSync : Android.Net.Uri -> unit
override this.CancelSync : Android.Net.Uri -> unit

Parameters

uri
Uri Uri

the uri of the provider to sync or null to sync all providers.

Remarks

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.

CancelSync(Account, String) CancelSync(Account, String)

Cancel any active or pending syncs that match account and authority.

[Android.Runtime.Register("cancelSync", "(Landroid/accounts/Account;Ljava/lang/String;)V", "", ApiSince=5)]
public static void CancelSync (Android.Accounts.Account account, string authority);
static member CancelSync : Android.Accounts.Account * string -> unit

Parameters

account
Account Account

filters the syncs that match by this account

authority
String String

filters the syncs that match by this authority

Remarks

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