PackageInstaller.UpdateSessionAppIcon(Int32, Bitmap) Method

Definition

Update the icon representing the app being installed in a specific session.

[Android.Runtime.Register("updateSessionAppIcon", "(ILandroid/graphics/Bitmap;)V", "GetUpdateSessionAppIcon_ILandroid_graphics_Bitmap_Handler")]
public virtual void UpdateSessionAppIcon (int sessionId, Android.Graphics.Bitmap? appIcon);
[<Android.Runtime.Register("updateSessionAppIcon", "(ILandroid/graphics/Bitmap;)V", "GetUpdateSessionAppIcon_ILandroid_graphics_Bitmap_Handler")>]
abstract member UpdateSessionAppIcon : int * Android.Graphics.Bitmap -> unit
override this.UpdateSessionAppIcon : int * Android.Graphics.Bitmap -> unit

Parameters

sessionId
Int32
appIcon
Bitmap
Attributes

Exceptions

when the caller does not own the session, or the session is invalid.

Remarks

Update the icon representing the app being installed in a specific session. This should be roughly ActivityManager#getLauncherLargeIconSize() in both dimensions.

Java documentation for android.content.pm.PackageInstaller.updateSessionAppIcon(int, 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