Language

Notification.Metric.SemanticStyle Property

Definition

Applies semantics to the metric.

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

Property Value

Value is one of the following: Notification.SEMANTIC_STYLE_UNSPECIFIED; Notification.SEMANTIC_STYLE_INFO; Notification.SEMANTIC_STYLE_SAFE; Notification.SEMANTIC_STYLE_CAUTION; Notification.SEMANTIC_STYLE_DANGER

Attributes

Remarks

Applies semantics to the metric. When the notification is promoted the metric value will be displayed (e.g. colored) according to this style.

Android reference for android.app.Notification.Metric.getSemanticStyle.

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