SyncRequest.Builder.SetNoRetry(Boolean) Method

Definition

Convenience function for setting ContentResolver.SYNC_EXTRAS_DO_NOT_RETRY . A one-off sync operation that fails will be retried with exponential back-off unless this is set to true. Not valid for periodic sync and will throw an IllegalArgumentException in build().

[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