共用方式為


Notification.Builder.SetSmallIcon 方法

定義

多載

SetSmallIcon(Int32, Int32)

設定指定層級的小型圖示資源。

SetSmallIcon(Icon)
SetSmallIcon(Int32)

設定小型圖示資源,用來代表狀態列中的通知。

SetSmallIcon(Int32, Int32)

設定指定層級的小型圖示資源。

[Android.Runtime.Register("setSmallIcon", "(II)Landroid/app/Notification$Builder;", "GetSetSmallIcon_IIHandler")]
public virtual Android.App.Notification.Builder SetSmallIcon (int icon, int level);
[<Android.Runtime.Register("setSmallIcon", "(II)Landroid/app/Notification$Builder;", "GetSetSmallIcon_IIHandler")>]
abstract member SetSmallIcon : int * int -> Android.App.Notification.Builder
override this.SetSmallIcon : int * int -> Android.App.Notification.Builder

參數

icon
Int32

應用程式套件中要使用的可繪製資源標識碼。

level
Int32

要用於圖示的影像層級。

傳回

屬性

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

另請參閱

適用於

SetSmallIcon(Icon)

[Android.Runtime.Register("setSmallIcon", "(Landroid/graphics/drawable/Icon;)Landroid/app/Notification$Builder;", "GetSetSmallIcon_Landroid_graphics_drawable_Icon_Handler", ApiSince=23)]
public virtual Android.App.Notification.Builder SetSmallIcon (Android.Graphics.Drawables.Icon? icon);
[<Android.Runtime.Register("setSmallIcon", "(Landroid/graphics/drawable/Icon;)Landroid/app/Notification$Builder;", "GetSetSmallIcon_Landroid_graphics_drawable_Icon_Handler", ApiSince=23)>]
abstract member SetSmallIcon : Android.Graphics.Drawables.Icon -> Android.App.Notification.Builder
override this.SetSmallIcon : Android.Graphics.Drawables.Icon -> Android.App.Notification.Builder

參數

icon
Icon

傳回

屬性

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

SetSmallIcon(Int32)

設定小型圖示資源,用來代表狀態列中的通知。

[Android.Runtime.Register("setSmallIcon", "(I)Landroid/app/Notification$Builder;", "GetSetSmallIcon_IHandler")]
public virtual Android.App.Notification.Builder SetSmallIcon (int icon);
[<Android.Runtime.Register("setSmallIcon", "(I)Landroid/app/Notification$Builder;", "GetSetSmallIcon_IHandler")>]
abstract member SetSmallIcon : int -> Android.App.Notification.Builder
override this.SetSmallIcon : int -> Android.App.Notification.Builder

參數

icon
Int32

應用程式套件中要使用的可繪製資源標識碼。

傳回

屬性

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

另請參閱

適用於