Skip to content

SUDImageDecoder.isTypeSupported ​

JS
Promise<boolean> SUDImageDecoder.isTypeSupported(string type)

功能描述

探测当前 Runtime 是否能解码指定的 image MIME。

参数

  • string type: 要探测的 MIME 类型,例如 "image/gif"

返回值

  • Promise: 成功时 resolve 为 boolean