Język

Notification.Builder.SetSmallIcon Method

Definition

Overloads

Name Description
SetSmallIcon(Icon)

Set the small icon, which will be used to represent the notification in the status bar.

SetSmallIcon(Int32)

Set the small icon resource, which will be used to represent the notification in the status bar.

SetSmallIcon(Int32, Int32)

A variant of setSmallIcon(int) that takes an additional level parameter for when the icon is a LevelListDrawable.

SetSmallIcon(Icon)

Set the small icon, which will be used to represent the notification in the status bar.

[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

Parameters

icon
Icon

Icon: an Icon object to use

Returns

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

Attributes

Remarks

Set the small icon, which will be used to represent the notification in the status bar.

See also:

Android reference for android.app.Notification.Builder.setSmallIcon.

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

SetSmallIcon(Int32)

Set the small icon resource, which will be used to represent the notification in the status bar.

[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

Parameters

icon
Int32

int: A resource ID in the application's package of the drawable to use.

Returns

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

Attributes

Remarks

Set the small icon resource, which will be used to represent the notification in the status bar. The platform template for the expanded view will draw this icon in the left, unless a large icon has also been specified, in which case the small icon will be moved to the right-hand side.

See also:

Android reference for android.app.Notification.Builder.setSmallIcon.

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

SetSmallIcon(Int32, Int32)

A variant of setSmallIcon(int) that takes an additional level parameter for when the icon is a LevelListDrawable.

[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

Parameters

icon
Int32

int: a resource ID in the application's package of the drawable to use

level
Int32

int: the level to use for the icon

Returns

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

Attributes

Remarks

A variant of setSmallIcon(int) that takes an additional level parameter for when the icon is a LevelListDrawable.

See also:

Android reference for android.app.Notification.Builder.setSmallIcon.

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