KeyEvent.HasModifiers(MetaKeyStates) KeyEvent.HasModifiers(MetaKeyStates) Method

Definition

Returns true if only the specified modifiers keys are pressed.

[Android.Runtime.Register("hasModifiers", "(I)Z", "", ApiSince=11)]
public bool HasModifiers (Android.Views.MetaKeyStates modifiers);
member this.HasModifiers : Android.Views.MetaKeyStates -> bool

Parameters

modifiers
MetaKeyStates MetaKeyStates

The meta state of the modifier keys to check. May be a combination of modifier meta states as defined by ModifierMetaStateMask. May be 0 to ensure that no modifier keys are pressed.

Returns

Exceptions

if the modifiers parameter contains invalid modifiers

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