Partager via


InputMethod.OnFinishInput Method

Definition

Called to inform the accessibility service that text input has finished in the last editor.

[Android.Runtime.Register("onFinishInput", "()V", "GetOnFinishInputHandler", ApiSince=33)]
public virtual void OnFinishInput ();
[<Android.Runtime.Register("onFinishInput", "()V", "GetOnFinishInputHandler", ApiSince=33)>]
abstract member OnFinishInput : unit -> unit
override this.OnFinishInput : unit -> unit
Attributes

Remarks

Called to inform the accessibility service that text input has finished in the last editor. At this point there may be a call to #onStartInput(EditorInfo, boolean) to perform input in a new editor, or the accessibility service may be left idle. This method is <em>not</em> called when input restarts in the same editor.

The default implementation uses the InputConnection to clear any active composing text; you can override this (not calling the base class implementation) to perform whatever behavior you would like.

Java documentation for android.accessibilityservice.InputMethod.onFinishInput().

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