Share via


ContentResolver.IsSyncActive(Account, String) Method

Definition

Returns true if there is currently a sync operation for the given account or authority actively being processed.

[Android.Runtime.Register("isSyncActive", "(Landroid/accounts/Account;Ljava/lang/String;)Z", "")]
public static bool IsSyncActive (Android.Accounts.Account? account, string? authority);
[<Android.Runtime.Register("isSyncActive", "(Landroid/accounts/Account;Ljava/lang/String;)Z", "")>]
static member IsSyncActive : Android.Accounts.Account * string -> bool

Parameters

account
Account

the account whose setting we are querying

authority
String

the provider whose behavior is being queried

Returns

true if a sync is active for the given account or authority.

Attributes

Remarks

Returns true if there is currently a sync operation for the given account or authority actively being processed.

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

Java documentation for android.content.ContentResolver.isSyncActive(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