次の方法で共有


ContentResolver.GetSyncAutomatically(Account, String) Method

Definition

Check if the provider should be synced when a network tickle is received

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

Parameters

account
Account

the account whose setting we are querying

authority
String

the provider whose setting we are querying

Returns

true if the provider should be synced when a network tickle is received

Attributes

Remarks

Check if the provider should be synced when a network tickle is received

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

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