语言

Notification.Builder.CreateBigContentView 方法

定义

此方法在 API 级别 35 中已弃用。

[Android.Runtime.Register("createBigContentView", "()Landroid/widget/RemoteViews;", "GetCreateBigContentViewHandler", ApiSince=24)]
public virtual Android.Widget.RemoteViews? CreateBigContentView();
[<Android.Runtime.Register("createBigContentView", "()Landroid/widget/RemoteViews;", "GetCreateBigContentViewHandler", ApiSince=24)>]
abstract member CreateBigContentView : unit -> Android.Widget.RemoteViews
override this.CreateBigContentView : unit -> Android.Widget.RemoteViews

返回

特性

注解

此方法在 API 级别 35 中已弃用。 出于性能和系统运行状况原因,在向用户呈现通知时,系统 UI 不再需要直接使用此 API。 虽然此方法返回的 UI 仍将表示正在生成的通知的内容,但它可能与系统的视觉样式不同。 注意:此 API 始终存在严重限制;例如,它不支持任何交互性,它忽略应用主题,它会在调用系统主题时对系统主题的颜色进行硬编码,并在主线程上执行位图解码,这可能会导致 UI 断点。

构造表示扩展通知布局的 RemoteViews。

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

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

适用于