Partager via


ContentResolver.RemovePeriodicSync(Account, String, Bundle) Method

Definition

Remove a periodic sync.

[Android.Runtime.Register("removePeriodicSync", "(Landroid/accounts/Account;Ljava/lang/String;Landroid/os/Bundle;)V", "")]
public static void RemovePeriodicSync (Android.Accounts.Account? account, string? authority, Android.OS.Bundle? extras);
[<Android.Runtime.Register("removePeriodicSync", "(Landroid/accounts/Account;Ljava/lang/String;Landroid/os/Bundle;)V", "")>]
static member RemovePeriodicSync : Android.Accounts.Account * string * Android.OS.Bundle -> unit

Parameters

account
Account

the account of the periodic sync to remove

authority
String

the provider of the periodic sync to remove

extras
Bundle

the extras of the periodic sync to remove

Attributes

Remarks

Remove a periodic sync. Has no affect if account, authority and extras don't match an existing periodic sync.

This method requires the caller to hold the permission android.Manifest.permission#WRITE_SYNC_SETTINGS.

Java documentation for android.content.ContentResolver.removePeriodicSync(android.accounts.Account, java.lang.String, android.os.Bundle).

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