Język

MockPackageManager.GetApplicationLogo Method

Definition

Overloads

Name Description
GetApplicationLogo(ApplicationInfo)

Retrieve the logo associated with an application.

GetApplicationLogo(String)

Retrieve the logo associated with an application.

GetApplicationLogo(ApplicationInfo)

Retrieve the logo associated with an application.

[Android.Runtime.Register("getApplicationLogo", "(Landroid/content/pm/ApplicationInfo;)Landroid/graphics/drawable/Drawable;", "GetGetApplicationLogo_Landroid_content_pm_ApplicationInfo_Handler")]
public override Android.Graphics.Drawables.Drawable? GetApplicationLogo(Android.Content.PM.ApplicationInfo? info);
[<Android.Runtime.Register("getApplicationLogo", "(Landroid/content/pm/ApplicationInfo;)Landroid/graphics/drawable/Drawable;", "GetGetApplicationLogo_Landroid_content_pm_ApplicationInfo_Handler")>]
override this.GetApplicationLogo : Android.Content.PM.ApplicationInfo -> Android.Graphics.Drawables.Drawable

Parameters

info
ApplicationInfo

Information about application being queried.

Returns

No value is returned. The default mock implementation throws UnsupportedOperationException; override this method to supply a test result.

Attributes

Remarks

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

GetApplicationLogo(String)

Retrieve the logo associated with an application.

[Android.Runtime.Register("getApplicationLogo", "(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;", "GetGetApplicationLogo_Ljava_lang_String_Handler")]
public override Android.Graphics.Drawables.Drawable? GetApplicationLogo(string? packageName);
[<Android.Runtime.Register("getApplicationLogo", "(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;", "GetGetApplicationLogo_Ljava_lang_String_Handler")>]
override this.GetApplicationLogo : string -> Android.Graphics.Drawables.Drawable

Parameters

packageName
String

Name of the package whose application logo is to be retrieved.

Returns

No value is returned. The default mock implementation throws UnsupportedOperationException; override this method to supply a test result.

Attributes

Exceptions

Not thrown by the default mock implementation, which throws UnsupportedOperationException instead. A test override can supply its own behavior.

Remarks

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