Język

JobInfo.Builder.SetCategory(JobInfoCategory) Method

Definition

Sets the category for this job.

[Android.Runtime.Register("setCategory", "(I)Landroid/app/job/JobInfo$Builder;", "", ApiSince=37)]
public Android.App.Job.JobInfo.Builder SetCategory(Android.App.Job.JobInfoCategory category);
[<Android.Runtime.Register("setCategory", "(I)Landroid/app/job/JobInfo$Builder;", "", ApiSince=37)>]
member this.SetCategory : Android.App.Job.JobInfoCategory -> Android.App.Job.JobInfo.Builder

Parameters

category
JobInfoCategory

The category for this job, e.g., JobInfo.CATEGORY_APP_UPDATES. Value is one of the following: None; AppUpdates

Returns

This Builder object to allow for chaining of calls. This value cannot be null.

Attributes

Remarks

Sets the category for this job.

The category provides a hint to the system about the purpose of the job, which may influence scheduling and quota allocation.

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

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