Notification.ProgressStyle.Segment.SetSemanticStyle(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
對該段套用語意。
[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
參數
- semanticStyle
- Int32
價值屬於以下之一: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.setSemanticStyle
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。