MockPackageManager.GetResourcesForApplication Method

Definition

Overloads

GetResourcesForApplication(ApplicationInfo)

Retrieve the resources for an application.

GetResourcesForApplication(String)

Retrieve the resources associated with an application.

GetResourcesForApplication(ApplicationInfo)

Retrieve the resources for an application.

[Android.Runtime.Register("getResourcesForApplication", "(Landroid/content/pm/ApplicationInfo;)Landroid/content/res/Resources;", "GetGetResourcesForApplication_Landroid_content_pm_ApplicationInfo_Handler")]
public override Android.Content.Res.Resources? GetResourcesForApplication (Android.Content.PM.ApplicationInfo? app);
[<Android.Runtime.Register("getResourcesForApplication", "(Landroid/content/pm/ApplicationInfo;)Landroid/content/res/Resources;", "GetGetResourcesForApplication_Landroid_content_pm_ApplicationInfo_Handler")>]
override this.GetResourcesForApplication : Android.Content.PM.ApplicationInfo -> Android.Content.Res.Resources

Parameters

app
ApplicationInfo

Information about the desired application.

Returns

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

GetResourcesForApplication(String)

Retrieve the resources associated with an application.

[Android.Runtime.Register("getResourcesForApplication", "(Ljava/lang/String;)Landroid/content/res/Resources;", "GetGetResourcesForApplication_Ljava_lang_String_Handler")]
public override Android.Content.Res.Resources? GetResourcesForApplication (string? appPackageName);
[<Android.Runtime.Register("getResourcesForApplication", "(Ljava/lang/String;)Landroid/content/res/Resources;", "GetGetResourcesForApplication_Ljava_lang_String_Handler")>]
override this.GetResourcesForApplication : string -> Android.Content.Res.Resources

Parameters

appPackageName
String

Package name of the application whose resources are to be retrieved.

Returns

Attributes

Exceptions

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