Notification.Builder.SetSmallIcon Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetSmallIcon(Int32, Int32) |
Set the small icon resource for the specified level. |
SetSmallIcon(Icon) | |
SetSmallIcon(Int32) |
Set the small icon resource, which will be used to represent the notification in the status bar. |
SetSmallIcon(Int32, Int32)
Set the small icon resource for the specified level.
[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
A resource ID in the application's package of the drawable to use.
- level
- Int32
The image level to use for the icon.
Returns
- Attributes
Remarks
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.
See also
Applies to
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
Parameters
- icon
- Icon
Returns
- Attributes
Remarks
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
A resource ID in the application's package of the drawable to use.
Returns
- Attributes
Remarks
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.