Notification.Builder.SetContent(RemoteViews) Method

Definition

Supply a custom RemoteViews to use instead of the platform template.

[Android.Runtime.Register("setContent", "(Landroid/widget/RemoteViews;)Landroid/app/Notification$Builder;", "GetSetContent_Landroid_widget_RemoteViews_Handler")]
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")>]
abstract member SetContent : Android.Widget.RemoteViews -> Android.App.Notification.Builder
override this.SetContent : Android.Widget.RemoteViews -> Android.App.Notification.Builder

Parameters

views
RemoteViews

RemoteViews

Returns

This Android.App.Notification.Builder instance, allowing calls to be chained.

Attributes

Remarks

Supply a custom RemoteViews to use instead of the platform template. Use setCustomContentView(RemoteViews) instead.

Android reference for android.app.Notification.Builder.setContent.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to