语言

Notification.ProgressStyle.Point.SetSemanticStyle(Int32) 方法

定义

将语义应用于 Point。

[Android.Runtime.Register("setSemanticStyle", "(I)Landroid/app/Notification$ProgressStyle$Point;", "", ApiSince=37)]
public Android.App.Notification.ProgressStyle.Point SetSemanticStyle(int semanticStyle);
[<Android.Runtime.Register("setSemanticStyle", "(I)Landroid/app/Notification$ProgressStyle$Point;", "", ApiSince=37)>]
member this.SetSemanticStyle : int -> Android.App.Notification.ProgressStyle.Point

参数

semanticStyle
Int32

值为下列值之一:Notification.SEMANTIC_STYLE_UNSPECIFIED;Notification.SEMANTIC_STYLE_INFO;Notification.SEMANTIC_STYLE_SAFE;Notification.SEMANTIC_STYLE_CAUTION;Notification.SEMANTIC_STYLE_DANGER

返回

特性

注解

将语义应用于 Point。 当通知提升时,此值用于设置点的样式(例如颜色)。

如果应用同时指定颜色和语义样式,则颜色将覆盖该样式。

Android 参考。android.app.Notification.ProgressStyle.Point.setSemanticStyle

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于