JobInfo.Builder.SetTransientExtras(Bundle) 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 optional transient extras.
[Android.Runtime.Register("setTransientExtras", "(Landroid/os/Bundle;)Landroid/app/job/JobInfo$Builder;", "", ApiSince=26)]
public Android.App.Job.JobInfo.Builder? SetTransientExtras(Android.OS.Bundle extras);
[<Android.Runtime.Register("setTransientExtras", "(Landroid/os/Bundle;)Landroid/app/job/JobInfo$Builder;", "", ApiSince=26)>]
member this.SetTransientExtras : Android.OS.Bundle -> Android.App.Job.JobInfo.Builder
Parameters
- extras
- Bundle
Bundle containing extras you want the scheduler to hold on to for you. This value cannot be null.
Returns
This builder instance.
- Attributes
Remarks
Set optional transient extras.
Because setting this property is not compatible with persisted jobs, doing so will throw an IllegalArgumentException when build() is called.
Android reference for android.app.job.JobInfo.Builder.setTransientExtras.
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.