{"id":21903975,"url":"https://github.com/m1ga/ti.codescanner","last_synced_at":"2025-04-15T20:49:43.186Z","repository":{"id":80614871,"uuid":"505428549","full_name":"m1ga/ti.codescanner","owner":"m1ga","description":"Titanium module for the MLKit \"Google code scanner\" - Scan codes without any permission","archived":false,"fork":false,"pushed_at":"2024-10-16T06:54:12.000Z","size":15,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-29T01:12:49.044Z","etag":null,"topics":["barcode-scanner","mlkit-android","qrcode-scanner","titanium-mobile","titanium-module"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m1ga.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"m1ga"}},"created_at":"2022-06-20T12:16:58.000Z","updated_at":"2024-10-16T11:50:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"94bbebda-5d5f-410f-b6c2-e3e886c6b232","html_url":"https://github.com/m1ga/ti.codescanner","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"479eef4f024749dae9c5da025c082db3dff1899b"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1ga%2Fti.codescanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1ga%2Fti.codescanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1ga%2Fti.codescanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1ga%2Fti.codescanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m1ga","download_url":"https://codeload.github.com/m1ga/ti.codescanner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249153872,"owners_count":21221330,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["barcode-scanner","mlkit-android","qrcode-scanner","titanium-mobile","titanium-module"],"created_at":"2024-11-28T15:30:37.312Z","updated_at":"2025-04-15T20:49:43.137Z","avatar_url":"https://github.com/m1ga.png","language":"Java","readme":"# ti.codescanner - Titanium code scanner module for Android\n\n## Scan codes (QR, Barcodes) without any camera permission!\n\nBased on the \u003ca href=\"https://developers.google.com/ml-kit/code-scanner\"\u003eMLKit Google code scanner (Beta)\u003c/a\u003e you can use this module to make a simple QR/Barcode scanner inside your app that don't need any camera permission!\n\nIf you'll need to customize your UI or want to scan text have a look at the \u003ca href=\"https://github.com/m1ga/titanium-mlkit-demo\"\u003edemo of my ti.mlkit module\u003c/a\u003e.\n\n## Example\n\n```js\nconst win = Ti.UI.createWindow();\nconst codescanner = require(\"ti.codescanner\");\ncodescanner.addEventListener(\"complete\", e =\u003e {\n\tconsole.log(e.value);\n})\nwin.addEventListener(\"click\", e =\u003e {\n\tcodescanner.scan({\n\t\tautoZoom: false,\n\t\tformats: [codescanner.FORMAT_QR_CODE] // only scan QR Codes\n\t});\n});\nwin.open();\n```\n\n## Events\n* \u003cb\u003ecomplete\u003c/b\u003e -\u003e event.value\n* \u003cb\u003ecancel\u003c/b\u003e\n* \u003cb\u003eerror\u003c/b\u003e -\u003e event.message\n\n## Methods\n* \u003cb\u003escan({})\u003c/b\u003e\n\toptional parameters:\n\t* autoZoom: boolean\n\t* formats: [int array of constants]\n\n## Constants:\n* FORMAT_UNKNOWN\n* FORMAT_ALL_FORMATS\n* FORMAT_CODE_128\n* FORMAT_CODE_39\n* FORMAT_CODE_93\n* FORMAT_CODABAR\n* FORMAT_DATA_MATRIX\n* FORMAT_EAN_13\n* FORMAT_EAN_8\n* FORMAT_ITF\n* FORMAT_QR_CODE\n* FORMAT_UPC_A\n* FORMAT_UPC_E\n* FORMAT_PDF417\n* FORMAT_AZTEC\n\n## Known issues\n\nOn some phones the code scanner might not work or open/closes right away without any error. The `Google Play Services` could be an issue.\nThe Titanium module only calls one function from Googles library. If you have a non-working phone you would need to use their support pages: https://developers.google.com/ml-kit/community\n\n## Author\n\n- Michael Gangolf ([@MichaelGangolf](https://twitter.com/MichaelGangolf) / [Web](http://migaweb.de))\n\n\u003cspan class=\"badge-buymeacoffee\"\u003e\u003ca href=\"https://www.buymeacoffee.com/miga\" title=\"donate\"\u003e\u003cimg src=\"https://img.shields.io/badge/buy%20me%20a%20coke-donate-orange.svg\" alt=\"Buy Me A Coke donate button\" /\u003e\u003c/a\u003e\u003c/span\u003e\n","funding_links":["https://github.com/sponsors/m1ga","https://www.buymeacoffee.com/miga"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm1ga%2Fti.codescanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm1ga%2Fti.codescanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm1ga%2Fti.codescanner/lists"}