语言

Notification.ProgressStyle.SetProgress(Int32) 方法

定义

指定跟踪器沿条长的段.getLength()的进度(以与 Segment.getLength()相同的单位。

[Android.Runtime.Register("setProgress", "(I)Landroid/app/Notification$ProgressStyle;", "GetSetProgress_IHandler", ApiSince=36)]
public virtual Android.App.Notification.ProgressStyle SetProgress(int progress);
[<Android.Runtime.Register("setProgress", "(I)Landroid/app/Notification$ProgressStyle;", "GetSetProgress_IHandler", ApiSince=36)>]
abstract member SetProgress : int -> Android.App.Notification.ProgressStyle
override this.SetProgress : int -> Android.App.Notification.ProgressStyle

参数

progress
Int32

int:值为 0 或更大

返回

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

特性

注解

指定跟踪器沿条长的段.getLength()的进度(以与 Segment.getLength()相同的单位。 最大进度值是所有段长度的总和。 默认值为 0。

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

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

适用于