共用方式為


ContentResolver.CurrentSync 屬性

定義

警告

deprecated

如果同步處理作用中傳回其相關信息,則傳回 null。

[System.Obsolete("deprecated")]
public static Android.Content.SyncInfo? CurrentSync { [Android.Runtime.Register("getCurrentSync", "()Landroid/content/SyncInfo;", "")] get; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("getCurrentSync", "()Landroid/content/SyncInfo;", "")>]
static member CurrentSync : Android.Content.SyncInfo

屬性值

目前使用中同步處理的 SyncInfo,如果目前沒有作用中,則為 Null。

屬性

備註

如果同步處理作用中傳回其相關信息,則傳回 null。

這個方法需要呼叫端保留權限 android.Manifest.permission#READ_SYNC_STATS

已取代這個成員。 由於現在支援多個並行同步處理,因此您應該使用 #getCurrentSyncs() 來取得目前同步處理的準確清單。 這個方法會從目前同步處理清單中傳回第一個專案,如果沒有,則傳回 null。

android.content.ContentResolver.getCurrentSync()Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於