語言

Notification.Builder.SetRequestPromotedOngoing(Boolean) 方法

定義

設定此通知是否申請為升遷的持續通知。

[Android.Runtime.Register("setRequestPromotedOngoing", "(Z)Landroid/app/Notification$Builder;", "GetSetRequestPromotedOngoing_ZHandler", ApiSince=36)]
public virtual Android.App.Notification.Builder SetRequestPromotedOngoing(bool requestPromotedOngoing);
[<Android.Runtime.Register("setRequestPromotedOngoing", "(Z)Landroid/app/Notification$Builder;", "GetSetRequestPromotedOngoing_ZHandler", ApiSince=36)>]
abstract member SetRequestPromotedOngoing : bool -> Android.App.Notification.Builder
override this.SetRequestPromotedOngoing : bool -> Android.App.Notification.Builder

參數

requestPromotedOngoing
Boolean

傳回

屬性

備註

設定此通知是否申請為升遷的持續通知。

這是 Notification.hasPromotableCharacteristics() 的首要需求。

Android 參考資料。android.app.Notification.Builder.setRequestPromotedOngoing

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於