Language

JobServiceEngine.SetNotification メソッド

定義

JobScheduler に、このジョブのライフサイクルに関連付ける通知を提供します。

[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

パラメーター

params
JobParameters
notificationId
Int32
notification
Notification
jobEndNotificationPolicy
JobEndNotificationPolicy

値は次のいずれかです: JobService.JOB_END_NOTIFICATION_POLICY_DETACH;JobService.JOB_END_NOTIFICATION_POLICY_REMOVE

属性

注釈

JobScheduler に、このジョブのライフサイクルに関連付ける通知を提供します。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象