InputMethodService.OnStartInput(EditorInfo, Boolean) 方法

定義

呼叫以通知輸入方法文字輸入已在編輯器中開始。

[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

參數

attribute
EditorInfo

輸入起始的編輯器屬性。

restarting
Boolean

若輸入在同一編輯器中重啟,例如應用程式更改了編輯器中的文字,則設為 true。 否則將為錯誤,表示這是與編輯器的新會話。

屬性

備註

呼叫以通知輸入方法文字輸入已在編輯器中開始。 你應該用這個回調來初始化輸入的狀態,使其與編輯器給它的狀態相符。

Java 文件 android.inputmethodservice.InputMethodService.onStartInput(android.view.inputmethod.EditorInfo, boolean)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於