ContentResolver.IsSyncActive(Account, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果目前有正在處理中指定帳戶或授權單位的同步作業,則傳回 true。
[Android.Runtime.Register("isSyncActive", "(Landroid/accounts/Account;Ljava/lang/String;)Z", "")]
public static bool IsSyncActive (Android.Accounts.Account? account, string? authority);
[<Android.Runtime.Register("isSyncActive", "(Landroid/accounts/Account;Ljava/lang/String;)Z", "")>]
static member IsSyncActive : Android.Accounts.Account * string -> bool
參數
- account
- Account
我們正在查詢其設定的帳戶
- authority
- String
正在查詢其行為的提供者
傳回
如果指定帳戶或授權單位的同步處理作用中,則為 true。
- 屬性
備註
如果目前有正在處理中指定帳戶或授權單位的同步作業,則傳回 true。
這個方法需要呼叫端保留權限 android.Manifest.permission#READ_SYNC_STATS
。
的 android.content.ContentResolver.isSyncActive(android.accounts.Account, java.lang.String)
Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。