MockPackageManager.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 override 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")>]
override this.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. Currently should always be 0.

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