语言

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:此值不能为 null。

返回

此 Android.App.Notification.ProgressStyle 实例允许链接调用。

特性

注解

将段追加到进度栏的末尾。 段允许创建具有多种颜色或分区的进度条来表示不同阶段或进度类别。 例如,沿导航旅程的交通状况。

Android 参考。android.app.Notification.ProgressStyle.addProgressSegment

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于