SyncRequest.Builder.SetIgnoreSettings(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Convenience function for setting ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS . Enabling this for a periodic sync is invalid and will cause build() to throw an IllegalArgumentException. On Android 5.0 and later, throws an IllegalArgumentException if ignoreSettings is true while the setting from SetDisallowMetered is true.
[Android.Runtime.Register("setIgnoreSettings", "(Z)Landroid/content/SyncRequest$Builder;", "GetSetIgnoreSettings_ZHandler")]
public virtual Android.Content.SyncRequest.Builder? SetIgnoreSettings(bool ignoreSettings);
[<Android.Runtime.Register("setIgnoreSettings", "(Z)Landroid/content/SyncRequest$Builder;", "GetSetIgnoreSettings_ZHandler")>]
abstract member SetIgnoreSettings : bool -> Android.Content.SyncRequest.Builder
override this.SetIgnoreSettings : bool -> Android.Content.SyncRequest.Builder
Parameters
- ignoreSettings
- Boolean
true to ignore the sync automatically settings. Default false.
Returns
This builder.
- Attributes
Remarks
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.
Java documentation for android.content.SyncRequest.Builder.setIgnoreSettings(boolean).