共用方式為


MotionEvent.MetaState Property

Definition

Returns the state of any meta / modifier keys that were in effect when the event was generated.

public Android.Views.MetaKeyStates MetaState { [Android.Runtime.Register("getMetaState", "()I", "")] get; }
[<get: Android.Runtime.Register("getMetaState", "()I", "")>]
member this.MetaState : Android.Views.MetaKeyStates

Property Value

an integer in which each bit set to 1 represents a pressed meta key

Attributes

Remarks

Returns the state of any meta / modifier keys that were in effect when the event was generated. This is the same values as those returned by KeyEvent#getMetaState() KeyEvent.getMetaState.

Java documentation for android.view.MotionEvent.getMetaState().

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

See also