Udostępnij za pośrednictwem


TextView.OnCommitCompletion(CompletionInfo) Method

Definition

Called by the framework in response to a text completion from the current input method, provided by it calling InputConnection#commitCompletion InputConnection.commitCompletion().

[Android.Runtime.Register("onCommitCompletion", "(Landroid/view/inputmethod/CompletionInfo;)V", "GetOnCommitCompletion_Landroid_view_inputmethod_CompletionInfo_Handler")]
public virtual void OnCommitCompletion (Android.Views.InputMethods.CompletionInfo? text);
[<Android.Runtime.Register("onCommitCompletion", "(Landroid/view/inputmethod/CompletionInfo;)V", "GetOnCommitCompletion_Landroid_view_inputmethod_CompletionInfo_Handler")>]
abstract member OnCommitCompletion : Android.Views.InputMethods.CompletionInfo -> unit
override this.OnCommitCompletion : Android.Views.InputMethods.CompletionInfo -> unit

Parameters

text
CompletionInfo

The auto complete text the user has selected.

Attributes

Remarks

Called by the framework in response to a text completion from the current input method, provided by it calling InputConnection#commitCompletion InputConnection.commitCompletion(). The default implementation does nothing; text views that are supporting auto-completion should override this to do their desired behavior.

Java documentation for android.widget.TextView.onCommitCompletion(android.view.inputmethod.CompletionInfo).

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