Language

SyncRequest.Builder.SetIgnoreSettings(Boolean) Method

Definition

Convenience function for setting ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS . Not valid for periodic sync and will throw an IllegalArgumentException in build() . Throws IllegalArgumentException if called and setDisallowMetered(boolean) has been set.

[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

Convenience function for setting ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS . Not valid for periodic sync and will throw an IllegalArgumentException in build() . Throws IllegalArgumentException if called and setDisallowMetered(boolean) has been set.

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).

Applies to