Language

SyncRequest.Builder.SetManual(Boolean) Method

Definition

Sets whether the sync is user-initiated. Enabling this for a periodic sync is invalid and will cause build() to throw an IllegalArgumentException.

[Android.Runtime.Register("setManual", "(Z)Landroid/content/SyncRequest$Builder;", "GetSetManual_ZHandler")]
public virtual Android.Content.SyncRequest.Builder? SetManual(bool isManual);
[<Android.Runtime.Register("setManual", "(Z)Landroid/content/SyncRequest$Builder;", "GetSetManual_ZHandler")>]
abstract member SetManual : bool -> Android.Content.SyncRequest.Builder
override this.SetManual : bool -> Android.Content.SyncRequest.Builder

Parameters

isManual
Boolean

User-initiated sync or not. Default false.

Returns

This builder.

Attributes

Remarks

On Android 4.4, enabling this sets the manual sync extra. On Android 5.0 and later, it sets the ignore-backoff and ignore-settings extras instead.

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.setManual(boolean).

Applies to