ContentResolver.IsSyncPending(Account, String) 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.
Return true if the pending status is true of any matching authorities.
[Android.Runtime.Register("isSyncPending", "(Landroid/accounts/Account;Ljava/lang/String;)Z", "")]
public static bool IsSyncPending (Android.Accounts.Account? account, string? authority);
[<Android.Runtime.Register("isSyncPending", "(Landroid/accounts/Account;Ljava/lang/String;)Z", "")>]
static member IsSyncPending : 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 there is a pending sync with the matching account and authority
- Attributes
Remarks
Return true if the pending status is true of any matching authorities.
This method requires the caller to hold the permission android.Manifest.permission#READ_SYNC_STATS
.
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.