Android.Test.Mock.MockPackageManager.GetReceiverInfo Method
Retrieve all of the information we know about a particular receiver class.

Syntax

[Android.Runtime.Register("getReceiverInfo", "(Landroid/content/ComponentName;I)Landroid/content/pm/ActivityInfo;", "GetGetReceiverInfo_Landroid_content_ComponentName_IHandler")]
public override Android.Content.PM.ActivityInfo GetReceiverInfo (Android.Content.ComponentName className, [Android.Runtime.GeneratedEnum] Android.Content.PM.PackageInfoFlags flags)

Parameters

className
The full component name (i.e. com.google.apps.calendar/com.google.apps.calendar.CalendarAlarm) of a Receiver class.
flags
Additional option flags. Use any combination of Android.Content.PM.PackageManager.GET_META_DATA, Android.Content.PM.PackageManager.GET_SHARED_LIBRARY_FILES, to modify the data returned.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
!:NoType:android/content/pm/PackageManager$NameNotFoundException;Href=../../../../reference/android/content/pm/PackageManager.NameNotFoundException.html

Remarks

Retrieve all of the information we know about a particular receiver class.

Throws NoType:android/content/pm/PackageManager$NameNotFoundException;Href=../../../../reference/android/content/pm/PackageManager.NameNotFoundException.html if a receiver with the given class name cannot be found on the system.

[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