isSupportNFC

是否支持NFC

import { MNfc } from "@yl/super-jssdk"

MNfc.isSupportNFC()

返回说明

参数 类型 作用
resolve(res) Function 成功回调,res: true,支持nfc;false,不支持nfc
reject(err) Function 失败回调,err为详细错误信息,是一个json对象,例如:{"errCode":-1,"errMsg":"出错啦"}

代码示例


MNfc.isSupportNFC()
  .then((res) => {
    console.log(res);
  })
  .catch(err => {
    console.log('插件调用失败:', err)
  })

results matching ""

    No results matching ""