Język

JobInfo.Builder.SetPersisted(Boolean) Method

Definition

Set whether or not to persist this job across device reboots.

[Android.Runtime.Register("setPersisted", "(Z)Landroid/app/job/JobInfo$Builder;", "")]
public Android.App.Job.JobInfo.Builder? SetPersisted(bool isPersisted);
[<Android.Runtime.Register("setPersisted", "(Z)Landroid/app/job/JobInfo$Builder;", "")>]
member this.SetPersisted : bool -> Android.App.Job.JobInfo.Builder

Parameters

isPersisted
Boolean

True to indicate that the job will be written to disk and loaded at boot.

Returns

This builder instance.

Attributes

Remarks

Set whether or not to persist this job across device reboots. Requires Manifest.permission.RECEIVE_BOOT_COMPLETED

Android reference for android.app.job.JobInfo.Builder.setPersisted.

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.

Applies to