语言

Notification.Builder.SetProgress(Int32, Int32, Boolean) 方法

定义

设置此通知表示的进度。

[Android.Runtime.Register("setProgress", "(IIZ)Landroid/app/Notification$Builder;", "GetSetProgress_IIZHandler")]
public virtual Android.App.Notification.Builder SetProgress(int max, int progress, bool indeterminate);
[<Android.Runtime.Register("setProgress", "(IIZ)Landroid/app/Notification$Builder;", "GetSetProgress_IIZHandler")>]
abstract member SetProgress : int * int * bool -> Android.App.Notification.Builder
override this.SetProgress : int * int * bool -> Android.App.Notification.Builder

参数

max
Int32

int

progress
Int32

int

indeterminate
Boolean

boolean

返回

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

特性

注解

设置此通知表示的进度。 平台模板将使用 ProgressBar 来表示此情况。

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

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

适用于