Language

SyncRequest.Builder.SetRequiresCharging(Boolean) Method

Definition

Specify whether the sync requires the phone to be plugged in.

[Android.Runtime.Register("setRequiresCharging", "(Z)Landroid/content/SyncRequest$Builder;", "GetSetRequiresCharging_ZHandler", ApiSince=24)]
public virtual Android.Content.SyncRequest.Builder? SetRequiresCharging(bool requiresCharging);
[<Android.Runtime.Register("setRequiresCharging", "(Z)Landroid/content/SyncRequest$Builder;", "GetSetRequiresCharging_ZHandler", ApiSince=24)>]
abstract member SetRequiresCharging : bool -> Android.Content.SyncRequest.Builder
override this.SetRequiresCharging : bool -> Android.Content.SyncRequest.Builder

Parameters

requiresCharging
Boolean

true if sync requires the phone to be plugged in. Default false.

Returns

Specify whether the sync requires the phone to be plugged in.

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

Applies to