ImageDecoder.IsMimeTypeSupported(String) Method

Definition

Return if the given MIME type is a supported file format that can be decoded by this class.

[Android.Runtime.Register("isMimeTypeSupported", "(Ljava/lang/String;)Z", "", ApiSince=29)]
public static bool IsMimeTypeSupported (string mimeType);
[<Android.Runtime.Register("isMimeTypeSupported", "(Ljava/lang/String;)Z", "", ApiSince=29)>]
static member IsMimeTypeSupported : string -> bool

Parameters

mimeType
String

Returns

Attributes

Remarks

Return if the given MIME type is a supported file format that can be decoded by this class. This can be useful to determine if a file can be decoded directly, or if it needs to be converted into a more general format using an API like ContentResolver#openTypedAssetFile.

Java documentation for android.graphics.ImageDecoder.isMimeTypeSupported(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to