Język

MockPackageManager.GetResourcesForActivity(ComponentName) Method

Definition

Retrieve the resources associated with an activity.

[Android.Runtime.Register("getResourcesForActivity", "(Landroid/content/ComponentName;)Landroid/content/res/Resources;", "GetGetResourcesForActivity_Landroid_content_ComponentName_Handler")]
public override Android.Content.Res.Resources? GetResourcesForActivity(Android.Content.ComponentName? activityName);
[<Android.Runtime.Register("getResourcesForActivity", "(Landroid/content/ComponentName;)Landroid/content/res/Resources;", "GetGetResourcesForActivity_Landroid_content_ComponentName_Handler")>]
override this.GetResourcesForActivity : Android.Content.ComponentName -> Android.Content.Res.Resources

Parameters

activityName
ComponentName

Name of the activity whose resources are 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