语言

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

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于