语言

Notification.Builder.SetStyle(Notification+Style) 方法

定义

添加要在生成时应用的丰富通知样式。

[Android.Runtime.Register("setStyle", "(Landroid/app/Notification$Style;)Landroid/app/Notification$Builder;", "GetSetStyle_Landroid_app_Notification_Style_Handler")]
public virtual Android.App.Notification.Builder SetStyle(Android.App.Notification.Style? style);
[<Android.Runtime.Register("setStyle", "(Landroid/app/Notification$Style;)Landroid/app/Notification$Builder;", "GetSetStyle_Landroid_app_Notification_Style_Handler")>]
abstract member SetStyle : Android.App.Notification.Style -> Android.App.Notification.Builder
override this.SetStyle : Android.App.Notification.Style -> Android.App.Notification.Builder

参数

style
Notification.Style

Notification.Style:负责修改通知样式的对象

返回

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

特性

注解

添加要在生成时应用的丰富通知样式。

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

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

适用于