Share via


MockPackageManager.HasSystemFeature Method

Definition

Overloads

HasSystemFeature(String)

Check whether the given feature name is one of the available features as returned by GetSystemAvailableFeatures().

HasSystemFeature(String, Int32)

HasSystemFeature(String)

Check whether the given feature name is one of the available features as returned by GetSystemAvailableFeatures().

[Android.Runtime.Register("hasSystemFeature", "(Ljava/lang/String;)Z", "GetHasSystemFeature_Ljava_lang_String_Handler")]
public override bool HasSystemFeature (string? name);
[<Android.Runtime.Register("hasSystemFeature", "(Ljava/lang/String;)Z", "GetHasSystemFeature_Ljava_lang_String_Handler")>]
override this.HasSystemFeature : string -> bool

Parameters

name
String

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

HasSystemFeature(String, Int32)

[Android.Runtime.Register("hasSystemFeature", "(Ljava/lang/String;I)Z", "GetHasSystemFeature_Ljava_lang_String_IHandler", ApiSince=24)]
public override bool HasSystemFeature (string? name, int version);
[<Android.Runtime.Register("hasSystemFeature", "(Ljava/lang/String;I)Z", "GetHasSystemFeature_Ljava_lang_String_IHandler", ApiSince=24)>]
override this.HasSystemFeature : string * int -> bool

Parameters

name
String
version
Int32

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