Language

SyncRequest.Builder.SetExpedited(Boolean) Method

Definition

Requests an expedited sync, which can preempt other non-expedited syncs. Scheduling constraints can delay it. Enabling this for a periodic sync is invalid and will cause build() to throw an IllegalArgumentException.

[Android.Runtime.Register("setExpedited", "(Z)Landroid/content/SyncRequest$Builder;", "GetSetExpedited_ZHandler")]
public virtual Android.Content.SyncRequest.Builder? SetExpedited(bool expedited);
[<Android.Runtime.Register("setExpedited", "(Z)Landroid/content/SyncRequest$Builder;", "GetSetExpedited_ZHandler")>]
abstract member SetExpedited : bool -> Android.Content.SyncRequest.Builder
override this.SetExpedited : bool -> Android.Content.SyncRequest.Builder

Parameters

expedited
Boolean

whether to run expedited. 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.setExpedited(boolean).

Applies to