ContentResolver.IsSyncPending(Account, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
如果挂起状态为任何匹配引文的 true,则返回 true。
[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
参数
- account
- Account
正在查询其设置的帐户
- authority
- String
正在查询其行为的提供程序
返回
如果存在与匹配帐户和颁发机构挂起的同步,则为 true
- 特性
注解
如果挂起状态为任何匹配引文的 true,则返回 true。
此方法要求调用方持有权限 android.Manifest.permission#READ_SYNC_STATS。
Java文档android.content.ContentResolver.isSyncPending(android.accounts.Account, java.lang.String)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。