共用方式為


AbstractInputMethodService.AbstractInputMethodImpl.StartInput Method

Definition

This method is called when the application starts to receive text and it is ready for this input method to process received events and send result text back to the application.

[Android.Runtime.Register("startInput", "(Landroid/view/inputmethod/InputConnection;Landroid/view/inputmethod/EditorInfo;)V", "GetStartInput_Landroid_view_inputmethod_InputConnection_Landroid_view_inputmethod_EditorInfo_Handler")]
public abstract void StartInput (Android.Views.InputMethods.IInputConnection inputConnection, Android.Views.InputMethods.EditorInfo editorInfo);
[<Android.Runtime.Register("startInput", "(Landroid/view/inputmethod/InputConnection;Landroid/view/inputmethod/EditorInfo;)V", "GetStartInput_Landroid_view_inputmethod_InputConnection_Landroid_view_inputmethod_EditorInfo_Handler")>]
abstract member StartInput : Android.Views.InputMethods.IInputConnection * Android.Views.InputMethods.EditorInfo -> unit

Parameters

inputConnection
IInputConnection

Optional specific input connection for communicating with the text box; if null, you should use the generic bound input connection.

editorInfo
EditorInfo

Information about the text box (typically, an EditText) that requests input.

Implements

Attributes

Remarks

This method is called when the application starts to receive text and it is ready for this input method to process received events and send result text back to the application.

Java documentation for android.view.inputmethod.InputMethod.startInput(android.view.inputmethod.InputConnection, android.view.inputmethod.EditorInfo).

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