commitContent

open fun commitContent(@NonNull inputConnection: InputConnection, @NonNull editorInfo: EditorInfo, @NonNull inputContentInfo: InputContentInfoCompat, flags: Int, @Nullable opts: Bundle): Boolean(source)

Calls commitContent API, in a backwards compatible fashion.

Return

true if this request is accepted by the application, no matter if the request is already handled or still being handled in background

Parameters

inputConnection

InputConnection with which commitContent API will be called

editorInfo

EditorInfo associated with the given inputConnection

inputContentInfo

content information to be passed to the editor

opts

optional bundle data. This can be null