LauncherActivityInfo.GetIcon(Int32) 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.
Returns the icon for this activity, without any badging for the profile.
[Android.Runtime.Register("getIcon", "(I)Landroid/graphics/drawable/Drawable;", "GetGetIcon_IHandler")]
public virtual Android.Graphics.Drawables.Drawable? GetIcon (int density);
[<Android.Runtime.Register("getIcon", "(I)Landroid/graphics/drawable/Drawable;", "GetGetIcon_IHandler")>]
abstract member GetIcon : int -> Android.Graphics.Drawables.Drawable
override this.GetIcon : int -> Android.Graphics.Drawables.Drawable
Parameters
- density
- Int32
The preferred density of the icon, zero for default density. Use
density DPI values from DisplayMetrics
.
Returns
The drawable associated with the activity.
- Attributes
Remarks
Returns the icon for this activity, without any badging for the profile.
Java documentation for android.content.pm.LauncherActivityInfo.getIcon(int)
.
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.