InputConnectionCompat

Helper for accessing features in InputConnection introduced after API level 13 in a backwards compatible fashion.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
Listener for commitContent method call, in a backwards compatible fashion.

Properties

Link copied to clipboard
When this flag is used, the editor will be able to request temporary access permissions to the content URI contained in the InputContentInfoCompat object, in a similar manner that has been recommended in Sharing Files.

Functions

Link copied to clipboard
open fun commitContent(@NonNull inputConnection: InputConnection, @NonNull editorInfo: EditorInfo, @NonNull inputContentInfo: InputContentInfoCompat, flags: Int, @Nullable opts: Bundle): Boolean
Calls commitContent API, in a backwards compatible fashion.
Link copied to clipboard
open fun createWrapper(@NonNull view: View, @NonNull inputConnection: InputConnection, @NonNull editorInfo: EditorInfo): InputConnection
Creates a wrapper InputConnection that implements InputConnection's features on past versions of Android.
Creates a wrapper InputConnection object from an existing InputConnection and OnCommitContentListener that can be returned to the system.