Share via


PackageInstaller.SessionParams.SetAppIcon(Bitmap) Method

Definition

Optionally set an icon representing the app being installed.

[Android.Runtime.Register("setAppIcon", "(Landroid/graphics/Bitmap;)V", "GetSetAppIcon_Landroid_graphics_Bitmap_Handler")]
public virtual void SetAppIcon (Android.Graphics.Bitmap? appIcon);
[<Android.Runtime.Register("setAppIcon", "(Landroid/graphics/Bitmap;)V", "GetSetAppIcon_Landroid_graphics_Bitmap_Handler")>]
abstract member SetAppIcon : Android.Graphics.Bitmap -> unit
override this.SetAppIcon : Android.Graphics.Bitmap -> unit

Parameters

appIcon
Bitmap
Attributes

Remarks

Optionally set an icon representing the app being installed. This should be roughly ActivityManager#getLauncherLargeIconSize() in both dimensions.

Java documentation for android.content.pm.PackageInstaller.SessionParams.setAppIcon(android.graphics.Bitmap).

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