PackageManager.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)

Check whether the given feature name and version is one of the available features as returned by #getSystemAvailableFeatures().

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 abstract bool HasSystemFeature (string featureName);
[<Android.Runtime.Register("hasSystemFeature", "(Ljava/lang/String;)Z", "GetHasSystemFeature_Ljava_lang_String_Handler")>]
abstract member HasSystemFeature : string -> bool

Parameters

featureName
String

Returns

Boolean

Returns true if the devices supports the feature, else false.

Attributes

Remarks

Java documentation for android.content.pm.PackageManager.hasSystemFeature(java.lang.String).

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)

Check whether the given feature name and version is one of the available features as returned by #getSystemAvailableFeatures().

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

Parameters

featureName
String
version
Int32

Returns

Boolean

Returns true if the devices supports the feature, else false.

Attributes

Remarks

Java documentation for android.content.pm.PackageManager.hasSystemFeature(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