语言

Notification.HeadsUpContentView 属性

定义

注意

deprecated

contentView 的中等格式版本,为通知提供了向 contentView 添加操作按钮的机会。

[Android.Runtime.Register("headsUpContentView")]
[System.Obsolete("deprecated")]
public Android.Widget.RemoteViews? HeadsUpContentView { get; set; }
[<Android.Runtime.Register("headsUpContentView")>]
[<System.Obsolete("deprecated")>]
member this.HeadsUpContentView : Android.Widget.RemoteViews with get, set

属性值

抬头通知视图,或 null 未存储此类视图时。

特性

注解

contentView 的中等格式版本,为通知提供了向 contentView 添加操作按钮的机会。 系统 UI 可以选择将其显示为头通知,这将弹出,以便用户无需离开当前活动即可看到它。 从 N 开始,此字段可能为 null。 “抬头通知”视图由 Notification.Builder 的输入确定;可以使用 Notification.Builder.setCustomHeadsUpContentView(RemoteViews)提供自定义 RemoteView。

Android 参考。android.app.Notification.headsUpContentView

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

适用于