JobServiceEngine.SetNotification 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
給 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
- 屬性
備註
給 JobScheduler 一個通知,讓它綁定到這個工作的生命週期。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。