BarcodeScannerPlugin.getSupportedFormats()

BFChain2023年8月11日
  • Plugin
  • BarcodeScannerPlugin
  • getSupportedFormats
小于 1 分钟

解析条码数据的方法;

BarcodeScannerPlugin.getSupportedFormats()

参数

返回值

一个Promise对象,resolve兑现一个数组;数组项是支持解析的类型名称;

示例

import { barcodeScannerPlugin } from "@plaoc/plugin";
;(async () => {
  const res = await barcodeScannerPlugin.getSupportedFormats()
})();

平台兼容性

属性/方法/事件AndroidIOSDesktop-DevDesktop
getSupportedFormats

相关链接

BarcodeScannerPlugin

评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v2.13.0