Udostępnij za pośrednictwem


ContentResolver.GetPeriodicSyncs(Account, String) Method

Definition

Get the list of information about the periodic syncs for the given account and authority.

[Android.Runtime.Register("getPeriodicSyncs", "(Landroid/accounts/Account;Ljava/lang/String;)Ljava/util/List;", "")]
public static System.Collections.Generic.IList<Android.Content.PeriodicSync>? GetPeriodicSyncs (Android.Accounts.Account? account, string? authority);
[<Android.Runtime.Register("getPeriodicSyncs", "(Landroid/accounts/Account;Ljava/lang/String;)Ljava/util/List;", "")>]
static member GetPeriodicSyncs : Android.Accounts.Account * string -> System.Collections.Generic.IList<Android.Content.PeriodicSync>

Parameters

account
Account

the account whose periodic syncs we are querying

authority
String

the provider whose periodic syncs we are querying

Returns

a list of PeriodicSync objects. This list may be empty but will never be null.

Attributes

Remarks

Get the list of information about the periodic syncs for the given account and authority.

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

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