Språk

InputConnectionWrapper.CommitCorrection(CorrectionInfo) Method

Definition

Commit a correction automatically performed on the raw user's input.

[Android.Runtime.Register("commitCorrection", "(Landroid/view/inputmethod/CorrectionInfo;)Z", "GetCommitCorrection_Landroid_view_inputmethod_CorrectionInfo_Handler")]
public virtual bool CommitCorrection(Android.Views.InputMethods.CorrectionInfo? correctionInfo);
[<Android.Runtime.Register("commitCorrection", "(Landroid/view/inputmethod/CorrectionInfo;)Z", "GetCommitCorrection_Landroid_view_inputmethod_CorrectionInfo_Handler")>]
abstract member CommitCorrection : Android.Views.InputMethods.CorrectionInfo -> bool
override this.CommitCorrection : Android.Views.InputMethods.CorrectionInfo -> bool

Parameters

correctionInfo
CorrectionInfo

Detailed information about the correction.

Returns

true on success, false if the input connection is no longer valid. Since Android Build.VERSION_CODES.N until Build.VERSION_CODES.TIRAMISU, this API returned false when the target application does not implement this method.

Implements

Attributes

Remarks

Commit a correction automatically performed on the raw user's input. A typical example would be to correct typos using a dictionary.

Java documentation for android.view.inputmethod.InputConnectionWrapper.commitCorrection(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