語言

Notification.ProgressStyle.SetProgressStartIcon(Icon) 方法

定義

一個可選的方形圖示,會出現在進度條開頭。

[Android.Runtime.Register("setProgressStartIcon", "(Landroid/graphics/drawable/Icon;)Landroid/app/Notification$ProgressStyle;", "GetSetProgressStartIcon_Landroid_graphics_drawable_Icon_Handler", ApiSince=36)]
public virtual Android.App.Notification.ProgressStyle SetProgressStartIcon(Android.Graphics.Drawables.Icon? startIcon);
[<Android.Runtime.Register("setProgressStartIcon", "(Landroid/graphics/drawable/Icon;)Landroid/app/Notification$ProgressStyle;", "GetSetProgressStartIcon_Landroid_graphics_drawable_Icon_Handler", ApiSince=36)>]
abstract member SetProgressStartIcon : Android.Graphics.Drawables.Icon -> Android.App.Notification.ProgressStyle
override this.SetProgressStartIcon : Android.Graphics.Drawables.Icon -> Android.App.Notification.ProgressStyle

參數

startIcon
Icon

圖示:此值可能為空值。

傳回

這個 Android.App.Notification.ProgressStyle 實例,允許呼叫串接。

屬性

備註

一個可選的方形圖示,會出現在進度條開頭。 此圖示將被裁切至中央方格。 這個圖示不會在 RTL 版面中鏡像。

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

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

適用於