Language

NotificationSemanticStyle Enum

Definition

public enum NotificationSemanticStyle
type NotificationSemanticStyle = 
Inheritance
NotificationSemanticStyle

Fields

Name Value Description
Unspecified 0

This is the default value for semantic style, signaling no particular semantics. An Annotation with this style has no effect.

Android reference for android.app.Notification.SEMANTIC_STYLE_UNSPECIFIED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Info 1

This value is used to annotate an element as indicating information that should stand out from other content, but which doesn’t fall on a scale or hierarchy. This can be thought of as a more neutral value that may be used in cases where the element is intended to stand out against elements with the other semantic styles -- for example if a ProgressStyle bar uses semantic style to color segments, this style would be appropriate for segments where the semantic hierarchy is unhelpful to the user.

Info is generally represented to users by styling the element with a color (like blue) that is clearly distinct from the colors used for other styles.

Android reference for android.app.Notification.SEMANTIC_STYLE_INFO.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Safe 2

This value is used to annotate an element as indicating safety, non-urgency, timeliness, or another “mild” value on the semantic hierarchy.

Safety is generally represented to users by styling the element with a green color.

Android reference for android.app.Notification.SEMANTIC_STYLE_SAFE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Caution 3

This value is used to annotate an element as indicating caution, moderate urgency, tardiness, or another “intermediate” value on the semantic hierarchy.

Caution is generally represented to users by styling the element with a yellow or orange color.

Android reference for android.app.Notification.SEMANTIC_STYLE_CAUTION.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Danger 4

This value is used to annotate an element as indicating danger, extreme urgency or lateness, or another “extreme” value on the semantic hierarchy.

Danger is generally represented to users by styling the element with a red color.

Android reference for android.app.Notification.SEMANTIC_STYLE_DANGER.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to