Compartilhar via


Notification.Builder.SetProgress(Int32, Int32, Boolean) Method

Definition

Set the progress that this notification represents.

[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

Parameters

max
Int32

Defines the maximum value the progress can take.

progress
Int32

Defines the default progress value, between 0 and max.

indeterminate
Boolean

If set to true, shows acyclic animation without an indication of progress.

Returns

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to