Notification.ProgressStyle.SetProgress(Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定跟踪器沿条长的段.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
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。