Notification.Builder.SetLargeIcon 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
| Name | Description |
|---|---|
| SetLargeIcon(Bitmap) |
Add a large icon to the notification content view. |
| SetLargeIcon(Icon) |
Add a large icon to the notification content view. |
SetLargeIcon(Bitmap)
Add a large icon to the notification content view.
[Android.Runtime.Register("setLargeIcon", "(Landroid/graphics/Bitmap;)Landroid/app/Notification$Builder;", "GetSetLargeIcon_Landroid_graphics_Bitmap_Handler")]
public virtual Android.App.Notification.Builder SetLargeIcon(Android.Graphics.Bitmap? b);
[<Android.Runtime.Register("setLargeIcon", "(Landroid/graphics/Bitmap;)Landroid/app/Notification$Builder;", "GetSetLargeIcon_Landroid_graphics_Bitmap_Handler")>]
abstract member SetLargeIcon : Android.Graphics.Bitmap -> Android.App.Notification.Builder
override this.SetLargeIcon : Android.Graphics.Bitmap -> Android.App.Notification.Builder
Parameters
- b
- Bitmap
Bitmap
Returns
This Android.App.Notification.Builder instance, allowing calls to be chained.
- Attributes
Remarks
Add a large icon to the notification content view. In the platform template, this image will be shown either on the right of the notification, with an aspect ratio of up to 16:9, or on the left when the notification is grouped.
Android reference for android.app.Notification.Builder.setLargeIcon.
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
SetLargeIcon(Icon)
Add a large icon to the notification content view.
[Android.Runtime.Register("setLargeIcon", "(Landroid/graphics/drawable/Icon;)Landroid/app/Notification$Builder;", "GetSetLargeIcon_Landroid_graphics_drawable_Icon_Handler", ApiSince=23)]
public virtual Android.App.Notification.Builder SetLargeIcon(Android.Graphics.Drawables.Icon? icon);
[<Android.Runtime.Register("setLargeIcon", "(Landroid/graphics/drawable/Icon;)Landroid/app/Notification$Builder;", "GetSetLargeIcon_Landroid_graphics_drawable_Icon_Handler", ApiSince=23)>]
abstract member SetLargeIcon : Android.Graphics.Drawables.Icon -> Android.App.Notification.Builder
override this.SetLargeIcon : Android.Graphics.Drawables.Icon -> Android.App.Notification.Builder
Parameters
- icon
- Icon
Icon
Returns
This Android.App.Notification.Builder instance, allowing calls to be chained.
- Attributes
Remarks
Add a large icon to the notification content view. In the platform template, this image will be shown either on the right of the notification, with an aspect ratio of up to 16:9, or on the left when the notification is grouped.
Android reference for android.app.Notification.Builder.setLargeIcon.
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.