Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!
added in version 25.1.0
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1

InputConnectionCompat.OnCommitContentListener

public static interface InputConnectionCompat.OnCommitContentListener

android.support.v13.view.inputmethod.InputConnectionCompat.OnCommitContentListener


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

Summary

Public methods

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

Intercepts InputConnection#commitContent API calls.

Public methods

onCommitContent

added in version 25.1.0
boolean onCommitContent (InputContentInfoCompat inputContentInfo, 
                int flags, 
                Bundle opts)

Intercepts InputConnection#commitContent API calls.

Parameters
inputContentInfo InputContentInfoCompat: content to be committed

flags int: 0 or INPUT_CONTENT_GRANT_READ_URI_PERMISSION

opts Bundle: optional bundle data. This can be null

Returns
boolean 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