語言

Notification.ProgressStyle.SetProgress(Int32) 方法

定義

指定追蹤器沿條長度的進度(與 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 實例,允許呼叫串接。

屬性

備註

指定追蹤器沿條長度的進度(與 Segment.getLength()相同單位)。 最大進度值是所有區段長度的總和。 預設值為 0。

Android 參考資料。android.app.Notification.ProgressStyle.setProgress

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於