Wondering what’s next for npm?Check out our public roadmap! »

    cordova-plugin-scancodeplugin

    1.0.0 • Public • Published

    scanCodePlugin

    ionic3 二维码扫描插件,安卓及iOS平台皆可用.

    clone from https://github.com/YQianIOS/scanCodePlugin

    Usage

    ionic cordova plugin add cordova-plugin-scancodeplugin

     
         cordova.plugins.ScanCodePlugin.scan("扫描二维码", function (msg) {
                if (!msg) {
                    return
                }
                if (that.homeModel.mobile === msg) {
                    that.alert.showAlert('不能添加自己为好友');
                    return;
                }
     
                that.searchWorker(msg);
            }, function (msg) {
                that.alert.showAlert("扫描二维码失败");
            });
     
     

    Install

    npm i cordova-plugin-scancodeplugin

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar