PackageManager.HasSystemFeature Method    
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| HasSystemFeature(String) | 
						 Check whether the given feature name is one of the available features as
returned by   | 
        	
| HasSystemFeature(String, Int32) | 
						 Check whether the given feature name and version is one of the available
features as returned by   | 
        	
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
Returns true if the devices supports the feature, else false.
- Attributes
 
Remarks
Check whether the given feature name is one of the available features as returned by #getSystemAvailableFeatures(). This tests for the presence of <em>any</em> version of the given feature name; use #hasSystemFeature(String, int) to check for a minimum version.
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
Returns true if the devices supports the feature, else false.
- Attributes
 
Remarks
Check whether the given feature name and version is one of the available features as returned by #getSystemAvailableFeatures(). Since features are defined to always be backwards compatible, this returns true if the available feature version is greater than or equal to the requested version.
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.