PackageManager.QueryInstrumentation(String, PackageInfoFlags) Method

Definition

Retrieve information about available instrumentation code.

[Android.Runtime.Register("queryInstrumentation", "(Ljava/lang/String;I)Ljava/util/List;", "GetQueryInstrumentation_Ljava_lang_String_IHandler")]
public abstract System.Collections.Generic.IList<Android.Content.PM.InstrumentationInfo> QueryInstrumentation (string targetPackage, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("queryInstrumentation", "(Ljava/lang/String;I)Ljava/util/List;", "GetQueryInstrumentation_Ljava_lang_String_IHandler")>]
abstract member QueryInstrumentation : string * Android.Content.PM.PackageInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.InstrumentationInfo>

Parameters

targetPackage
String

If null, all instrumentation is returned; only the instrumentation targeting this package name is returned.

flags
PackageInfoFlags

Additional option flags to modify the data returned.

Returns

A list of InstrumentationInfo objects containing one entry for each matching instrumentation. If there are no instrumentation available, returns an empty list.

Attributes

Remarks

Retrieve information about available instrumentation code. May be used to retrieve either all instrumentation code, or only the code targeting a particular package.

Java documentation for android.content.pm.PackageManager.queryInstrumentation(java.lang.String, 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