Language

SyncRequest.Builder.SetNoRetry(Boolean) Method

Definition

Sets the ContentResolver.SYNC_EXTRAS_DO_NOT_RETRY option. Retry behavior also depends on the sync result. Enabling this for a periodic sync is invalid and will cause build() to throw an IllegalArgumentException.

[Android.Runtime.Register("setNoRetry", "(Z)Landroid/content/SyncRequest$Builder;", "GetSetNoRetry_ZHandler")]
public virtual Android.Content.SyncRequest.Builder? SetNoRetry(bool noRetry);
[<Android.Runtime.Register("setNoRetry", "(Z)Landroid/content/SyncRequest$Builder;", "GetSetNoRetry_ZHandler")>]
abstract member SetNoRetry : bool -> Android.Content.SyncRequest.Builder
override this.SetNoRetry : bool -> Android.Content.SyncRequest.Builder

Parameters

noRetry
Boolean

true to not retry a failed sync. 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.setNoRetry(boolean).

Applies to