语言

Notification.ProgressStyle.Segment.SemanticStyle 属性

定义

返回应用于段的语义。

public int SemanticStyle { [Android.Runtime.Register("getSemanticStyle", "()I", "", ApiSince=37)] get; }
[<get: Android.Runtime.Register("getSemanticStyle", "()I", "", ApiSince=37)>]
member this.SemanticStyle : int

属性值

值为下列值之一: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.getSemanticStyle

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

适用于