InputConnectionCompat.OnCommitContentListener

Added in 1.1.0

interface InputConnectionCompat.OnCommitContentListener


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

Summary

Public functions

Boolean
onCommitContent(
    inputContentInfo: InputContentInfoCompat,
    flags: Int,
    opts: Bundle?
)

Intercepts InputConnection#commitContent API calls.

Public functions

onCommitContent

Added in 1.1.0
fun onCommitContent(
    inputContentInfo: InputContentInfoCompat,
    flags: Int,
    opts: Bundle?
): Boolean

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