Language

SyncRequest.Builder.SetExpedited(Boolean) Method

Definition

An expedited sync runs immediately and can preempt other non-expedited running syncs. Not valid for periodic sync and will throw an IllegalArgumentException in build() .

[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

An expedited sync runs immediately and can preempt other non-expedited running syncs. Not valid for periodic sync and will throw an IllegalArgumentException in build() .

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