InputConnectionCompat.OnCommitContentListener

interface InputConnectionCompat.OnCommitContentListener


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

Summary

Public methods

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

Intercepts InputConnection#commitContent API calls.

Public methods

onCommitContent

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

Intercepts InputConnection#commitContent API calls.

Parameters
@NonNull InputContentInfoCompat inputContentInfo

content to be committed

int flags

0 or INPUT_CONTENT_GRANT_READ_URI_PERMISSION

@Nullable Bundle opts

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