Språk

BaseInputConnection.CommitCorrection(CorrectionInfo) Method

Definition

Default implementation does nothing and returns false.

[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

Default implementation does nothing and returns false.

Java documentation for android.view.inputmethod.BaseInputConnection.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