Udostępnij za pośrednictwem


ContentResolver.MasterSyncAutomatically Property

Definition

Gets the global auto-sync setting that applies to all the providers and accounts. -or- Sets the global auto-sync setting that applies to all the providers and accounts.

public static bool MasterSyncAutomatically { [Android.Runtime.Register("getMasterSyncAutomatically", "()Z", "")] get; [Android.Runtime.Register("setMasterSyncAutomatically", "(Z)V", "")] set; }
[<get: Android.Runtime.Register("getMasterSyncAutomatically", "()Z", "")>]
[<set: Android.Runtime.Register("setMasterSyncAutomatically", "(Z)V", "")>]
static member MasterSyncAutomatically : bool with get, set

Property Value

the global auto-sync setting that applies to all the providers and accounts

Attributes

Remarks

Property getter documentation:

Gets the global auto-sync setting that applies to all the providers and accounts. If this is false then the per-provider auto-sync setting is ignored.

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

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

Property setter documentation:

Sets the global auto-sync setting that applies to all the providers and accounts. If this is false then the per-provider auto-sync setting is ignored.

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

Java documentation for android.content.ContentResolver.setMasterSyncAutomatically(boolean).

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