PackageManager.GetReceiverInfo 方法

定义

重载

GetReceiverInfo(ComponentName, PackageInfoFlags)

检索有关特定接收方类的所有信息。

GetReceiverInfo(ComponentName, PackageManager+ComponentInfoFlags)

GetReceiverInfo(ComponentName, PackageInfoFlags)

检索有关特定接收方类的所有信息。

[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

参数

component
ComponentName

完整组件名称(i.e. com.google.apps.calendar/com.google.apps.calendar)。Receiver 类的 CalendarAlarm。

flags
PackageInfoFlags

用于修改返回的数据的其他选项标志。

返回

ActivityInfo包含有关接收方的信息。

属性

例外

注解

检索有关特定接收方类的所有信息。

需要长标志时使用 #getReceiverInfo(ComponentName, ComponentInfoFlags)

适用于 . 的 android.content.pm.PackageManager.getReceiverInfo(android.content.ComponentName, int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

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

参数

component
ComponentName

返回

属性

适用于