public final class EditorInfoCompat extends Object
EditorInfo
introduced after API level 13 in a backwards
compatible fashion.Constructor and Description |
---|
EditorInfoCompat() |
Modifier and Type | Method and Description |
---|---|
static String[] |
getContentMimeTypes(EditorInfo editorInfo)
Gets MIME types that can be accepted by the target editor if the IME calls
InputConnectionCompat.commitContent(InputConnection, EditorInfo,
InputContentInfoCompat, int, Bundle) |
static void |
setContentMimeTypes(EditorInfo editorInfo,
String[] contentMimeTypes)
Sets MIME types that can be accepted by the target editor if the IME calls
InputConnectionCompat.commitContent(InputConnection, EditorInfo,
InputContentInfoCompat, int, Bundle) . |
public static void setContentMimeTypes(@NonNull EditorInfo editorInfo, @Nullable String[] contentMimeTypes)
InputConnectionCompat.commitContent(InputConnection, EditorInfo,
InputContentInfoCompat, int, Bundle)
.editorInfo
- the editor with which we associate supported MIME typescontentMimeTypes
- an array of MIME types. null
and an empty array means that
{@link InputConnectionCompat#commitContent(
InputConnection, EditorInfo, InputContentInfoCompat, int, Bundle)
is not supported on this Editor@NonNull public static String[] getContentMimeTypes(EditorInfo editorInfo)
InputConnectionCompat.commitContent(InputConnection, EditorInfo,
InputContentInfoCompat, int, Bundle)
editorInfo
- the editor from which we get the MIME typesInputConnectionCompat.commitContent(InputConnection, EditorInfo, InputContentInfoCompat,
int, Bundle)
is not supported on this editor