InputMethodService.OnViewClicked(Boolean) 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 a text view.
[Android.Runtime.Register("onViewClicked", "(Z)V", "GetOnViewClicked_ZHandler")]
public virtual void OnViewClicked (bool focusChanged);
[<Android.Runtime.Register("onViewClicked", "(Z)V", "GetOnViewClicked_ZHandler")>]
abstract member OnViewClicked : bool -> unit
override this.OnViewClicked : bool -> unit
Parameters
- focusChanged
- Boolean
true if the user changed the focused view by this click.
- Attributes
Remarks
Called when the user tapped or clicked a text view. IMEs can't rely on this method being called because this was not part of the original IME protocol, so applications with custom text editing written before this method appeared will not call to inform the IME of this interaction.
This member is deprecated. The method may not be called for composite View
that works as a giant "Canvas", which can host its own UI hierarchy and sub focus state. android.webkit.WebView
is a good example. Application / IME developers should not rely on this method. If your goal is just being notified when an on-going input is interrupted, simply monitor #onFinishInput()
. If your goal is to know what MotionEvent#getToolType(int)
clicked on editor, use #onUpdateEditorToolType(int)
instead.
Java documentation for android.inputmethodservice.InputMethodService.onViewClicked(boolean)
.
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.