InputMethodService.OnUpdateEditorToolType(MotionEventToolType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when the user tapped or clicked an android.widget.Editor
.
[Android.Runtime.Register("onUpdateEditorToolType", "(I)V", "GetOnUpdateEditorToolType_IHandler", ApiSince=34)]
public virtual void OnUpdateEditorToolType (Android.Views.MotionEventToolType toolType);
[<Android.Runtime.Register("onUpdateEditorToolType", "(I)V", "GetOnUpdateEditorToolType_IHandler", ApiSince=34)>]
abstract member OnUpdateEditorToolType : Android.Views.MotionEventToolType -> unit
override this.OnUpdateEditorToolType : Android.Views.MotionEventToolType -> unit
Parameters
- toolType
- MotionEventToolType
what MotionEvent#getToolType(int)
was used to click on editor.
- Attributes
Remarks
Called when the user tapped or clicked an android.widget.Editor
. This can be useful when IME makes a decision of showing Virtual keyboard based on what MotionEvent#getToolType(int)
was used to click the editor. e.g. when toolType is MotionEvent#TOOL_TYPE_STYLUS
, IME may choose to show a companion widget instead of normal virtual keyboard.
This method is called after #onStartInput(EditorInfo, boolean)
and before #onStartInputView(EditorInfo, boolean)
when editor was clicked with a known tool type.
Default implementation does nothing.
Java documentation for android.inputmethodservice.InputMethodService.onUpdateEditorToolType(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.