JobInfo.Builder.SetPersisted(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.
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.