次の方法で共有


KeyboardView.OnLongPress(Keyboard+Key) Method

Definition

Called when a key is long pressed.

[Android.Runtime.Register("onLongPress", "(Landroid/inputmethodservice/Keyboard$Key;)Z", "GetOnLongPress_Landroid_inputmethodservice_Keyboard_Key_Handler")]
protected virtual bool OnLongPress (Android.InputMethodServices.Keyboard.Key? popupKey);
[<Android.Runtime.Register("onLongPress", "(Landroid/inputmethodservice/Keyboard$Key;)Z", "GetOnLongPress_Landroid_inputmethodservice_Keyboard_Key_Handler")>]
abstract member OnLongPress : Android.InputMethodServices.Keyboard.Key -> bool
override this.OnLongPress : Android.InputMethodServices.Keyboard.Key -> bool

Parameters

popupKey
Keyboard.Key

the key that was long pressed

Returns

true if the long press is handled, false otherwise. Subclasses should call the method on the base class if the subclass doesn't wish to handle the call.

Attributes

Remarks

Java documentation for android.inputmethodservice.KeyboardView.onLongPress(android.inputmethodservice.Key).

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