Langue

MockPackageManager.GetApplicationLogo Méthode

Définition

Surcharges

Nom Description
GetApplicationLogo(ApplicationInfo)

Récupérez le logo associé à une application.

GetApplicationLogo(String)

Récupérez le logo associé à une application.

GetApplicationLogo(ApplicationInfo)

Récupérez le logo associé à une 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

Paramètres

info
ApplicationInfo

Informations sur l’application interrogée.

Retours

Aucune valeur n’est retournée. L’implémentation fictive par défaut lève UnsupportedOperationException; remplacez cette méthode pour fournir un résultat de test.

Attributs

Remarques

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à

GetApplicationLogo(String)

Récupérez le logo associé à une 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

Paramètres

packageName
String

Nom du package dont le logo de l’application doit être récupéré.

Retours

Aucune valeur n’est retournée. L’implémentation fictive par défaut lève UnsupportedOperationException; remplacez cette méthode pour fournir un résultat de test.

Attributs

Exceptions

Non levée par l’implémentation fictive par défaut, qui lève UnsupportedOperationException à la place. Un remplacement de test peut fournir son propre comportement.

Remarques

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à