Notification.Builder.SetSmallIcon メソッド

定義

オーバーロード

名前 説明
SetSmallIcon(Icon)

ステータス バーの通知を表すために使用される小さいアイコンを設定します。

SetSmallIcon(Int32)

ステータス バーの通知を表すために使用される小さなアイコン リソースを設定します。

SetSmallIcon(Int32, Int32)

アイコンが LevelListDrawable の場合に追加のレベル パラメーターを受け取る setSmallIcon(int) のバリアント。

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

Icon: 使用する Icon オブジェクト

返品

この Android.App.Notification.Builder インスタンス。呼び出しをチェーンできます。

属性

注釈

ステータス バーの通知を表すために使用される小さいアイコンを設定します。

関連項目も参照:

android.app.Notification.Builder.setSmallIconの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

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

int: 使用する drawable のアプリケーション のパッケージ内のリソース ID。

返品

この Android.App.Notification.Builder インスタンス。呼び出しをチェーンできます。

属性

注釈

ステータス バーの通知を表すために使用される小さなアイコン リソースを設定します。 展開ビューのプラットフォーム テンプレートでは、大きなアイコンも指定されていない限り、このアイコンが左側に描画されます。その場合、小さいアイコンは右側に移動されます。

関連項目も参照:

android.app.Notification.Builder.setSmallIconの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

SetSmallIcon(Int32, Int32)

アイコンが LevelListDrawable の場合に追加のレベル パラメーターを受け取る setSmallIcon(int) のバリアント。

[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

int: 使用する drawable のアプリケーション のパッケージ内のリソース ID

level
Int32

int: アイコンに使用するレベル

返品

この Android.App.Notification.Builder インスタンス。呼び出しをチェーンできます。

属性

注釈

アイコンが LevelListDrawable の場合に追加のレベル パラメーターを受け取る setSmallIcon(int) のバリアント。

関連項目も参照:

android.app.Notification.Builder.setSmallIconの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象