KeyboardView.OnLongPress(Keyboard+Key) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當按鍵被長按時會被呼叫。
[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
參數
- popupKey
- Keyboard.Key
那個被按下已久的鑰匙
傳回
若長按操作為 true,否則為 false。 如果子類別不願意處理該呼叫,子類別應該在基底類別中呼叫該方法。
- 屬性
備註
Java 文件 android.inputmethodservice.KeyboardView.onLongPress(android.inputmethodservice.Key)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。