Notification.ProgressStyle.Segment.SetSemanticStyle(Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将语义应用于段。
[Android.Runtime.Register("setSemanticStyle", "(I)Landroid/app/Notification$ProgressStyle$Segment;", "", ApiSince=37)]
public Android.App.Notification.ProgressStyle.Segment SetSemanticStyle(int semanticStyle);
[<Android.Runtime.Register("setSemanticStyle", "(I)Landroid/app/Notification$ProgressStyle$Segment;", "", ApiSince=37)>]
member this.SetSemanticStyle : int -> Android.App.Notification.ProgressStyle.Segment
参数
- semanticStyle
- Int32
值为下列值之一:Notification.SEMANTIC_STYLE_UNSPECIFIED;Notification.SEMANTIC_STYLE_INFO;Notification.SEMANTIC_STYLE_SAFE;Notification.SEMANTIC_STYLE_CAUTION;Notification.SEMANTIC_STYLE_DANGER
返回
- 特性
注解
将语义应用于段。 当通知提升时,此值用于设置段的样式(例如颜色)。
如果应用同时指定颜色和语义样式,则颜色将覆盖该样式。
Android 参考。android.app.Notification.ProgressStyle.Segment.setSemanticStyle
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。