语言

Notification.Builder.SetPublicVersion(Notification) 方法

定义

提供一个替换通知,其内容应在不安全的上下文中显示(即安全锁屏上方)。

[Android.Runtime.Register("setPublicVersion", "(Landroid/app/Notification;)Landroid/app/Notification$Builder;", "GetSetPublicVersion_Landroid_app_Notification_Handler")]
public virtual Android.App.Notification.Builder SetPublicVersion(Android.App.Notification? n);
[<Android.Runtime.Register("setPublicVersion", "(Landroid/app/Notification;)Landroid/app/Notification$Builder;", "GetSetPublicVersion_Landroid_app_Notification_Handler")>]
abstract member SetPublicVersion : Android.App.Notification -> Android.App.Notification.Builder
override this.SetPublicVersion : Android.App.Notification -> Android.App.Notification.Builder

参数

n
Notification

通知:替换通知,大概会用部分或全部信息进行修订

返回

此 Android.App.Notification.Builder 实例允许链接调用。

特性

注解

提供一个替换通知,其内容应在不安全的上下文中显示(即安全锁屏上方)。 请参阅 Notification.visibility 和 Notification.VISIBILITY_PUBLIC。

Android 参考。android.app.Notification.Builder.setPublicVersion

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于