Notification.Builder.SetStyle(Notification+Style) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
添加要在生成时应用的丰富通知样式。
[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
负责修改通知样式的对象。
返回
- 属性
注解
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。