次の方法で共有


PackageManager.QueryBroadcastReceivers Method

Definition

Overloads

QueryBroadcastReceivers(Intent, PackageInfoFlags)

Retrieve all receivers that can handle a broadcast of the given intent.

QueryBroadcastReceivers(Intent, PackageManager+ResolveInfoFlags)

QueryBroadcastReceivers(Intent, PackageInfoFlags)

Retrieve all receivers that can handle a broadcast of the given intent.

[Android.Runtime.Register("queryBroadcastReceivers", "(Landroid/content/Intent;I)Ljava/util/List;", "GetQueryBroadcastReceivers_Landroid_content_Intent_IHandler")]
public abstract System.Collections.Generic.IList<Android.Content.PM.ResolveInfo> QueryBroadcastReceivers (Android.Content.Intent intent, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("queryBroadcastReceivers", "(Landroid/content/Intent;I)Ljava/util/List;", "GetQueryBroadcastReceivers_Landroid_content_Intent_IHandler")>]
abstract member QueryBroadcastReceivers : Android.Content.Intent * Android.Content.PM.PackageInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ResolveInfo>

Parameters

intent
Intent

The desired intent as per resolveActivity().

flags
PackageInfoFlags

Additional option flags to modify the data returned.

Returns

Returns a List of ResolveInfo objects containing one entry for each matching receiver, ordered from best to worst. If there are no matching receivers, an empty list or null is returned.

Attributes

Remarks

Retrieve all receivers that can handle a broadcast of the given intent.

Use #queryBroadcastReceivers(Intent, ResolveInfoFlags) when long flags are needed.

Java documentation for android.content.pm.PackageManager.queryBroadcastReceivers(android.content.Intent, int).

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

QueryBroadcastReceivers(Intent, PackageManager+ResolveInfoFlags)

[Android.Runtime.Register("queryBroadcastReceivers", "(Landroid/content/Intent;Landroid/content/pm/PackageManager$ResolveInfoFlags;)Ljava/util/List;", "GetQueryBroadcastReceivers_Landroid_content_Intent_Landroid_content_pm_PackageManager_ResolveInfoFlags_Handler", ApiSince=33)]
public virtual System.Collections.Generic.IList<Android.Content.PM.ResolveInfo> QueryBroadcastReceivers (Android.Content.Intent intent, Android.Content.PM.PackageManager.ResolveInfoFlags flags);
[<Android.Runtime.Register("queryBroadcastReceivers", "(Landroid/content/Intent;Landroid/content/pm/PackageManager$ResolveInfoFlags;)Ljava/util/List;", "GetQueryBroadcastReceivers_Landroid_content_Intent_Landroid_content_pm_PackageManager_ResolveInfoFlags_Handler", ApiSince=33)>]
abstract member QueryBroadcastReceivers : Android.Content.Intent * Android.Content.PM.PackageManager.ResolveInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ResolveInfo>
override this.QueryBroadcastReceivers : Android.Content.Intent * Android.Content.PM.PackageManager.ResolveInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ResolveInfo>

Parameters

intent
Intent

Returns

Attributes

Applies to