MockPackageManager.GetActivityInfo(ComponentName, PackageInfoFlags) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieve all of the information we know about a particular activity class.
[Android.Runtime.Register("getActivityInfo", "(Landroid/content/ComponentName;I)Landroid/content/pm/ActivityInfo;", "GetGetActivityInfo_Landroid_content_ComponentName_IHandler")]
public override Android.Content.PM.ActivityInfo? GetActivityInfo(Android.Content.ComponentName? className, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("getActivityInfo", "(Landroid/content/ComponentName;I)Landroid/content/pm/ActivityInfo;", "GetGetActivityInfo_Landroid_content_ComponentName_IHandler")>]
override this.GetActivityInfo : Android.Content.ComponentName * Android.Content.PM.PackageInfoFlags -> Android.Content.PM.ActivityInfo
Parameters
- className
- ComponentName
The full component name (i.e. com.google.apps.contacts/com.google.apps.contacts.ContactsList) of an Activity class.
- flags
- PackageInfoFlags
Additional option flags. Use any combination of MetaData, SharedLibraryFiles, to modify the data (in ApplicationInfo) returned.
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.