belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
InputConnectionCompat
public
final
class
InputConnectionCompat
extends Object
java.lang.Object | |
↳ | android.support.v13.view.inputmethod.InputConnectionCompat |
Helper for accessing features in InputConnection
introduced after API level 13 in a
backwards compatible fashion.
Summary
Nested classes | |
---|---|
interface |
InputConnectionCompat.OnCommitContentListener
Listener for commitContent method call, in a backwards compatible fashion. |
Constants | |
---|---|
int |
INPUT_CONTENT_GRANT_READ_URI_PERMISSION
When this flag is used, the editor will be able to request temporary access permissions to
the content URI contained in the |
Public constructors | |
---|---|
InputConnectionCompat()
|
Public methods | |
---|---|
static
boolean
|
commitContent(InputConnection inputConnection, EditorInfo editorInfo, InputContentInfoCompat inputContentInfo, int flags, Bundle opts)
Calls commitContent API, in a backwards compatible fashion. |
static
InputConnection
|
createWrapper(InputConnection inputConnection, EditorInfo editorInfo, InputConnectionCompat.OnCommitContentListener onCommitContentListener)
Creates a wrapper |
Inherited methods | |
---|---|
![]()
java.lang.Object
|
Constants
INPUT_CONTENT_GRANT_READ_URI_PERMISSION
int INPUT_CONTENT_GRANT_READ_URI_PERMISSION
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.
Make sure that the content provider owning the Uri sets the
grantUriPermissions
attribute in its manifest or
included the <grant-uri-permissions>
tag.
Supported only on API >= 25.
On API <= 24 devices, IME developers need to ensure that the content URI is accessible
only from the target application, for example, by generating a URL with a unique name that
others cannot guess. IME developers can also rely on the following information of the target
application to do additional access checks in their