Język

Notification.ProgressStyle.Segment.SetSemanticStyle(Int32) Method

Definition

Applies semantics to the Segment.

[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

Parameters

semanticStyle
Int32

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

Returns

Attributes

Remarks

Applies semantics to the Segment. When the notification is promoted this value is used to style (e.g. color) the segment.

If an app specifies both color and semantic style, the color overrides the style.

Android reference for android.app.Notification.ProgressStyle.Segment.setSemanticStyle.

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