public interface

InputConnectionCompat.OnCommitContentListener

 androidx.core.view.inputmethod.InputConnectionCompat.OnCommitContentListener

Overview

Listener for commitContent method call, in a backwards compatible fashion.

Summary

Methods
public booleanonCommitContent(InputContentInfoCompat inputContentInfo, int flags, Bundle opts)

Intercepts InputConnection#commitContent API calls.

Methods

public boolean onCommitContent(InputContentInfoCompat inputContentInfo, int flags, Bundle opts)

Intercepts InputConnection#commitContent API calls.

Parameters:

inputContentInfo: content to be committed
flags: 0 or InputConnectionCompat.INPUT_CONTENT_GRANT_READ_URI_PERMISSION
opts: optional bundle data. This can be null

Returns:

true if this request is accepted by the application, no matter if the request is already handled or still being handled in background. false to use the default implementation