ContentResolver.SetIsSyncable(Account, String, Int32) Method

Definition

Set whether this account/provider is syncable.

[Android.Runtime.Register("setIsSyncable", "(Landroid/accounts/Account;Ljava/lang/String;I)V", "")]
public static void SetIsSyncable (Android.Accounts.Account? account, string? authority, int syncable);
[<Android.Runtime.Register("setIsSyncable", "(Landroid/accounts/Account;Ljava/lang/String;I)V", "")>]
static member SetIsSyncable : Android.Accounts.Account * string * int -> unit

Parameters

account
Account
authority
String
syncable
Int32

>0 denotes syncable, 0 means not syncable, <0 means unknown

Attributes

Remarks

Set whether this account/provider is syncable.

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

Java documentation for android.content.ContentResolver.setIsSyncable(android.accounts.Account, java.lang.String, int).

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