{"_id":"@capacitor-mobi/barcode-scanner","_rev":"14-3a74cfc536ad68ff7d0bf759e7d4c7bb","name":"@capacitor-mobi/barcode-scanner","dist-tags":{"latest":"2.0.0"},"versions":{"2.0.0-beta.2":{"name":"@capacitor-mobi/barcode-scanner","version":"2.0.0-beta.2","description":"A fast and efficient (QR) barcode scanner for Capacitor","main":"dist/plugin.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"lint":"npm run prettier -- --check && npm run swiftlint -- lint","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","build":"npm run clean && tsc && rollup -c rollup.config.js","clean":"rimraf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"tafelnl"},"license":"MIT","devDependencies":{"@capacitor/android":"^3.0.0","@capacitor/core":"^3.0.0","@capacitor/ios":"^3.0.0","@ionic/prettier-config":"^1.0.0","@ionic/swiftlint-config":"^1.0.0","@rollup/plugin-node-resolve":"^8.1.0","husky":"^4.3.0","np":"^6.5.0","prettier":"^2.1.2","prettier-plugin-java":"^0.8.3","pretty-quick":"^3.1.0","rimraf":"^3.0.2","rollup":"^2.32.0","swiftlint":"^1.0.1","typescript":"~4.0.3"},"peerDependencies":{"@capacitor/core":"^3.0.0"},"keywords":["capacitor","plugin","native"],"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"prettier":"@ionic/prettier-config","swiftlint":"@ionic/swiftlint-config","husky":{"hooks":{"pre-commit":"npx pretty-quick --staged"}},"repository":{"type":"git","url":"git+https://github.com/DutchConcepts/capacitor-barcode-scanner.git"},"bugs":{"url":"https://github.com/DutchConcepts/capacitor-barcode-scanner/issues"},"homepage":"https://github.com/DutchConcepts/capacitor-barcode-scanner#readme","directories":{"example":"examples"},"gitHead":"75427dd5b976b575e24556b0d054f7266de6632c","_id":"@capacitor-mobi/barcode-scanner@2.0.0-beta.2","_nodeVersion":"14.16.0","_npmVersion":"7.13.0","dist":{"integrity":"sha512-haopWdjrCAJT4pQ1CmH9L5TyU7y4MhqOnSFh8vbaxiVbRh7vCGDkyTS7GrpdYHNu4H+jG/a9OST9Bj9CVOvYiA==","shasum":"74e2af770f893fefbff77417f1e5c9923a3c60f9","tarball":"https://registry.npmjs.org/@capacitor-mobi/barcode-scanner/-/barcode-scanner-2.0.0-beta.2.tgz","fileCount":44,"unpackedSize":178660,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpLvGCRA9TVsSAnZWagAAtk8P/3QxDXrnKeMQnJT6O0ci\n9LBbl/qGZLvymnpf5H9BphSaxGAa86bczcfeFsMRsBRgzDmuLrJP9zGcgw/S\nuNR1BF/x/5Q2ifp5Kz9pIg4shQpxp0wn/w/ANf/j0436qvEoAFFPbPEVaSGI\n5xMVvpS5PB5DpadCBO5sq/xHXgLKzhUusreU7CRIVnHpdnd+gOWZwF0pvYpY\nyx5l9Woi8tBbAdWrVT8NhBUUBA55unv1oM13fOsIVXA4FWtlLpib7OdQLogc\nCBh4Xtp8kzMYE3uSbBS0EMdzs+UyvHQ8o1rhoBvsDSNdDG6kBV5fuj7zuXke\nx6NnXINct9nc4azWOL+7HpliROeg9V/bI12r8pGithvUQM5jQYJDYtoHjgub\njAg4jUj9ixqdn81AKswEf5A0zrpjwemoaapTBRY55LeL/lS+BQ4XdRm+Uo0E\ne9R62FM+4nGEXB8Qp700BlBsO+ARdH1kbx/PiI4Am1vTebqDiQP0stIb3HZj\nkQAXr0u96fyAnFaOsRr1yjJVNAyTNxyXNQUUmsVoO+49lbBVRlAcYBsqZS4J\nqPyn1XNzSzVxcTETgxASrIEVrny9qKkj6MLdWQGXt4v2FihBWZx6piA6dd/O\n0WqtHnpVotiqjFbb6NlwQLG4F59bIzuJweuhjLxJgmHOCGmeZdbUyApv3JlK\n8vUC\r\n=sG7I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAmxOkbBUO2Jf1fYpSdwGW68pReLXdiFY1ZVVFm3LTQjAiAGIKBbd87nPzxb4vXUaRfchvLekXiAEdfIrSFkIkqLkQ=="}]},"_npmUser":{"name":"quangpdt","email":"quangphamit@gmail.com"},"maintainers":[{"name":"quangpdt","email":"quangphamit@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/barcode-scanner_2.0.0-beta.2_1621408709317_0.17257460897905452"},"_hasShrinkwrap":false},"2.0.0-beta.3":{"name":"@capacitor-mobi/barcode-scanner","version":"2.0.0-beta.3","description":"A fast and efficient (QR) barcode scanner for Capacitor","main":"dist/plugin.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"lint":"npm run prettier -- --check && npm run swiftlint -- lint","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","build":"npm run clean && tsc && rollup -c rollup.config.js","clean":"rimraf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"tafelnl"},"license":"MIT","devDependencies":{"@capacitor/android":"^3.0.0","@capacitor/core":"^3.0.0","@capacitor/ios":"^3.0.0","@ionic/prettier-config":"^1.0.0","@ionic/swiftlint-config":"^1.0.0","@rollup/plugin-node-resolve":"^8.1.0","husky":"^4.3.0","np":"^6.5.0","prettier":"^2.1.2","prettier-plugin-java":"^0.8.3","pretty-quick":"^3.1.0","rimraf":"^3.0.2","rollup":"^2.32.0","swiftlint":"^1.0.1","typescript":"~4.0.3"},"peerDependencies":{"@capacitor/core":"^3.0.0"},"keywords":["capacitor","plugin","native"],"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"prettier":"@ionic/prettier-config","swiftlint":"@ionic/swiftlint-config","husky":{"hooks":{"pre-commit":"npx pretty-quick --staged"}},"repository":{"type":"git","url":"git+https://github.com/DutchConcepts/capacitor-barcode-scanner.git"},"bugs":{"url":"https://github.com/DutchConcepts/capacitor-barcode-scanner/issues"},"homepage":"https://github.com/DutchConcepts/capacitor-barcode-scanner#readme","directories":{"example":"examples"},"gitHead":"75427dd5b976b575e24556b0d054f7266de6632c","_id":"@capacitor-mobi/barcode-scanner@2.0.0-beta.3","_nodeVersion":"14.16.0","_npmVersion":"7.13.0","dist":{"integrity":"sha512-d9KEYkyqv1tYV/8z6nStJ0eA33ydUmGhjWFkPmg8wAn2aBjGYFUCuUD/0553OSiyJiTkZxY0mYgPPfIVgPMpwQ==","shasum":"cdf0b0b117a66e392392204cfc7b46c661e04085","tarball":"https://registry.npmjs.org/@capacitor-mobi/barcode-scanner/-/barcode-scanner-2.0.0-beta.3.tgz","fileCount":44,"unpackedSize":178650,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpMCmCRA9TVsSAnZWagAAydsQAICGtHK15lfK+v56TS1B\n9IurDypE5IgAv2VNY4A26pdh3/x5/+71MBa1yD0Rr7ns9nAiHp/3Tii+1yR6\nUTZ88e85nKKBeG0JG6XAqATyPpXOQAaWzTW1fFktYa1CO2xlNSVldf9dqU5L\nt7zsWZdANsIcXt3cWPzBJnmEjLif3gdQ1Z4gGnugEqB70d0M0BjyRSvnIuLI\n2cwZ5zQ+2/BJ0ex81KcHbD+Yw4fa/nC6h7fUeRubJnfJ5KwI46pf73IYKSUe\n+Kx2bmAcYtuTueIjJLsAUDrn0LR2E+o9kGy6nplhDNXJWgg3pDdGmQsc9xao\nBR6ePykQUQUSjU88U9hpg3bFq+0i/cY2Oogu82KDyirGBmFmbrx7QJc1Vhlo\nCPMBXccaIF0qC/gEib7t4oTchdQR5ZfH/XHIpWhfFchpaOA80mSx5NXuUywN\nhSQTXTHgZZRWsymehFXV17seC0KSGA4VKQIM+YsedFZWfPNbbGvBxyBBLIK5\nNRXIFUkwuQn2omMacRKm80EMOGu/kL52B2q0oIAhaT1AJoAWYGHtQc/FlzxS\neisa01veS4CeMTLpxyMrrdOGO6XowonhGaHOP5YaXQcK9O/zTGa47I9I4+m2\n8m1f1jC5135+4vq8Q8hZierzFS/zoCrtx8CoXjDcUxcOgNeixzDc246p0Kz/\n/D6q\r\n=KPym\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHKxlvWrLgIypStPy/ICemLr955mI5B/Hi0lNVu4XMf/AiEA7TAC7J04C7BMalWE2RTZi6tui0MKhGUX238KuEKH3Wo="}]},"_npmUser":{"name":"quangpdt","email":"quangphamit@gmail.com"},"maintainers":[{"name":"quangpdt","email":"quangphamit@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/barcode-scanner_2.0.0-beta.3_1621409957821_0.8782293993819061"},"_hasShrinkwrap":false},"2.0.0-beta.4":{"name":"@capacitor-mobi/barcode-scanner","version":"2.0.0-beta.4","description":"A fast and efficient (QR) barcode scanner for Capacitor","main":"dist/plugin.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"lint":"npm run prettier -- --check && npm run swiftlint -- lint","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","build":"npm run clean && tsc && rollup -c rollup.config.js","clean":"rimraf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"tafelnl"},"license":"MIT","devDependencies":{"@capacitor/android":"^3.0.0","@capacitor/core":"^3.0.0","@capacitor/ios":"^3.0.0","@ionic/prettier-config":"^1.0.0","@ionic/swiftlint-config":"^1.0.0","@rollup/plugin-node-resolve":"^8.1.0","husky":"^4.3.0","np":"^6.5.0","prettier":"^2.1.2","prettier-plugin-java":"^0.8.3","pretty-quick":"^3.1.0","rimraf":"^3.0.2","rollup":"^2.32.0","swiftlint":"^1.0.1","typescript":"~4.0.3"},"peerDependencies":{"@capacitor/core":"^3.0.0"},"keywords":["capacitor","plugin","native"],"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"prettier":"@ionic/prettier-config","swiftlint":"@ionic/swiftlint-config","husky":{"hooks":{"pre-commit":"npx pretty-quick --staged"}},"repository":{"type":"git","url":"git+https://github.com/DutchConcepts/capacitor-barcode-scanner.git"},"bugs":{"url":"https://github.com/DutchConcepts/capacitor-barcode-scanner/issues"},"homepage":"https://github.com/DutchConcepts/capacitor-barcode-scanner#readme","directories":{"example":"examples"},"gitHead":"75427dd5b976b575e24556b0d054f7266de6632c","_id":"@capacitor-mobi/barcode-scanner@2.0.0-beta.4","_nodeVersion":"14.16.0","_npmVersion":"7.13.0","dist":{"integrity":"sha512-9XBc2FOUixv6hCGnK2g8QdEs33o4ZFQrAHa0u2ZApU2ZFvF1FwhEEc+KxZ+K2+53wKC6xqMyLaoVLNTMXFZdZw==","shasum":"919d5c9900717865082cef6234d5b418c9e984d8","tarball":"https://registry.npmjs.org/@capacitor-mobi/barcode-scanner/-/barcode-scanner-2.0.0-beta.4.tgz","fileCount":44,"unpackedSize":178620,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpM+aCRA9TVsSAnZWagAAXJ8P/iO0ZiVVPArxo3NaE6/U\nnabuUCEi0O6/MOCzQ7zRaV6jk7XKl+ygr3t+YwHftdiPZ86nJ8CoalCof921\n3Cl3/ykw6+nl21HLGX6w62dhchKXHxRhzH0rzib0vaZABr9GQb+5g6DzQftI\nBKqdawD3g2o73fD9WPisWkM44IGCcjqhMHv8tARoAG9P+ttqUzwfC9+nQHpO\nxXz977oLexbEtBFrKIEqhA/DRxuk2kv6FxZ3SbC5ti1B03WxVfi8vW6TU2Xm\nlG3hlQPGnigWNfiZKgB1oVVfRJhO41NFI7e+qjY9yCmvfupIwJMqdbrJ0xCu\ngkuSHNoF37O8m69P7vo89Z3yiYCLWZwUXXi9TfeZyK/LmdXi/lNnek8weMOA\nvdvdEDnFYx9e6NXKsNjJaJC9bt9IFgA5y4K995wLfMQOjpHjBZzWs+hx9WRK\nixMwbwW2s7P4bRgwagdXfxpBFYhKT4zERvVsGEirosaBwrcvO/xq8GeOJ0PN\nHfC1D9v525ukO1UhW9a6G+ZpNqgzLRde2DlCPRud7B1ZiujFZl8L0X4kACZY\nPA6thCHqH3KbKcYSwJQAj26NAUoltEDJ+o0PsKZOPRnerJ4ZPKKU6fi5L514\nLQL+h2CVWn8fSbe20UZVGHbPvds6AguPqdJcjrOHMFTDZVLDAjJdazYTnu21\n2gV0\r\n=xvRC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICX1/0cZ5EuHGa6WNPr2ymjKvHEmvJKW+Dc5GjndVQyeAiAb5HZL7GPQi2pZ8KrDPDToaXMioC1ykAamd7YsqLuvJg=="}]},"_npmUser":{"name":"quangpdt","email":"quangphamit@gmail.com"},"maintainers":[{"name":"quangpdt","email":"quangphamit@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/barcode-scanner_2.0.0-beta.4_1621413785613_0.036573472429101805"},"_hasShrinkwrap":false},"2.0.0":{"name":"@capacitor-mobi/barcode-scanner","version":"2.0.0","description":"A fast and efficient (QR) barcode scanner for Capacitor","main":"dist/plugin.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"lint":"npm run prettier -- --check && npm run swiftlint -- lint","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","build":"npm run clean && tsc && rollup -c rollup.config.js","clean":"rimraf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"tafelnl"},"license":"MIT","devDependencies":{"@capacitor/android":"^4.0.0","@capacitor/core":"^4.0.0","@capacitor/ios":"^4.0.0","@ionic/prettier-config":"^1.0.0","@ionic/swiftlint-config":"^1.0.0","@rollup/plugin-node-resolve":"^8.1.0","husky":"^4.3.0","np":"^6.5.0","prettier":"^2.1.2","prettier-plugin-java":"^0.8.3","pretty-quick":"^3.1.0","rimraf":"^3.0.2","rollup":"^2.32.0","swiftlint":"^1.0.1","typescript":"~4.0.3"},"peerDependencies":{"@capacitor/core":"^4.0.0"},"keywords":["capacitor","plugin","native"],"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"prettier":"@ionic/prettier-config","swiftlint":"@ionic/swiftlint-config","husky":{"hooks":{"pre-commit":"npx pretty-quick --staged"}},"repository":{"type":"git","url":"git+https://github.com/DutchConcepts/capacitor-barcode-scanner.git"},"bugs":{"url":"https://github.com/DutchConcepts/capacitor-barcode-scanner/issues"},"homepage":"https://github.com/DutchConcepts/capacitor-barcode-scanner#readme","directories":{"example":"examples"},"gitHead":"6826c6bb8fe16d1f67ed01097ea9d7bffd24c89b","_id":"@capacitor-mobi/barcode-scanner@2.0.0","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-XUPoAsD2YlEOllyIIHcf4XXdBBlmtYSFwfCVutcKOMrVb27dOUPWRuEm9z9H8aIkGWXu2uVfRQnpikzIuzIZCw==","shasum":"1f5cd89672693ee06d71d63418584d4b710a1209","tarball":"https://registry.npmjs.org/@capacitor-mobi/barcode-scanner/-/barcode-scanner-2.0.0.tgz","fileCount":44,"unpackedSize":258485,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIALkV1Mnc7rOwD+XPxzACP7NKG6zL/L2QSZChSRDlTqiAiAxJoDI/mmOWZo3vxvJTs0P2P7QDxo05mfRhCfuuNTR6w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjay6qACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmronA/+JIWmf5mshAZrrpGIn8jAL5+VqcKKZqDh1SG4sBXv5TuHIi+H\r\n65MnhUsiSKSQyDeiN1uy528NxNGrnCW0gknVR+5ntPGQxry06SesnslNEpCx\r\nniPuad9/6zx/NHZ5aTaw6AZDwo0daNjOIHt7GXPolois1V7OZIHQ6Z+FMHBa\r\nAhBYa7gZXaxbV1VzuTncmGClY0dIuq3fYgetDBTr0HW/PkUyAXof3u0ene3B\r\nxak74MdNrWwLUiuPECqOamcli2FZVilVEpldA7aFJsdn+EkfUE/Pm34larJv\r\ngLGrSz3x6k/dt9UJCOVgoOIKsh6NAPxg9COnVtrpPemKZH3hPEihP7lBblJA\r\nAKs5JmYnLiHd+4Uq3WOYiDIchiEnIvS6rhIDPdwYQmiKuNh6ZKKJwsO/z5AB\r\nFTbVizbrVswMLcwSEzLTDQLhX4SphJQ9l+eqICR7Z2V7Y5PmurdVVoTWQ2p9\r\niUWlDA36+y+lXkJHVFS987CP9FstxzLCkN9u5Hnb3CYqtZhtTwCZZayCJcKF\r\nwiL54+nvXxOEoxiakBbFIrnrQPnDuwbdSsWgmAQmvul5pYpMCNU2Ps/ONnZv\r\njdR1/MiEEzEutSY16yeR9Y4cxxOa2ZKWQPCyru4t3TTfUky0yzJaEmnxpILH\r\nkpF5VMZpZJhNqmD4oQPgorq8Wss1gZwHREk=\r\n=n15M\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"datpt154","email":"datpt154@gmail.com"},"maintainers":[{"name":"loet","email":"ueli.loetscher@gmail.com"},{"name":"hang.uy","email":"hang.uythanh@gmail.com"},{"name":"datpt154","email":"datpt154@gmail.com"},{"name":"trieutulong89kg","email":"trieutulong89kg@yahoo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/barcode-scanner_2.0.0_1667968682185_0.7731613751834361"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-19T07:18:28.956Z","2.0.0-beta.2":"2021-05-19T07:18:29.643Z","modified":"2023-08-29T04:25:55.906Z","2.0.0-beta.3":"2021-05-19T07:39:17.982Z","2.0.0-beta.4":"2021-05-19T08:43:05.830Z","2.0.0":"2022-11-09T04:38:02.402Z"},"maintainers":[{"email":"lonelyboy4746@gmail.com","name":"tanvo90"},{"email":"tai.phuc.tran@gmail.com","name":"tai.tran.95"},{"email":"ueli.loetscher@gmail.com","name":"loet"},{"email":"hang.uythanh@gmail.com","name":"hang.uy"},{"email":"datpt154@gmail.com","name":"datpt154"}],"description":"A fast and efficient (QR) barcode scanner for Capacitor","homepage":"https://github.com/DutchConcepts/capacitor-barcode-scanner#readme","keywords":["capacitor","plugin","native"],"repository":{"type":"git","url":"git+https://github.com/DutchConcepts/capacitor-barcode-scanner.git"},"author":{"name":"tafelnl"},"bugs":{"url":"https://github.com/DutchConcepts/capacitor-barcode-scanner/issues"},"license":"MIT","readme":"<p align=\"center\"><br><img src=\"https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png\" width=\"128\" height=\"128\" /></p>\n<h3 align=\"center\">Barcode Scanner</h3>\n<p align=\"center\"><strong><code>@capacitor-community/barcode-scanner</code></strong></p>\n<p align=\"center\">\n  A fast and efficient (QR) barcode scanner for Capacitor.\n</p>\n\n<p align=\"center\">\n  <img src=\"https://img.shields.io/maintenance/yes/2021?style=flat-square\" />\n  <!-- <a href=\"https://github.com/DutchConcepts/capacitor-barcode-scanner/actions?query=workflow%3A%22CI%22\"><img src=\"https://img.shields.io/github/workflow/status/dutchconcepts/capacitor-barcode-scanner/CI?style=flat-square\" /></a> -->\n  <a href=\"https://www.npmjs.com/package/@capacitor-community/barcode-scanner\"><img src=\"https://img.shields.io/npm/l/@capacitor-community/barcode-scanner?style=flat-square\" /></a>\n<br>\n  <a href=\"https://www.npmjs.com/package/@capacitor-community/barcode-scanner\"><img src=\"https://img.shields.io/npm/dw/@capacitor-community/barcode-scanner?style=flat-square\" /></a>\n  <a href=\"https://www.npmjs.com/package/@capacitor-community/barcode-scanner\"><img src=\"https://img.shields.io/npm/v/@capacitor-community/barcode-scanner?style=flat-square\" /></a>\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n<a href=\"#contributors-\"><img src=\"https://img.shields.io/badge/all%20contributors-1-orange?style=flat-square\" /></a>\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n</p>\n\n## Table of Contents\n\n- [Maintainers](#maintainers)\n- [About](#about)\n- [Installation](#installation)\n- [Configuration](#configuration)\n- [Usage](#usage)\n- [Troubleshooting](#troubleshooting)\n\n## Maintainers\n\n| Maintainer | GitHub                                | Social |\n| ---------- | ------------------------------------- | ------ |\n| tafelnl    | [tafelnl](https://github.com/tafelnl) |        |\n\n## About\n\n### Supported barcodes\n\nOn **iOS** this library makes use of Apple's own `AVFoundation`. This means **[this list of barcodes](https://developer.apple.com/documentation/avfoundation/avmetadatamachinereadablecodeobject/machine-readable_object_types)** should be supported.\n\nOn **Android** this library uses [`zxing-android-embedded`](https://github.com/journeyapps/zxing-android-embedded) which uses [`zxing`](https://github.com/zxing/zxing) under the hood. That means **[this list of barcodes](https://github.com/zxing/zxing/#supported-formats)** is supported.\n\n## Installation\n\n```bash\nnpm install @capacitor-community/barcode-scanner\nnpx cap sync\n```\n\n### iOS\n\nOn iOS, no further steps are needed.\n\n### Android\n\nOn Android, register the plugin in your main activity:\n\n```java\nimport com.dutchconcepts.capacitor.barcodescanner.BarcodeScanner;\n\npublic class MainActivity extends BridgeActivity {\n\n  @Override\n  public void onCreate(Bundle savedInstanceState) {\n    super.onCreate(savedInstanceState);\n\n    // Initializes the Bridge\n    this.init(\n        savedInstanceState,\n        new ArrayList<Class<? extends Plugin>>() {\n          {\n            // Additional plugins you've installed go here\n            // Ex: add(TotallyAwesomePlugin.class);\n            add(BarcodeScanner.class);\n          }\n        }\n      );\n  }\n}\n\n```\n\n## Configuration\n\n### iOS\n\nFor iOS you need to set a usage description in your info.plist file.\n\nThis can be done by either adding it to the Source Code directly or by using Xcode Property List inspector.\n\n**Adding it to the source code directly**\n\n1. Open up the Info.plist (in Xcode right-click > Open As > Source Code)\n2. With `<dict></dict>` change the following\n\n```diff\n<dict>\n+  <key>NSCameraUsageDescription</key>\n+  <string>To be able to scan barcodes</string>\n</dict>\n```\n\n_NOTE:_ \"To be able to scan barcodes\" can be substituted for anything you like.\n\n**Adding it by using Xcode Property List inspector**\n\n1. Open up the Info.plist **in Xcode** (right-click > Open As > Property List)\n2. Next to \"Information Property List\" click on the tiny `+` button.\n3. Under `key`, type \"Privacy - Camera Usage Description\"\n4. Under `value`, type \"To be able to scan barcodes\"\n\n_NOTE:_ \"To be able to scan barcodes\" can be substituted for anything you like.\n\nMore info here: https://developer.apple.com/documentation/bundleresources/information_property_list/nscamerausagedescription\n\n### Android\n\nWithin your `AndroidManifest.xml` file, change the following:\n\n```diff\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest\n  xmlns:android=\"http://schemas.android.com/apk/res/android\"\n+  xmlns:tools=\"http://schemas.android.com/tools\"\n  package=\"com.example\">\n\n  <application\n+    android:hardwareAccelerated=\"true\"\n  >\n  </application>\n\n+  <uses-permission android:name=\"android.permission.CAMERA\" />\n\n+  <uses-sdk tools:overrideLibrary=\"com.google.zxing.client.android\" />\n</manifest>\n```\n\n## Usage\n\nScanning a (QR) barcode can be as simple as:\n\n```js\nimport { Plugins } from '@capacitor/core';\n\nconst startScan = async () => {\n  const { BarcodeScanner } = Plugins;\n\n  BarcodeScanner.hideBackground(); // make background of WebView transparent\n\n  const result = await BarcodeScanner.startScan(); // start scanning and wait for a result\n\n  // if the result has content\n  if (result.hasContent) {\n    console.log(result.content); // log the raw scanned content\n  }\n};\n```\n\n### Opacity of the WebView\n\nBecause of the fact that the Scanner View will be rendered behind the WebView, you will have to call `hideBackground()` to make the WebView and the `<html>` element transparent. Every other element that needs transparency, you will have to handle yourself.\n\nThe `<html>` element is made transparent by adding `background: 'transparent';` to the `style=\"\"` attribute. So in theory it is possible that this is overwritten by some CSS property in your setup. Because this plugins does not aim to fix every single scenario out there, you will have to think of a workaround for this yourself, if this applies to you (probably not).\n\n### Stopping a scan\n\nAfter `startScan()` is resolved, the Scanner View will be automatically destroyed to save battery. But if you want to cancel the scan before `startScan()` is resolved (AKA no code has been recognized yet), you will have to call `stopScan()` manually. Example:\n\n```js\nimport { Plugins } from '@capacitor/core';\n\nconst stopScan = () => {\n  const { BarcodeScanner } = Plugins;\n  BarcodeScanner.showBackground();\n  BarcodeScanner.stopScan();\n};\n```\n\nIt is also important to think about cases where a users hits some sort of a back button (either hardware or software). It is advised to call `stopScan()` in these types of situations as well.\n\nIn Vue.js you could do something like this in a specific view where you use the scanner:\n\n```vue\n<script>\nimport { Plugins } from '@capacitor/core';\n\nexport default {\n  methods: {\n    stopScan() {\n      const { BarcodeScanner } = Plugins;\n      BarcodeScanner.showBackground();\n      BarcodeScanner.stopScan();\n    },\n  },\n\n  deactivated() {\n    this.stopScan();\n  },\n\n  beforeDestroy() {\n    this.stopScan();\n  },\n};\n</script>\n```\n\n### Preparing a scan\n\nTo boost performance and responsiveness (by just a bit), a `prepare()` method is available. If you know your script will call `startScan()` sometime very soon, you can call `prepare()` to make `startScan()` work even faster.\n\nFor example:\n\n```js\nimport { Plugins } from '@capacitor/core';\n\nconst prepare = () => {\n  const { BarcodeScanner } = Plugins;\n  BarcodeScanner.prepare();\n};\n\nconst startScan = async () => {\n  const { BarcodeScanner } = Plugins;\n  BarcodeScanner.hideBackground();\n  const result = await BarcodeScanner.startScan();\n  if (result.hasContent) {\n    console.log(result.content);\n  }\n};\n\nconst stopScan = () => {\n  const { BarcodeScanner } = Plugins;\n  BarcodeScanner.showBackground();\n  BarcodeScanner.stopScan();\n};\n\nconst askUser = () => {\n  prepare();\n\n  const c = confirm('Do you want to scan a barcode?');\n\n  if (c) {\n    startScan();\n  } else {\n    stopScan();\n  }\n};\n\naskUser();\n```\n\nThis is fully optional and would work the same as:\n\n```js\nconst startScan = async () => {\n  const { BarcodeScanner } = Plugins;\n  BarcodeScanner.hideBackground();\n  const result = await BarcodeScanner.startScan();\n  if (result.hasContent) {\n    console.log(result.content);\n  }\n};\n\nconst askUser = () => {\n  const c = confirm('Do you want to scan a barcode?');\n\n  if (c) {\n    startScan();\n  }\n};\n\naskUser();\n```\n\nThe latter will just appear a little slower to the user.\n\n### Permissions\n\nThis plugin does not automatically handle permissions. But the plugin _does_ have a utility method to check and request the permission. You will have to request the permission from JavaScript. A simple example follows:\n\n```js\nconst checkPermission = async () => {\n  const { BarcodeScanner } = Plugins;\n\n  // check or request permission\n  const status = await BarcodeScanner.checkPermission({ force: true });\n\n  if (status.granted) {\n    // the user granted permission\n    return true;\n  }\n\n  return false;\n};\n```\n\nA more detailed and more UX-optimized example:\n\n```js\nconst didUserGrantPermission = async () => {\n  const { BarcodeScanner } = Plugins;\n  // check if user already granted permission\n  const status = await BarcodeScanner.checkPermission({ force: false });\n\n  if (status.granted) {\n    // user granted permission\n    return true;\n  }\n\n  if (status.denied) {\n    // user denied permission\n    return false;\n  }\n\n  if (status.asked) {\n    // system requested the user for permission during this call\n    // only possible when force set to true\n  }\n\n  if (status.neverAsked) {\n    // user has not been requested this permission before\n    // it is advised to show the user some sort of prompt\n    // this way you will not waste your only chance to ask for the permission\n    const c = confirm(\n      'We need your permission to use your camera to be able to scan barcodes',\n    );\n    if (!c) {\n      return false;\n    }\n  }\n\n  if (status.restricted || status.unknown) {\n    // ios only\n    // probably means the permission has been denied\n    return false;\n  }\n\n  // user has not denied permission\n  // but the user also has not yet granted the permission\n  // so request it\n  const statusRequest = await BarcodeScanner.checkPermission({ force: true });\n\n  if (statusRequest.asked) {\n    // system requested the user for permission during this call\n    // only possible when force set to true\n  }\n\n  if (statusRequest.granted) {\n    // the user did grant the permission now\n    return true;\n  }\n\n  // user did not grant the permission, so he must have declined the request\n  return false;\n};\n\ndidUserGrantPermission();\n```\n\nIf a user denied the permission for good, `status.denied` will be set to true. On Android this will happen only when the user checks the box `never ask again`. To get the permission anyway you will have to redirect the user to the settings of the app. This can be done simply be doing the following:\n\n```js\nconst checkPermission = async () => {\n  const { BarcodeScanner } = Plugins;\n\n  const status = await BarcodeScanner.checkPermission();\n\n  if (status.denied) {\n    // the user denied permission for good\n    // redirect user to app settings if they want to grant it anyway\n    const c = confirm(\n      'If you want to grant permission for using your camera, enable it in the app settings.',\n    );\n    if (c) {\n      BarcodeScanner.openAppSettings();\n    }\n  }\n};\n```\n\n### Target only specific barcodes\n\nYou can setup the scanner to only recognize specific types of barcodes like this:\n\n`BarcodeScanner.startScan({ targetedFormats: ['QR_CODE'] })`\n\nIf `targetedFormats` is _not specified_ or _left empty_, _all types_ of barcodes will be targeted.\n\nThe following types are supported:\n\n<table>\n  <thead>\n    <tr>\n      <th>Category</th>\n      <th>Type</th>\n      <th>Android</th>\n      <th>iOS</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td rowspan=\"6\">1D Product</td>\n    </tr>\n    <tr>\n      <td>UPC_A</td>\n      <td>✔</td>\n      <td>✔**</td>\n    </tr>\n    <tr>\n      <td>UPC_E</td>\n      <td>✔</td>\n      <td>✔</td>\n    </tr>\n    <tr>\n      <td>UPC_EAN_EXTENSION</td>\n      <td>✔</td>\n      <td>✖</td>\n    </tr>\n    <tr>\n      <td>EAN_8</td>\n      <td>✔</td>\n      <td>✔</td>\n    </tr>\n    <tr>\n      <td>EAN_13</td>\n      <td>✔</td>\n      <td>✔</td>\n    </tr>\n    <tr>\n      <td rowspan=\"8\">1D Industrial</td>\n    </tr>\n    <tr>\n      <td>CODE_39</td>\n      <td>✔</td>\n      <td>✔</td>\n    </tr>\n    <tr>\n      <td>CODE_39_MOD_43</td>\n      <td>✖</td>\n      <td>✔</td>\n    </tr>\n    <tr>\n      <td>CODE_93</td>\n      <td>✔</td>\n      <td>✔</td>\n    </tr>\n    <tr>\n      <td>CODE_128</td>\n      <td>✔</td>\n      <td>✔</td>\n    </tr>\n    <tr>\n      <td>CODABAR</td>\n      <td>✔</td>\n      <td>✖</td>\n    </tr>\n    <tr>\n      <td>ITF</td>\n      <td>✔</td>\n      <td>✔</td>\n    </tr>\n    <tr>\n      <td>ITF_14</td>\n      <td>✖</td>\n      <td>✔</td>\n    </tr>\n    <tr>\n      <td rowspan=\"8\">2D</td>\n    </tr>\n    <tr>\n      <td>AZTEC</td>\n      <td>✔</td>\n      <td>✔</td>\n    </tr>\n    <tr>\n      <td>DATA_MATRIX</td>\n      <td>✔</td>\n      <td>✔</td>\n    </tr>\n    <tr>\n      <td>MAXICODE</td>\n      <td>✔</td>\n      <td>✖</td>\n    </tr>\n    <tr>\n      <td>PDF_417</td>\n      <td>✔</td>\n      <td>✔</td>\n    </tr>\n    <tr>\n      <td>QR_CODE</td>\n      <td>✔</td>\n      <td>✔</td>\n    </tr>\n    <tr>\n      <td>RSS_14</td>\n      <td>✔</td>\n      <td>✖</td>\n    </tr>\n    <tr>\n      <td>RSS_EXPANDED</td>\n      <td>✔</td>\n      <td>✖</td>\n    </tr>\n  </tbody>\n</table>\n\n\\*\\* `UPC_A` is supported on iOS, but according to the offical [Apple docs](https://developer.apple.com/documentation/avfoundation/avmetadataobject/objecttype/1618807-ean13) it is part of `EAN_13`. So you should specify `EAN_13` to be able to scan this. If you want to distinguish them from one another, you should manually do so after getting the result.\n\n## Troubleshooting\n\n### I have a `Error: Plugin BarcodeScanner does not respond to method call` error message on iOS\n\nIn Xcode click on `Product` > `Clean Build Folder` and try to build again.\n\n### I have a `Cannot resolve symbol BarcodeScanner` error message in Android Studio\n\nIn Android Studio click `File` > `Sync Project with Gradle Files` and try to build again.\n\n## TODO\n\nA non-exhaustive list of todos:\n\n- Support for switching between cameras\n- Support for toggling the flashlight\n- Support for web\n","readmeFilename":"README.md"}