Share via


ContentResolver.GetIsSyncable(Account, String) Method

Definition

Check if this account/provider is syncable.

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

Parameters

account
Account
authority
String

Returns

>0 if it is syncable, 0 if not, and <0 if the state isn't known yet.

Attributes

Remarks

Check if this account/provider is syncable.

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

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

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