共用方式為


Window.HasFeature(WindowFeatures) Method

Definition

Query for the availability of a certain feature.

[Android.Runtime.Register("hasFeature", "(I)Z", "GetHasFeature_IHandler")]
public virtual bool HasFeature (Android.Views.WindowFeatures feature);
[<Android.Runtime.Register("hasFeature", "(I)Z", "GetHasFeature_IHandler")>]
abstract member HasFeature : Android.Views.WindowFeatures -> bool
override this.HasFeature : Android.Views.WindowFeatures -> bool

Parameters

feature
WindowFeatures

The feature ID to check

Returns

true if the feature is enabled, false otherwise.

Attributes

Remarks

Query for the availability of a certain feature.

Java documentation for android.view.Window.hasFeature(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