TextView.OnCommitCorrection(CorrectionInfo) Method

Definition

Called by the framework in response to a text auto-correction (such as fixing a typo using a dictionary) from the current input method, provided by it calling InputConnection#commitCorrection(CorrectionInfo) InputConnection.commitCorrection().

[Android.Runtime.Register("onCommitCorrection", "(Landroid/view/inputmethod/CorrectionInfo;)V", "GetOnCommitCorrection_Landroid_view_inputmethod_CorrectionInfo_Handler")]
public virtual void OnCommitCorrection (Android.Views.InputMethods.CorrectionInfo? info);
[<Android.Runtime.Register("onCommitCorrection", "(Landroid/view/inputmethod/CorrectionInfo;)V", "GetOnCommitCorrection_Landroid_view_inputmethod_CorrectionInfo_Handler")>]
abstract member OnCommitCorrection : Android.Views.InputMethods.CorrectionInfo -> unit
override this.OnCommitCorrection : Android.Views.InputMethods.CorrectionInfo -> unit

Parameters

info
CorrectionInfo

The auto correct info about the text that was corrected.

Attributes

Remarks

Called by the framework in response to a text auto-correction (such as fixing a typo using a dictionary) from the current input method, provided by it calling InputConnection#commitCorrection(CorrectionInfo) InputConnection.commitCorrection(). The default implementation flashes the background of the corrected word to provide feedback to the user.

Java documentation for android.widget.TextView.onCommitCorrection(android.view.inputmethod.CorrectionInfo).

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