ContentResolver.CurrentSync Property

Definition

Caution

deprecated

If a sync is active returns the information about it, otherwise returns 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

Property Value

the SyncInfo for the currently active sync or null if one is not active.

Attributes

Remarks

If a sync is active returns the information about it, otherwise returns null.

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

This member is deprecated. Since multiple concurrent syncs are now supported you should use #getCurrentSyncs() to get the accurate list of current syncs. This method returns the first item from the list of current syncs or null if there are none.

Java documentation for android.content.ContentResolver.getCurrentSync().

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