PackageManager.GetApplicationBanner 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
GetApplicationBanner(ApplicationInfo) |
Retrieve the banner associated with an application. |
GetApplicationBanner(String) |
Retrieve the banner associated with an application. |
GetApplicationBanner(ApplicationInfo)
Retrieve the banner associated with an application.
[Android.Runtime.Register("getApplicationBanner", "(Landroid/content/pm/ApplicationInfo;)Landroid/graphics/drawable/Drawable;", "GetGetApplicationBanner_Landroid_content_pm_ApplicationInfo_Handler")]
public abstract Android.Graphics.Drawables.Drawable? GetApplicationBanner (Android.Content.PM.ApplicationInfo info);
[<Android.Runtime.Register("getApplicationBanner", "(Landroid/content/pm/ApplicationInfo;)Landroid/graphics/drawable/Drawable;", "GetGetApplicationBanner_Landroid_content_pm_ApplicationInfo_Handler")>]
abstract member GetApplicationBanner : Android.Content.PM.ApplicationInfo -> Android.Graphics.Drawables.Drawable
Parameters
- info
- ApplicationInfo
Information about application being queried.
Returns
Returns the image of the banner or null if the application has no banner specified.
- Attributes
Remarks
Retrieve the banner associated with an application.
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
GetApplicationBanner(String)
Retrieve the banner associated with an application.
[Android.Runtime.Register("getApplicationBanner", "(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;", "GetGetApplicationBanner_Ljava_lang_String_Handler")]
public abstract Android.Graphics.Drawables.Drawable? GetApplicationBanner (string packageName);
[<Android.Runtime.Register("getApplicationBanner", "(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;", "GetGetApplicationBanner_Ljava_lang_String_Handler")>]
abstract member GetApplicationBanner : string -> Android.Graphics.Drawables.Drawable
Parameters
- packageName
- String
Name of the package whose application banner is to be retrieved.
Returns
Returns the image of the banner or null if the application has no banner specified.
- Attributes
Exceptions
Thrown if the resources for the given application could not be loaded.
Remarks
Retrieve the banner associated with an application. Given the name of the application's package, retrieves the information about it and calls getApplicationIcon() to return its banner. If the application cannot be found, NameNotFoundException is thrown.
Java documentation for android.content.pm.PackageManager.getApplicationBanner(java.lang.String)
.
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.