語言

Notification.ProgressStyle.AddProgressSegment 方法

定義

在進度條末端附加一段內容。

[Android.Runtime.Register("addProgressSegment", "(Landroid/app/Notification$ProgressStyle$Segment;)Landroid/app/Notification$ProgressStyle;", "GetAddProgressSegment_Landroid_app_Notification_ProgressStyle_Segment_Handler", ApiSince=36)]
public virtual Android.App.Notification.ProgressStyle AddProgressSegment(Android.App.Notification.ProgressStyle.Segment segment);
[<Android.Runtime.Register("addProgressSegment", "(Landroid/app/Notification$ProgressStyle$Segment;)Landroid/app/Notification$ProgressStyle;", "GetAddProgressSegment_Landroid_app_Notification_ProgressStyle_Segment_Handler", ApiSince=36)>]
abstract member AddProgressSegment : Android.App.Notification.ProgressStyle.Segment -> Android.App.Notification.ProgressStyle
override this.AddProgressSegment : Android.App.Notification.ProgressStyle.Segment -> Android.App.Notification.ProgressStyle

參數

segment
Notification.ProgressStyle.Segment

Notification.ProgressStyle.Segment:此值不能為空值。

傳回

這個 Android.App.Notification.ProgressStyle 實例,允許呼叫串接。

屬性

備註

在進度條末端附加一段內容。 分段允許建立多色進度條或分段,代表不同階段或進度類別。 例如,導航旅程中的交通狀況。

Android 參考資料。android.app.Notification.ProgressStyle.addProgressSegment

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於