Share via


IInputConnection.FinishComposingText Method

Definition

Have the text editor finish whatever composing text is currently active.

[Android.Runtime.Register("finishComposingText", "()Z", "GetFinishComposingTextHandler:Android.Views.InputMethods.IInputConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool FinishComposingText ();
[<Android.Runtime.Register("finishComposingText", "()Z", "GetFinishComposingTextHandler:Android.Views.InputMethods.IInputConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member FinishComposingText : unit -> bool

Returns

true on success, false if the input connection is no longer valid.

Attributes

Remarks

Have the text editor finish whatever composing text is currently active. This simply leaves the text as-is, removing any special composing styling or other state that was around it. The cursor position remains unchanged.

<strong>IME authors:</strong> be aware that this call may be expensive with some editors.

<strong>Editor authors:</strong> please note that the cursor may be anywhere in the contents when this is called, including in the middle of the composing span or in a completely unrelated place. It must not move.

Java documentation for android.view.inputmethod.InputConnection.finishComposingText().

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