SyncRequest.Builder.SetScheduleAsExpeditedJob(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Convenience function for setting ContentResolver.SYNC_EXTRAS_SCHEDULE_AS_EXPEDITED_JOB . Not to be confused with ContentResolver.SYNC_EXTRAS_EXPEDITED . Not valid for periodic syncs, expedited syncs, and syncs that require charging - an IllegalArgumentException will be thrown in build() . Parameters scheduleAsExpeditedJob boolean : whether to schedule as an expedited job. Default false.
[Android.Runtime.Register("setScheduleAsExpeditedJob", "(Z)Landroid/content/SyncRequest$Builder;", "GetSetScheduleAsExpeditedJob_ZHandler", ApiSince=31)]
public virtual Android.Content.SyncRequest.Builder SetScheduleAsExpeditedJob(bool scheduleAsExpeditedJob);
[<Android.Runtime.Register("setScheduleAsExpeditedJob", "(Z)Landroid/content/SyncRequest$Builder;", "GetSetScheduleAsExpeditedJob_ZHandler", ApiSince=31)>]
abstract member SetScheduleAsExpeditedJob : bool -> Android.Content.SyncRequest.Builder
override this.SetScheduleAsExpeditedJob : bool -> Android.Content.SyncRequest.Builder
Parameters
- scheduleAsExpeditedJob
- Boolean
Whether to schedule the sync as an expedited job.
Returns
This value cannot be null .
- Attributes
Remarks
Convenience function for setting ContentResolver.SYNC_EXTRAS_SCHEDULE_AS_EXPEDITED_JOB . Not to be confused with ContentResolver.SYNC_EXTRAS_EXPEDITED . Not valid for periodic syncs, expedited syncs, and syncs that require charging - an IllegalArgumentException will be thrown in build() . Parameters scheduleAsExpeditedJob boolean : whether to schedule as an expedited job. Default false.
Java documentation for android.content.SyncRequest.Builder.setScheduleAsExpeditedJob(boolean).
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.