Share via


IInputConnection.CloseConnection Method

Definition

Called by the system up to only once to notify that the system is about to invalidate connection between the input method and the application.

[Android.Runtime.Register("closeConnection", "()V", "GetCloseConnectionHandler:Android.Views.InputMethods.IInputConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)]
public void CloseConnection ();
[<Android.Runtime.Register("closeConnection", "()V", "GetCloseConnectionHandler:Android.Views.InputMethods.IInputConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)>]
abstract member CloseConnection : unit -> unit
Attributes

Remarks

Called by the system up to only once to notify that the system is about to invalidate connection between the input method and the application.

<strong>Editor authors</strong>: You can clear all the nested batch edit right now and you no longer need to handle subsequent callbacks on this connection, including #beginBatchEdit()}. Note that although the system tries to call this method whenever possible, there may be a chance that this method is not called in some exceptional situations.

Note: This does nothing when called from input methods.

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

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