语言

Notification.Builder.SetContent(RemoteViews) 方法

定义

注意

deprecated

提供要使用的自定义 RemoteViews,而不是平台模板。

[Android.Runtime.Register("setContent", "(Landroid/widget/RemoteViews;)Landroid/app/Notification$Builder;", "GetSetContent_Landroid_widget_RemoteViews_Handler")]
[System.Obsolete("deprecated")]
public virtual Android.App.Notification.Builder? SetContent(Android.Widget.RemoteViews? views);
[<Android.Runtime.Register("setContent", "(Landroid/widget/RemoteViews;)Landroid/app/Notification$Builder;", "GetSetContent_Landroid_widget_RemoteViews_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member SetContent : Android.Widget.RemoteViews -> Android.App.Notification.Builder
override this.SetContent : Android.Widget.RemoteViews -> Android.App.Notification.Builder

参数

views
RemoteViews

RemoteViews

返回

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

特性

注解

提供要使用的自定义 RemoteViews,而不是平台模板。 请改用 setCustomContentView(RemoteViews)。

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

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

适用于