ContentResolver.SetSyncAutomatically(Account, String, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set whether or not the provider is synced when it receives a network tickle.
[Android.Runtime.Register("setSyncAutomatically", "(Landroid/accounts/Account;Ljava/lang/String;Z)V", "")]
public static void SetSyncAutomatically (Android.Accounts.Account? account, string? authority, bool sync);
[<Android.Runtime.Register("setSyncAutomatically", "(Landroid/accounts/Account;Ljava/lang/String;Z)V", "")>]
static member SetSyncAutomatically : Android.Accounts.Account * string * bool -> unit
Parameters
- account
- Account
the account whose setting we are querying
- authority
- String
the provider whose behavior is being controlled
- sync
- Boolean
true if the provider should be synced when tickles are received for it
- Attributes
Remarks
Set whether or not the provider is synced when it receives a network tickle.
This method requires the caller to hold the permission android.Manifest.permission#WRITE_SYNC_SETTINGS
.
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.