Notification.Builder.SetCustomContentView(RemoteViews) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Supply custom RemoteViews to use instead of the platform template.
[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
Parameters
- contentView
- RemoteViews
RemoteViews
Returns
This Android.App.Notification.Builder instance, allowing calls to be chained.
- Attributes
Remarks
Supply custom RemoteViews to use instead of the platform template. This will override the layout that would otherwise be constructed by this Builder object. Note: The maximum memory use of view hierarchy is limited to 5MB.
Android reference for android.app.Notification.Builder.setCustomContentView.
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.