Sprache

JobServiceEngine.SetNotification Methode

Definition

Geben Sie JobScheduler eine Benachrichtigung, um mit dem Lebenszyklus dieses Auftrags zu verknüpfen.

[Android.Runtime.Register("setNotification", "(Landroid/app/job/JobParameters;ILandroid/app/Notification;I)V", "GetSetNotification_Landroid_app_job_JobParameters_ILandroid_app_Notification_IHandler", ApiSince=34)]
public virtual void SetNotification(Android.App.Job.JobParameters params, int notificationId, Android.App.Notification notification, Android.App.Job.JobEndNotificationPolicy jobEndNotificationPolicy);
[<Android.Runtime.Register("setNotification", "(Landroid/app/job/JobParameters;ILandroid/app/Notification;I)V", "GetSetNotification_Landroid_app_job_JobParameters_ILandroid_app_Notification_IHandler", ApiSince=34)>]
abstract member SetNotification : Android.App.Job.JobParameters * int * Android.App.Notification * Android.App.Job.JobEndNotificationPolicy -> unit
override this.SetNotification : Android.App.Job.JobParameters * int * Android.App.Notification * Android.App.Job.JobEndNotificationPolicy -> unit

Parameter

params
JobParameters
notificationId
Int32
notification
Notification
jobEndNotificationPolicy
JobEndNotificationPolicy

Der Wert ist einer der folgenden: JobService.JOB_END_NOTIFICATION_POLICY_DETACH; JobService.JOB_END_NOTIFICATION_POLICY_REMOVE

Attribute

Hinweise

Geben Sie JobScheduler eine Benachrichtigung, um mit dem Lebenszyklus dieses Auftrags zu verknüpfen.

Java Dokumentation für android.app.job.JobServiceEngine.setNotification(android.app.job.JobParameters, int, android.app.Notification, int).

Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die von der Android Open Source Project erstellt und gemeinsam verwendet und gemäß den in der 2.5 Attribution License beschriebenen Begriffen verwendet werden.

Gilt für: