Notification.ContentView 属性

定义

将在通知列表中表示此通知的视图(从状态栏拉取)。

[Android.Runtime.Register("contentView")]
public Android.Widget.RemoteViews? ContentView { get; set; }
[<Android.Runtime.Register("contentView")>]
member this.ContentView : Android.Widget.RemoteViews with get, set

属性值

属性

注解

将在通知列表中表示此通知的视图(从状态栏拉取)。

从 N 开始,此字段可能为 null。 通知视图由输入 Notification.Builder确定;自定义 RemoteViews 可以选择提供 Notification.Builder#setCustomContentView(RemoteViews)

适用于 . 的 android.app.Notification.contentViewJava 文档

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

适用于