Taal

Notification.ProgressStyle.SetProgress(Int32) Method

Definition

Specifies the progress (in the same units as Segment.getLength()) of the tracker along the length of the bar.

[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

Parameters

progress
Int32

int: Value is 0 or greater

Returns

This Android.App.Notification.ProgressStyle instance, allowing calls to be chained.

Attributes

Remarks

Specifies the progress (in the same units as Segment.getLength()) of the tracker along the length of the bar. The maximum progress is based on the sum of positive segment lengths. The default progress value is 0.

Android reference for android.app.Notification.ProgressStyle.setProgress.

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