Android.Views.View.OnCreateInputConnection Method
Create a new InputConnection for an InputMethod to interact with the view.

Syntax

[Android.Runtime.Register("onCreateInputConnection", "(Landroid/view/inputmethod/EditorInfo;)Landroid/view/inputmethod/InputConnection;", "GetOnCreateInputConnection_Landroid_view_inputmethod_EditorInfo_Handler")]
public virtual Android.Views.InputMethods.IInputConnection OnCreateInputConnection (Android.Views.InputMethods.EditorInfo outAttrs)

Parameters

outAttrs
Fill in with attribute information about the connection.

Returns

Documentation for this section has not yet been entered.

Remarks

Create a new InputConnection for an InputMethod to interact with the view. The default implementation returns null, since it doesn't support input methods. You can override this to implement such support. This is only needed for views that take focus and text input.

When implementing this, you probably also want to implement View.OnCheckIsTextEditor to indicate you will return a non-null InputConnection.

Also, take good care to fill in the Android.Views.InputMethods.EditorInfo object correctly and in its entirety, so that the connected IME can rely on its values. For example, Android.Views.InputMethods.EditorInfo.InitialSelStart and Android.Views.InputMethods.EditorInfo.InitialSelEnd members must be filled in with the correct cursor position for IMEs to work correctly with your application.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3