Partager via


MockPackageManager.QueryBroadcastReceivers(Intent, PackageInfoFlags) Method

Definition

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 override 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")>]
override this.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.

Returns

Attributes

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.

Applies to