语言

Notification.Builder.Build 方法

定义

合并已设置的所有选项并返回新的 Notification 对象。

[Android.Runtime.Register("build", "()Landroid/app/Notification;", "GetBuildHandler")]
public virtual Android.App.Notification Build();
[<Android.Runtime.Register("build", "()Landroid/app/Notification;", "GetBuildHandler")>]
abstract member Build : unit -> Android.App.Notification
override this.Build : unit -> Android.App.Notification

返回

此 API 生成的 Android.App.Notification。

特性

注解

合并已设置的所有选项并返回新的 Notification 对象。 如果此通知附加了使用 shortcutId 创建的 BubbleMetadata,将执行检查以确保提供给气泡元数据的 shortcutId 与通知生成器上设置的 shortcutId 匹配(如果已设置)。 如果指定了 shortcutId 但不匹配,则会在此处引发异常。

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

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

适用于