Notification.Builder.SetCustomContentView(RemoteViews) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供要使用的自定义 RemoteViews,而不是平台模板。
[Android.Runtime.Register("setCustomContentView", "(Landroid/widget/RemoteViews;)Landroid/app/Notification$Builder;", "GetSetCustomContentView_Landroid_widget_RemoteViews_Handler", ApiSince=24)]
public virtual Android.App.Notification.Builder SetCustomContentView(Android.Widget.RemoteViews? contentView);
[<Android.Runtime.Register("setCustomContentView", "(Landroid/widget/RemoteViews;)Landroid/app/Notification$Builder;", "GetSetCustomContentView_Landroid_widget_RemoteViews_Handler", ApiSince=24)>]
abstract member SetCustomContentView : Android.Widget.RemoteViews -> Android.App.Notification.Builder
override this.SetCustomContentView : Android.Widget.RemoteViews -> Android.App.Notification.Builder
参数
- contentView
- RemoteViews
RemoteViews
返回
此 Android.App.Notification.Builder 实例允许链接调用。
- 特性
注解
提供要使用的自定义 RemoteViews,而不是平台模板。 这将覆盖此 Builder 对象将构造的布局。 注意:视图层次结构的最大内存使用量限制为 5MB。
Android 参考。android.app.Notification.Builder.setCustomContentView
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。