Android.Test.Mock.MockPackageManager.GetDrawable Method
Retrieve an image from a package.

Syntax

[Android.Runtime.Register("getDrawable", "(Ljava/lang/String;ILandroid/content/pm/ApplicationInfo;)Landroid/graphics/drawable/Drawable;", "GetGetDrawable_Ljava_lang_String_ILandroid_content_pm_ApplicationInfo_Handler")]
public override Android.Graphics.Drawables.Drawable GetDrawable (string packageName, int resid, Android.Content.PM.ApplicationInfo appInfo)

Parameters

packageName
The name of the package that this icon is coming from. Cannot be null.
resid
The resource identifier of the desired image. Cannot be 0.
appInfo
Overall information about packageName. This may be null, in which case the application information will be retrieved for you if needed; if you already have this information around, it can be much more efficient to supply it here.

Returns

Documentation for this section has not yet been entered.

Remarks

Retrieve an image from a package. This is a low-level API used by the various package manager info structures (such as Android.Content.PM.ComponentInfo to implement retrieval of their associated icon.

[Android Documentation]

Requirements

Namespace: Android.Test.Mock
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1