Share via


InputMethodService.OnStartInput(EditorInfo, Boolean) Method

Definition

Called to inform the input method that text input has started in an editor.

[Android.Runtime.Register("onStartInput", "(Landroid/view/inputmethod/EditorInfo;Z)V", "GetOnStartInput_Landroid_view_inputmethod_EditorInfo_ZHandler")]
public virtual void OnStartInput (Android.Views.InputMethods.EditorInfo? attribute, bool restarting);
[<Android.Runtime.Register("onStartInput", "(Landroid/view/inputmethod/EditorInfo;Z)V", "GetOnStartInput_Landroid_view_inputmethod_EditorInfo_ZHandler")>]
abstract member OnStartInput : Android.Views.InputMethods.EditorInfo * bool -> unit
override this.OnStartInput : Android.Views.InputMethods.EditorInfo * bool -> unit

Parameters

attribute
EditorInfo

The attributes of the editor that input is starting in.

restarting
Boolean

Set to true if input is restarting in the same editor such as because the application has changed the text in the editor. Otherwise will be false, indicating this is a new session with the editor.

Attributes

Remarks

Called to inform the input method that text input has started in an editor. You should use this callback to initialize the state of your input to match the state of the editor given to it.

Java documentation for android.inputmethodservice.InputMethodService.onStartInput(android.view.inputmethod.EditorInfo, boolean).

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