{"id":13744144,"url":"https://github.com/myflashlab/barcode-ANE","last_synced_at":"2025-05-09T02:32:42.331Z","repository":{"id":32146467,"uuid":"35719330","full_name":"myflashlab/barcode-ANE","owner":"myflashlab","description":"Scan almost any barcode type with this super fast barcode scanner air native extension","archived":true,"fork":false,"pushed_at":"2020-08-06T11:11:11.000Z","size":36134,"stargazers_count":14,"open_issues_count":0,"forks_count":3,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-15T15:42:13.313Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"ActionScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/myflashlab.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-16T10:24:00.000Z","updated_at":"2023-05-13T22:09:03.000Z","dependencies_parsed_at":"2022-09-11T17:24:06.979Z","dependency_job_id":null,"html_url":"https://github.com/myflashlab/barcode-ANE","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myflashlab%2Fbarcode-ANE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myflashlab%2Fbarcode-ANE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myflashlab%2Fbarcode-ANE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myflashlab%2Fbarcode-ANE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myflashlab","download_url":"https://codeload.github.com/myflashlab/barcode-ANE/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253177839,"owners_count":21866405,"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":[],"created_at":"2024-08-03T05:01:03.881Z","updated_at":"2025-05-09T02:32:41.964Z","avatar_url":"https://github.com/myflashlab.png","language":"ActionScript","readme":"# Barcode ANE (Android+iOS)\nThis ANE enables AS3 AIR developers, to easily use the native camera on device and scan for almost all different barcodes and get the result to their AIR project.\n\n## Supported barcodes:\n* UPCE\n* CODE39\n* EAN13\n* EAN8\n* CODE128\n* PDF417\n* QR\n* AZTEC\n* ITF14\n* DATAMATRIX\n\n[find the latest **asdoc** for this ANE here.](http://myflashlab.github.io/asdoc/com/myflashlab/air/extensions/barcode/package-detail.html)\n\n# AIR Usage\nFor the complete AS3 code usage, see the [demo project here](https://github.com/myflashlab/barcode-ANE/blob/master/AIR/src/MainFinal.as).\n\n```actionscript\nimport com.myflashlab.air.extensions.barcode.*;\n\nvar _ex:Barcode = new Barcode();\n_ex.addEventListener(BarcodeEvent.RESULT, onResult);\n_ex.addEventListener(BarcodeEvent.CANCEL, onCancel);\n\nif(OverrideAir.os == OverrideAir.ANDROID)\n{\n\t// to speed up the launch time on Android, you may call the warmup method when\n\t// it is appropriate in your application. This may be needed if you are using the\n\t// full version of AndroidSupport dependency.\n\t// the first time you call the warmup method, your app will freeze for a few seconds...\n\t_ex.warmup();\t\t\t\n}\n\nif (_ex.isSupported())\n{\n\ttrace(\"Please wait...\");\n\n\t// to read only the selected barcode types. use an array to read one or more barcodes\n    //_ex.open([Barcode.QR], File.applicationDirectory.resolvePath(\"com_doitflash_barcode_beep.mp3\"), true, \"Cancel\");\n\t\n\t// to read all barcodes supported by the extension. read documentations to know which barcodes are supported.\n\t_ex.open(null, File.applicationDirectory.resolvePath(\"com_doitflash_barcode_beep.mp3\"), true, \"Cancel\");\n}\nelse\n{\n\ttrace(\"isSupported: \", _ex.isSupported());\n}\n\nfunction onCancel(e:BarcodeEvent):void\n{\n    trace(\"scan canceled\")\n}\n\nfunction onResult(e:BarcodeEvent):void\n{\n    trace(\"type is: \", e.param.type)\n\ttrace(\"data is: \", e.param.data);\n}\n```\n\n# AIR .xml manifest\n```xml\n\u003c!--\nFOR ANDROID:\n--\u003e\n\u003cmanifest android:installLocation=\"auto\"\u003e\n\t\n\t\u003c!--You surely need permission to use the camera, right?--\u003e\n\t\u003cuses-permission android:name=\"android.permission.CAMERA\" /\u003e\n\t\u003cuses-feature android:name=\"android.hardware.camera\" /\u003e\n\t\u003cuses-feature android:name=\"android.hardware.camera.autofocus\" android:required=\"false\" /\u003e\n\t\u003cuses-feature android:name=\"android.hardware.screen.landscape\" /\u003e\n\t\n\t\u003c!--If you wish to use the vibration when a barcode is detected, you need to set the permission like below--\u003e\n\t\u003cuses-permission android:name=\"android.permission.VIBRATE\"/\u003e\n\t\n\t\u003c!--Zxing lib requires you to set this screen supports--\u003e\n\t\u003csupports-screens \tandroid:anyDensity=\"true\" \n\t\t\t\t\t\tandroid:largeScreens=\"true\" \n\t\t\t\t\t\tandroid:normalScreens=\"true\" \n\t\t\t\t\t\tandroid:smallScreens=\"true\" \n\t\t\t\t\t\tandroid:xlargeScreens=\"true\" /\u003e\n\t\t\n\t\u003capplication\u003e\n\t\t\n\t\t\u003cactivity\u003e\n\t\t\t\u003cintent-filter\u003e\n\t\t\t\t\u003caction android:name=\"android.intent.action.MAIN\" /\u003e\n\t\t\t\t\u003ccategory android:name=\"android.intent.category.LAUNCHER\" /\u003e\n\t\t\t\u003c/intent-filter\u003e\n\t\t\t\u003cintent-filter\u003e\n\t\t\t\t\u003caction android:name=\"android.intent.action.VIEW\" /\u003e\n\t\t\t\t\u003ccategory android:name=\"android.intent.category.BROWSABLE\" /\u003e\n\t\t\t\t\u003ccategory android:name=\"android.intent.category.DEFAULT\" /\u003e\n\t\t\t\u003c/intent-filter\u003e\n\t\t\u003c/activity\u003e\n\t\t\n\t\t\u003c!--Main activity for detecting barcodes--\u003e\n\t\t\u003cactivity \tandroid:name=\"com.google.zxing.client.android.CaptureActivity\" \n\t\t\t\t\tandroid:clearTaskOnLaunch=\"true\" \n\t\t\t\t\tandroid:screenOrientation=\"landscape\" \n\t\t\t\t\tandroid:configChanges=\"orientation|keyboardHidden\" \n\t\t\t\t\tandroid:stateNotNeeded=\"true\" \n\t\t\t\t\tandroid:theme=\"@android:style/Theme.NoTitleBar.Fullscreen\" \n\t\t\t\t\tandroid:windowSoftInputMode=\"stateAlwaysHidden\" /\u003e\n\t\t\n\t\t\u003c!--bridge activity between Native Android and Adobe Air--\u003e\n\t\t\u003cactivity \tandroid:name=\"com.doitflash.barcode.utils.ExBridge\" \n\t\t\t\t\tandroid:theme=\"@style/Theme.Transparent\" /\u003e\n\t\t\n\t\u003c/application\u003e\n\u003c/manifest\u003e\n\n\n\n\n\n\n\n\u003c!--\nFOR iOS:\n--\u003e\n\u003cInfoAdditions\u003e\n\t\n\t\u003c!--iOS 10.0 or higher can support this ANE--\u003e\n\t\u003ckey\u003eMinimumOSVersion\u003c/key\u003e\n\t\u003cstring\u003e10.0\u003c/string\u003e\n\t\n\t\u003c!--A new feature for iOS 10 submissions requires you to add the 'purpose string' to your app when accessing a user's private data--\u003e\n\t\u003ckey\u003eNSCameraUsageDescription\u003c/key\u003e\n\t\u003cstring\u003eMy description about why I need this feature in my app\u003c/string\u003e\n\t\n\u003c/InfoAdditions\u003e\n\n\n\n\n\n\n\u003c!--\nEmbedding the ANE:\n--\u003e\n\u003cextensions\u003e\n\n\t\u003cextensionID\u003ecom.myflashlab.air.extensions.barcode\u003c/extensionID\u003e\n\t\n\t\u003c!-- http://www.myflashlabs.com/product/native-access-permission-check-settings-menu-air-native-extension/ --\u003e\n\t\u003cextensionID\u003ecom.myflashlab.air.extensions.permissionCheck\u003c/extensionID\u003e\n\t\n\t\u003c!-- https://github.com/myflashlab/common-dependencies-ANE --\u003e\n\t\u003cextensionID\u003ecom.myflashlab.air.extensions.dependency.overrideAir\u003c/extensionID\u003e\n\t\u003cextensionID\u003ecom.myflashlab.air.extensions.dependency.androidx.core\u003c/extensionID\u003e\n\t\n\u003c/extensions\u003e\n```\n\n# Requirements\n* This ANE is dependent on **permissionCheck**. Download it from [here](http://www.myflashlabs.com/product/native-access-permission-check-settings-menu-air-native-extension/).\n* AIR SDK 30+\n* Android 19+\n* iOS 10.0+\n\n# Permissions\nBelow are the list of Permissions this ANE might require. Check out the demo project available at this repository to see how we have used the [PermissionCheck ANE](http://www.myflashlabs.com/product/native-access-permission-check-settings-menu-air-native-extension/) to ask for the permissions.\n\nNecessary | Optional\n--------------------------- | ---------------------------\n[SOURCE_CAMERA](https://myflashlab.github.io/asdoc/com/myflashlab/air/extensions/nativePermissions/PermissionCheck.html#SOURCE_CAMERA) | NONE\n\n# Commercial Version\nhttps://www.myflashlabs.com/product/qr-code-ane-adobe-air-native-extension/\n\n[![Barcode code scanner ANE](https://www.myflashlabs.com/wp-content/uploads/2015/11/product_adobe-air-ane-extension-qr-code-2018-595x738.jpg)](https://www.myflashlabs.com/product/qr-code-ane-adobe-air-native-extension/)\n\n# Tutorials\n[How to embed ANEs into **FlashBuilder**, **FlashCC** and **FlashDevelop**](https://www.youtube.com/watch?v=Oubsb_3F3ec\u0026list=PL_mmSjScdnxnSDTMYb1iDX4LemhIJrt1O)  \n\n# Premium Support #\n[![Premium Support package](https://www.myflashlabs.com/wp-content/uploads/2016/06/professional-support.jpg)](https://www.myflashlabs.com/product/myflashlabs-support/)\nIf you are an [active MyFlashLabs club member](https://www.myflashlabs.com/product/myflashlabs-club-membership/), you will have access to our private and secure support ticket system for all our ANEs. Even if you are not a member, you can still receive premium help if you purchase the [premium support package](https://www.myflashlabs.com/product/myflashlabs-support/).","funding_links":[],"categories":["Native Extension","AIR Native Extensions"],"sub_categories":["Multimedia ANE"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyflashlab%2Fbarcode-ANE","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyflashlab%2Fbarcode-ANE","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyflashlab%2Fbarcode-ANE/lists"}