PackageManager.GetReceiverInfo 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.
Overloads
GetReceiverInfo(ComponentName, PackageInfoFlags) |
Retrieve all of the information we know about a particular receiver class. |
GetReceiverInfo(ComponentName, PackageManager+ComponentInfoFlags) |
GetReceiverInfo(ComponentName, PackageInfoFlags)
Retrieve all of the information we know about a particular receiver class.
[Android.Runtime.Register("getReceiverInfo", "(Landroid/content/ComponentName;I)Landroid/content/pm/ActivityInfo;", "GetGetReceiverInfo_Landroid_content_ComponentName_IHandler")]
public abstract Android.Content.PM.ActivityInfo GetReceiverInfo (Android.Content.ComponentName component, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("getReceiverInfo", "(Landroid/content/ComponentName;I)Landroid/content/pm/ActivityInfo;", "GetGetReceiverInfo_Landroid_content_ComponentName_IHandler")>]
abstract member GetReceiverInfo : Android.Content.ComponentName * Android.Content.PM.PackageInfoFlags -> Android.Content.PM.ActivityInfo
Parameters
- component
- ComponentName
The full component name (i.e. com.google.apps.calendar/com.google.apps.calendar. CalendarAlarm) of a Receiver class.
- flags
- PackageInfoFlags
Additional option flags to modify the data returned.
Returns
An ActivityInfo
containing information about the
receiver.
- Attributes
Exceptions
Remarks
Retrieve all of the information we know about a particular receiver class.
Use #getReceiverInfo(ComponentName, ComponentInfoFlags)
when long flags are needed.
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
GetReceiverInfo(ComponentName, PackageManager+ComponentInfoFlags)
[Android.Runtime.Register("getReceiverInfo", "(Landroid/content/ComponentName;Landroid/content/pm/PackageManager$ComponentInfoFlags;)Landroid/content/pm/ActivityInfo;", "GetGetReceiverInfo_Landroid_content_ComponentName_Landroid_content_pm_PackageManager_ComponentInfoFlags_Handler", ApiSince=33)]
public virtual Android.Content.PM.ActivityInfo GetReceiverInfo (Android.Content.ComponentName component, Android.Content.PM.PackageManager.ComponentInfoFlags flags);
[<Android.Runtime.Register("getReceiverInfo", "(Landroid/content/ComponentName;Landroid/content/pm/PackageManager$ComponentInfoFlags;)Landroid/content/pm/ActivityInfo;", "GetGetReceiverInfo_Landroid_content_ComponentName_Landroid_content_pm_PackageManager_ComponentInfoFlags_Handler", ApiSince=33)>]
abstract member GetReceiverInfo : Android.Content.ComponentName * Android.Content.PM.PackageManager.ComponentInfoFlags -> Android.Content.PM.ActivityInfo
override this.GetReceiverInfo : Android.Content.ComponentName * Android.Content.PM.PackageManager.ComponentInfoFlags -> Android.Content.PM.ActivityInfo
Parameters
- component
- ComponentName
Returns
- Attributes