语言

ContentResolver.GetPeriodicSyncs(Account, String) 方法

定义

获取有关给定帐户和颁发机构定期同步的信息列表。

[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>

参数

account
Account

正在查询其定期同步的帐户

authority
String

正在查询其定期同步的提供程序

返回

PeriodicSync 对象的列表。 此列表可能为空,但永远不会为 null。

特性

注解

获取有关给定帐户和颁发机构定期同步的信息列表。

此方法要求调用方持有权限 android.Manifest.permission#READ_SYNC_SETTINGS。

Java文档android.content.ContentResolver.getPeriodicSyncs(android.accounts.Account, java.lang.String)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于