simple-dynamsoft-mcp 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +138 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanMultipleBarcodes/build.gradle +36 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanMultipleBarcodes/proguard-rules.pro +21 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanMultipleBarcodes/src/main/AndroidManifest.xml +23 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanMultipleBarcodes/src/main/java/com/dynamsoft/scanmultiplebarcodes/MainActivity.java +68 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanMultipleBarcodes/src/main/res/drawable/dbr_icon.xml +21 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanMultipleBarcodes/src/main/res/layout/activity_main.xml +27 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanMultipleBarcodes/src/main/res/values/colors.xml +5 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanMultipleBarcodes/src/main/res/values/strings.xml +3 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanMultipleBarcodes/src/main/res/values/themes.xml +5 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanSingleBarcode/build.gradle +36 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanSingleBarcode/proguard-rules.pro +21 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanSingleBarcode/src/main/AndroidManifest.xml +24 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanSingleBarcode/src/main/java/com/dynamsoft/scansinglebarcode/MainActivity.java +76 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanSingleBarcode/src/main/res/drawable/dbr_icon.xml +21 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanSingleBarcode/src/main/res/layout/activity_main.xml +27 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanSingleBarcode/src/main/res/values/colors.xml +5 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanSingleBarcode/src/main/res/values/strings.xml +3 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanSingleBarcode/src/main/res/values/themes.xml +5 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanSingleBarcodeKt/build.gradle +43 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanSingleBarcodeKt/proguard-rules.pro +21 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanSingleBarcodeKt/src/main/AndroidManifest.xml +22 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanSingleBarcodeKt/src/main/java/com/dynamsoft/scansinglebarcodekt/MainActivity.kt +73 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanSingleBarcodeKt/src/main/res/drawable/dbr_icon.xml +21 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanSingleBarcodeKt/src/main/res/layout/activity_main.xml +27 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanSingleBarcodeKt/src/main/res/values/colors.xml +5 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanSingleBarcodeKt/src/main/res/values/strings.xml +3 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScanSingleBarcodeKt/src/main/res/values/themes.xml +5 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/build.gradle +37 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/proguard-rules.pro +21 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/AndroidManifest.xml +27 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/assets/Templates/ReadAztec.json +91 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/assets/Templates/ReadCommon2D.json +185 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/assets/Templates/ReadDPM.json +138 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/assets/Templates/ReadDataMatrix.json +178 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/assets/Templates/ReadDenseBarcodes.json +138 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/assets/Templates/ReadDotCode.json +130 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/assets/Templates/ReadOneDIndustrial.json +155 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/assets/Templates/ReadOneDRetail.json +148 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/assets/Templates/ReadQR.json +150 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/java/com/dynamsoft/scenarioorientedsamples/HomeActivity.java +86 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/java/com/dynamsoft/scenarioorientedsamples/ResultActivity.java +45 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/java/com/dynamsoft/scenarioorientedsamples/ui/HomeItemAdapter.java +77 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/java/com/dynamsoft/scenarioorientedsamples/ui/HomeItemsRecyclerView.java +75 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/java/com/dynamsoft/scenarioorientedsamples/ui/ModeInfo.java +41 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable/dbr_icon.xml +21 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable/dynamsoft_logo.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable/icon_attention.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable/scan_barcode_icon.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable/setting.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable/shape_home_item1.xml +7 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable/shape_home_item2.xml +7 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-hdpi/any_codes.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-hdpi/aztec_code.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-hdpi/common_2d.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-hdpi/data_matrix.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-hdpi/dot_code.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-hdpi/dpm.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-hdpi/high_density.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-hdpi/industrial.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-hdpi/qr_code.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-hdpi/retail.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-ldpi/any_codes.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-ldpi/aztec_code.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-ldpi/common_2d.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-ldpi/data_matrix.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-ldpi/dot_code.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-ldpi/dpm.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-ldpi/high_density.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-ldpi/industrial.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-ldpi/qr_code.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-ldpi/retail.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-mdpi/any_codes.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-mdpi/aztec_code.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-mdpi/common_2d.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-mdpi/data_matrix.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-mdpi/dot_code.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-mdpi/dpm.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-mdpi/high_density.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-mdpi/industrial.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-mdpi/qr_code.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-mdpi/retail.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xhdpi/any_codes.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xhdpi/aztec_code.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xhdpi/common_2d.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xhdpi/data_matrix.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xhdpi/dot_code.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xhdpi/dpm.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xhdpi/high_density.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xhdpi/industrial.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xhdpi/qr_code.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xhdpi/retail.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xxhdpi/any_codes.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xxhdpi/aztec_code.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xxhdpi/common_2d.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xxhdpi/data_matrix.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xxhdpi/dot_code.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xxhdpi/dpm.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xxhdpi/high_density.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xxhdpi/industrial.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xxhdpi/qr_code.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xxhdpi/retail.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xxxhdpi/any_codes.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xxxhdpi/aztec_code.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xxxhdpi/common_2d.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xxxhdpi/data_matrix.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xxxhdpi/dot_code.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xxxhdpi/dpm.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xxxhdpi/high_density.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xxxhdpi/industrial.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xxxhdpi/qr_code.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/drawable-xxxhdpi/retail.webp +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/layout/activity_home.xml +96 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/layout/activity_result.xml +17 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/layout/layout_home_item.xml +55 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/values/attr_HomeItemsRecyclerView.xml +9 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/values/colors.xml +16 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/values/dimens.xml +8 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/values/strings.xml +23 -0
- package/code-snippet/android/BarcodeScannerAPISamples/ScenarioOrientedSamples/src/main/res/values/themes.xml +5 -0
- package/code-snippet/android/BarcodeScannerAPISamples/build.gradle +45 -0
- package/code-snippet/android/BarcodeScannerAPISamples/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/code-snippet/android/BarcodeScannerAPISamples/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/code-snippet/android/BarcodeScannerAPISamples/gradle.properties +21 -0
- package/code-snippet/android/BarcodeScannerAPISamples/gradlew +185 -0
- package/code-snippet/android/BarcodeScannerAPISamples/gradlew.bat +89 -0
- package/code-snippet/android/BarcodeScannerAPISamples/settings.gradle +19 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/build.gradle +38 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/proguard-rules.pro +21 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/src/main/AndroidManifest.xml +32 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/src/main/java/com/dynamsoft/debug/CaptureActivity.java +256 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/src/main/java/com/dynamsoft/debug/HomeActivity.java +28 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/src/main/java/com/dynamsoft/debug/settings/PreferencesConstants.java +12 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/src/main/java/com/dynamsoft/debug/settings/SettingsActivity.java +47 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/src/main/res/drawable/arrow_back_24.xml +5 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/src/main/res/drawable/dbr_icon.xml +21 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/src/main/res/drawable/dynamsoft_logo.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/src/main/res/drawable/icon_attention.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/src/main/res/drawable/setting.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/src/main/res/layout/activity_capture.xml +54 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/src/main/res/layout/activity_home.xml +84 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/src/main/res/layout/activity_settings.xml +17 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/src/main/res/layout/layout_appbar.xml +19 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/src/main/res/menu/main_menu.xml +11 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/src/main/res/values/arrays.xml +20 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/src/main/res/values/colors.xml +11 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/src/main/res/values/strings.xml +17 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/src/main/res/values/themes.xml +19 -0
- package/code-snippet/android/FoundationalAPISamples/Debug/src/main/res/xml/root_preferences.xml +28 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/build.gradle +41 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/proguard-rules.pro +21 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/AndroidManifest.xml +38 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/assets/Templates/ReadFromAnImage.json +118 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/assets/image/AllSupportedBarcodeTypes.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/assets/image/BarcodeColorMode.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/assets/image/DamagedBarcodes.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/assets/image/batch-scan.jpg +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/assets/image/blurryEffect_DPM.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/java/com/dynamsoft/dbr/decodefromanimage/MainActivity.java +199 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/java/com/dynamsoft/dbr/decodefromanimage/ui/ThumbnailsRecyclerView.java +219 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/java/com/dynamsoft/dbr/decodefromanimage/ui/resultsview/CustomizedResultsDisplayView.java +142 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/java/com/dynamsoft/dbr/decodefromanimage/ui/resultsview/ResultsRecyclerView.java +91 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/java/com/dynamsoft/dbr/decodefromanimage/utils/BitmapUtils.java +74 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/java/com/dynamsoft/dbr/decodefromanimage/utils/UriUtils.java +116 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable/boundary.xml +7 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable/dashed_border.xml +10 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable/dbr_icon.xml +21 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable/image_button_state.xml +19 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-hdpi/arrow.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-hdpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-hdpi/gallery_import.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-hdpi/take_photo.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-ldpi/arrow.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-ldpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-ldpi/gallery_import.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-ldpi/take_photo.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-mdpi/arrow.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-mdpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-mdpi/gallery_import.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-mdpi/take_photo.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-xhdpi/arrow.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-xhdpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-xhdpi/gallery_import.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-xhdpi/take_photo.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-xxhdpi/arrow.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-xxhdpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-xxhdpi/gallery_import.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-xxhdpi/take_photo.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-xxxhdpi/arrow.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-xxxhdpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-xxxhdpi/gallery_import.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/drawable-xxxhdpi/take_photo.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/layout/activity_main.xml +155 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/layout/item_result.xml +41 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/layout/item_thumbnail.xml +23 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/layout/results_view.xml +60 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/values/attr_customized.xml +7 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/values/colors.xml +11 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/values/strings.xml +19 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/values/themes.xml +12 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeFromAnImage/src/main/res/xml/dynamsoft_file_paths.xml +6 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/build.gradle +38 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/proguard-rules.pro +21 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/AndroidManifest.xml +29 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/java/com/dynamsoft/dbr/decodewithcameraenhancer/HomeActivity.java +17 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/java/com/dynamsoft/dbr/decodewithcameraenhancer/MainActivity.java +111 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/java/com/dynamsoft/dbr/decodewithcameraenhancer/ui/resultsview/CustomizedResultsDisplayView.java +80 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/java/com/dynamsoft/dbr/decodewithcameraenhancer/ui/resultsview/ResultsRecyclerView.java +91 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/res/drawable/dbr_icon.xml +21 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/res/drawable/dynamsoft_logo.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/res/drawable-hdpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/res/drawable-ldpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/res/drawable-mdpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/res/drawable-xhdpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/res/drawable-xxhdpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/res/drawable-xxxhdpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/res/layout/activity_home.xml +84 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/res/layout/activity_main.xml +22 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/res/layout/item_result.xml +41 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/res/layout/results_view.xml +48 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/res/values/attr_customized.xml +7 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/res/values/colors.xml +8 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/res/values/strings.xml +11 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/res/values/themes.xml +18 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/res/xml/backup_rules.xml +13 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraEnhancer/src/main/res/xml/data_extraction_rules.xml +19 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/build.gradle +44 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/proguard-rules.pro +21 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/AndroidManifest.xml +31 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/java/com/dynamsoft/dbr/decodewithcamerax/CameraXImageSourceAdapter.java +64 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/java/com/dynamsoft/dbr/decodewithcamerax/HomeActivity.java +16 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/java/com/dynamsoft/dbr/decodewithcamerax/MainActivity.java +134 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/java/com/dynamsoft/dbr/decodewithcamerax/ui/PreviewWithDrawingQuads.java +94 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/java/com/dynamsoft/dbr/decodewithcamerax/ui/resultsview/CustomizedResultsDisplayView.java +80 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/java/com/dynamsoft/dbr/decodewithcamerax/ui/resultsview/ResultsRecyclerView.java +91 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/res/drawable/dbr_icon.xml +21 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/res/drawable/dynamsoft_logo.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/res/drawable-hdpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/res/drawable-ldpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/res/drawable-mdpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/res/drawable-xhdpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/res/drawable-xxhdpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/res/drawable-xxxhdpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/res/layout/activity_home.xml +84 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/res/layout/activity_main.xml +23 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/res/layout/item_result.xml +41 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/res/layout/results_view.xml +48 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/res/values/attr_customized.xml +7 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/res/values/colors.xml +8 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/res/values/strings.xml +10 -0
- package/code-snippet/android/FoundationalAPISamples/DecodeWithCameraX/src/main/res/values/themes.xml +18 -0
- package/code-snippet/android/FoundationalAPISamples/DriversLicenseScanner/build.gradle +35 -0
- package/code-snippet/android/FoundationalAPISamples/DriversLicenseScanner/proguard-rules.pro +21 -0
- package/code-snippet/android/FoundationalAPISamples/DriversLicenseScanner/src/main/AndroidManifest.xml +30 -0
- package/code-snippet/android/FoundationalAPISamples/DriversLicenseScanner/src/main/java/com/dynamsoft/dcv/driverslicensescanner/HomeActivity.java +17 -0
- package/code-snippet/android/FoundationalAPISamples/DriversLicenseScanner/src/main/java/com/dynamsoft/dcv/driverslicensescanner/MainActivity.java +133 -0
- package/code-snippet/android/FoundationalAPISamples/DriversLicenseScanner/src/main/java/com/dynamsoft/dcv/driverslicensescanner/ParseUtil.java +107 -0
- package/code-snippet/android/FoundationalAPISamples/DriversLicenseScanner/src/main/java/com/dynamsoft/dcv/driverslicensescanner/ResultActivity.java +46 -0
- package/code-snippet/android/FoundationalAPISamples/DriversLicenseScanner/src/main/res/drawable/dbr_icon.xml +21 -0
- package/code-snippet/android/FoundationalAPISamples/DriversLicenseScanner/src/main/res/drawable/dynamsoft_logo.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/DriversLicenseScanner/src/main/res/layout/activity_home.xml +84 -0
- package/code-snippet/android/FoundationalAPISamples/DriversLicenseScanner/src/main/res/layout/activity_main.xml +32 -0
- package/code-snippet/android/FoundationalAPISamples/DriversLicenseScanner/src/main/res/layout/activity_result.xml +15 -0
- package/code-snippet/android/FoundationalAPISamples/DriversLicenseScanner/src/main/res/values/colors.xml +8 -0
- package/code-snippet/android/FoundationalAPISamples/DriversLicenseScanner/src/main/res/values/strings.xml +7 -0
- package/code-snippet/android/FoundationalAPISamples/DriversLicenseScanner/src/main/res/values/themes.xml +12 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/build.gradle +47 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/proguard-rules.pro +21 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/AndroidManifest.xml +37 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/home/HomeActivity.java +37 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/models/CameraSettings.java +45 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/models/DecodeSettings.java +279 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/models/MultiFrameCrossFilterSettings.java +59 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/models/ResultFeedbackSettings.java +31 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/models/SettingsCache.java +49 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/scanner/ScannerActivity.java +225 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/scanner/ScannerViewModel.java +67 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/settings/OnItemClickListener.java +5 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/settings/SettingsActivity.java +37 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/settings/SettingsFragment.java +160 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/settings/SettingsViewModel.java +49 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/settings/barcodeformat/BarcodeFormatsFragment.java +65 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/settings/barcodeformat/BarcodeFormatsViewModel.java +61 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/settings/simplifiedsettings/SimplifiedSettingsFragment.java +60 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/settings/simplifiedsettings/SimplifiedSettingsViewModel.java +24 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/ui/CustomResultDisplayView.java +56 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/ui/ExpandLinearLayout.java +220 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/ui/Extension.java +27 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/ui/RadioGroupWithTitle.java +145 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/ui/ResultsRecyclerView.java +91 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/ui/SingleLineLayout.java +302 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/ui/formatselection/BarcodeFormatConstants.java +80 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/ui/formatselection/FormatSelectionAdapter.java +122 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/ui/formatselection/FormatSelectionView.java +98 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/ui/modeselection/ItemTouchHelperInter.java +7 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/ui/modeselection/ModeSelectionAdapter.java +174 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/ui/modeselection/ModeSelectionView.java +98 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/ui/modeselection/ModesMapConstant.java +55 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/java/com/dynamsoft/dbr/generalsettings/ui/modeselection/MyTouchHelperCallBack.java +45 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/anim/enter_pop_slide.xml +12 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/anim/enter_slide.xml +12 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/anim/exit_pop_slide.xml +12 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/anim/exit_slide.xml +12 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable/arrow_back_24.xml +5 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable/dbr_icon.xml +21 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable/dynamsoft_logo.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable/icon_right_transparent.xml +4 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable/selector_checkbox.xml +6 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable/selector_checkbox2.xml +5 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable/selector_checktext_textcolor.xml +5 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable/selector_radiobutton_selected.xml +13 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable/selector_radiobutton_textcolor.xml +5 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable/selector_switch_track.xml +20 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable/setting.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable/shape_circle_conner_dialog.xml +8 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable/shape_radio_group.xml +8 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-hdpi/arrow_circle_down.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-hdpi/arrow_circle_up.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-hdpi/arrow_orange_right.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-hdpi/arrow_orange_up.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-hdpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-hdpi/icon_info.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-hdpi/icon_right.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-hdpi/icon_right_grey.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-ldpi/arrow_circle_down.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-ldpi/arrow_circle_up.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-ldpi/arrow_orange_right.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-ldpi/arrow_orange_up.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-ldpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-ldpi/icon_info.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-ldpi/icon_right.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-ldpi/icon_right_grey.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-mdpi/arrow_circle_down.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-mdpi/arrow_circle_up.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-mdpi/arrow_orange_right.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-mdpi/arrow_orange_up.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-mdpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-mdpi/icon_info.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-mdpi/icon_right.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-mdpi/icon_right_grey.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xhdpi/arrow_circle_down.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xhdpi/arrow_circle_up.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xhdpi/arrow_orange_right.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xhdpi/arrow_orange_up.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xhdpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xhdpi/icon_info.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xhdpi/icon_right.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xhdpi/icon_right_grey.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xxhdpi/arrow_circle_down.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xxhdpi/arrow_circle_up.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xxhdpi/arrow_orange_right.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xxhdpi/arrow_orange_up.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xxhdpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xxhdpi/icon_info.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xxhdpi/icon_right.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xxhdpi/icon_right_grey.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xxxhdpi/arrow_circle_down.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xxxhdpi/arrow_circle_up.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xxxhdpi/arrow_orange_right.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xxxhdpi/arrow_orange_up.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xxxhdpi/export.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xxxhdpi/icon_info.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xxxhdpi/icon_right.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/drawable-xxxhdpi/icon_right_grey.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/layout/activity_home.xml +84 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/layout/activity_main.xml +41 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/layout/activity_settings.xml +20 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/layout/dialog_import_template.xml +44 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/layout/format_selection.xml +8 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/layout/fragment_barcode_format.xml +101 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/layout/fragment_settings.xml +305 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/layout/fragment_simplified_settings.xml +149 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/layout/item_result.xml +42 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/layout/layout_appbar.xml +19 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/layout/layout_expand_arrow_and_switch.xml +58 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/layout/layout_expand_arrow_only.xml +45 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/layout/layout_expand_switch_only.xml +44 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/layout/layout_radio_group_with_title.xml +46 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/layout/layout_single_line.xml +33 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/layout/modes_selection_spinner_item.xml +17 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/layout/modes_selection_spinner_text.xml +13 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/layout/results_view.xml +48 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/menu/menu_main.xml +11 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/values/array.xml +14 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/values/attrs_customized.xml +65 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/values/colors.xml +23 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/values/dimens.xml +20 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/values/spinner_items.xml +10 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/values/strings.xml +112 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/values/themes.xml +29 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/xml/backup_rules.xml +13 -0
- package/code-snippet/android/FoundationalAPISamples/GeneralSettings/src/main/res/xml/data_extraction_rules.xml +19 -0
- package/code-snippet/android/FoundationalAPISamples/LocateAnItemWithBarcode/build.gradle +39 -0
- package/code-snippet/android/FoundationalAPISamples/LocateAnItemWithBarcode/proguard-rules.pro +21 -0
- package/code-snippet/android/FoundationalAPISamples/LocateAnItemWithBarcode/src/main/AndroidManifest.xml +28 -0
- package/code-snippet/android/FoundationalAPISamples/LocateAnItemWithBarcode/src/main/assets/Templates/ReadMultipleBarcodes.json +116 -0
- package/code-snippet/android/FoundationalAPISamples/LocateAnItemWithBarcode/src/main/java/com/dynamsoft/dbr/locateanitemwithbarcode/LocateGrabCodeActivity.java +87 -0
- package/code-snippet/android/FoundationalAPISamples/LocateAnItemWithBarcode/src/main/java/com/dynamsoft/dbr/locateanitemwithbarcode/LocateScanActivity.java +162 -0
- package/code-snippet/android/FoundationalAPISamples/LocateAnItemWithBarcode/src/main/java/com/dynamsoft/dbr/locateanitemwithbarcode/LocateStartActivity.java +53 -0
- package/code-snippet/android/FoundationalAPISamples/LocateAnItemWithBarcode/src/main/res/drawable/arrow_back_24.xml +5 -0
- package/code-snippet/android/FoundationalAPISamples/LocateAnItemWithBarcode/src/main/res/drawable/dbr_icon.xml +21 -0
- package/code-snippet/android/FoundationalAPISamples/LocateAnItemWithBarcode/src/main/res/drawable/dynamsoft_logo.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/LocateAnItemWithBarcode/src/main/res/drawable/ic_launcher_background.xml +170 -0
- package/code-snippet/android/FoundationalAPISamples/LocateAnItemWithBarcode/src/main/res/drawable/scan_barcode_icon.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/LocateAnItemWithBarcode/src/main/res/layout/activity_grab_code.xml +23 -0
- package/code-snippet/android/FoundationalAPISamples/LocateAnItemWithBarcode/src/main/res/layout/activity_locate_start.xml +94 -0
- package/code-snippet/android/FoundationalAPISamples/LocateAnItemWithBarcode/src/main/res/layout/activity_scanner.xml +34 -0
- package/code-snippet/android/FoundationalAPISamples/LocateAnItemWithBarcode/src/main/res/values/colors.xml +35 -0
- package/code-snippet/android/FoundationalAPISamples/LocateAnItemWithBarcode/src/main/res/values/strings.xml +10 -0
- package/code-snippet/android/FoundationalAPISamples/LocateAnItemWithBarcode/src/main/res/values/themes.xml +8 -0
- package/code-snippet/android/FoundationalAPISamples/ReadGS1AI/build.gradle +34 -0
- package/code-snippet/android/FoundationalAPISamples/ReadGS1AI/proguard-rules.pro +21 -0
- package/code-snippet/android/FoundationalAPISamples/ReadGS1AI/src/main/AndroidManifest.xml +27 -0
- package/code-snippet/android/FoundationalAPISamples/ReadGS1AI/src/main/assets/Templates/ReadGS1AIBarcode.json +135 -0
- package/code-snippet/android/FoundationalAPISamples/ReadGS1AI/src/main/java/com/dynamsoft/readgs1ai/HomeActivity.java +17 -0
- package/code-snippet/android/FoundationalAPISamples/ReadGS1AI/src/main/java/com/dynamsoft/readgs1ai/MainActivity.java +178 -0
- package/code-snippet/android/FoundationalAPISamples/ReadGS1AI/src/main/res/drawable/dbr_icon.xml +21 -0
- package/code-snippet/android/FoundationalAPISamples/ReadGS1AI/src/main/res/drawable/dynamsoft_logo.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/ReadGS1AI/src/main/res/layout/activity_home.xml +84 -0
- package/code-snippet/android/FoundationalAPISamples/ReadGS1AI/src/main/res/layout/activity_main.xml +19 -0
- package/code-snippet/android/FoundationalAPISamples/ReadGS1AI/src/main/res/values/colors.xml +8 -0
- package/code-snippet/android/FoundationalAPISamples/ReadGS1AI/src/main/res/values/strings.xml +7 -0
- package/code-snippet/android/FoundationalAPISamples/ReadGS1AI/src/main/res/values/themes.xml +11 -0
- package/code-snippet/android/FoundationalAPISamples/TinyBarcodeDecoding/build.gradle +39 -0
- package/code-snippet/android/FoundationalAPISamples/TinyBarcodeDecoding/proguard-rules.pro +21 -0
- package/code-snippet/android/FoundationalAPISamples/TinyBarcodeDecoding/src/main/AndroidManifest.xml +32 -0
- package/code-snippet/android/FoundationalAPISamples/TinyBarcodeDecoding/src/main/java/com/dynamsoft/dbr/tinybarcodedecoding/HomeActivity.java +17 -0
- package/code-snippet/android/FoundationalAPISamples/TinyBarcodeDecoding/src/main/java/com/dynamsoft/dbr/tinybarcodedecoding/MainActivity.java +257 -0
- package/code-snippet/android/FoundationalAPISamples/TinyBarcodeDecoding/src/main/java/com/dynamsoft/dbr/tinybarcodedecoding/UIHandler.java +14 -0
- package/code-snippet/android/FoundationalAPISamples/TinyBarcodeDecoding/src/main/java/com/dynamsoft/dbr/tinybarcodedecoding/ZoomSeekbarView.java +191 -0
- package/code-snippet/android/FoundationalAPISamples/TinyBarcodeDecoding/src/main/res/drawable/dbr_icon.xml +21 -0
- package/code-snippet/android/FoundationalAPISamples/TinyBarcodeDecoding/src/main/res/drawable/dynamsoft_logo.png +0 -0
- package/code-snippet/android/FoundationalAPISamples/TinyBarcodeDecoding/src/main/res/drawable/ic_baseline_shape.xml +5 -0
- package/code-snippet/android/FoundationalAPISamples/TinyBarcodeDecoding/src/main/res/drawable/shape_circle_bg.xml +16 -0
- package/code-snippet/android/FoundationalAPISamples/TinyBarcodeDecoding/src/main/res/layout/activity_home.xml +84 -0
- package/code-snippet/android/FoundationalAPISamples/TinyBarcodeDecoding/src/main/res/layout/activity_main.xml +77 -0
- package/code-snippet/android/FoundationalAPISamples/TinyBarcodeDecoding/src/main/res/values/colors.xml +8 -0
- package/code-snippet/android/FoundationalAPISamples/TinyBarcodeDecoding/src/main/res/values/strings.xml +10 -0
- package/code-snippet/android/FoundationalAPISamples/TinyBarcodeDecoding/src/main/res/values/themes.xml +12 -0
- package/code-snippet/android/FoundationalAPISamples/TinyBarcodeDecoding/src/main/res/xml/backup_rules.xml +13 -0
- package/code-snippet/android/FoundationalAPISamples/TinyBarcodeDecoding/src/main/res/xml/data_extraction_rules.xml +19 -0
- package/code-snippet/android/FoundationalAPISamples/build.gradle +42 -0
- package/code-snippet/android/FoundationalAPISamples/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/code-snippet/android/FoundationalAPISamples/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/code-snippet/android/FoundationalAPISamples/gradle.properties +21 -0
- package/code-snippet/android/FoundationalAPISamples/gradlew +185 -0
- package/code-snippet/android/FoundationalAPISamples/gradlew.bat +89 -0
- package/code-snippet/android/FoundationalAPISamples/settings.gradle +18 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanMultipleBarcodes/ScanMultipleBarcodes/AppDelegate.swift +35 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanMultipleBarcodes/ScanMultipleBarcodes/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanMultipleBarcodes/ScanMultipleBarcodes/Assets.xcassets/AppIcon.appiconset/Contents.json +36 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanMultipleBarcodes/ScanMultipleBarcodes/Assets.xcassets/AppIcon.appiconset/dbr.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanMultipleBarcodes/ScanMultipleBarcodes/Assets.xcassets/Contents.json +6 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanMultipleBarcodes/ScanMultipleBarcodes/Base.lproj/LaunchScreen.storyboard +25 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanMultipleBarcodes/ScanMultipleBarcodes/Base.lproj/Main.storyboard +52 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanMultipleBarcodes/ScanMultipleBarcodes/DynamsoftResources.bundle/Templates/ReadMultipleBarcodes.json +139 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanMultipleBarcodes/ScanMultipleBarcodes/Info.plist +25 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanMultipleBarcodes/ScanMultipleBarcodes/SceneDelegate.swift +51 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanMultipleBarcodes/ScanMultipleBarcodes/ViewController.swift +161 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanMultipleBarcodes/ScanMultipleBarcodes.xcodeproj/project.pbxproj +422 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcode/ScanSingleBarcode/AppDelegate.swift +35 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcode/ScanSingleBarcode/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcode/ScanSingleBarcode/Assets.xcassets/AppIcon.appiconset/Contents.json +36 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcode/ScanSingleBarcode/Assets.xcassets/AppIcon.appiconset/dbr.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcode/ScanSingleBarcode/Assets.xcassets/Contents.json +6 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcode/ScanSingleBarcode/Base.lproj/LaunchScreen.storyboard +25 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcode/ScanSingleBarcode/Base.lproj/Main.storyboard +52 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcode/ScanSingleBarcode/DynamsoftResources.bundle/Templates/ReadSingleBarcode.json +105 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcode/ScanSingleBarcode/Info.plist +25 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcode/ScanSingleBarcode/SceneDelegate.swift +51 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcode/ScanSingleBarcode/ViewController.swift +115 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcode/ScanSingleBarcode.xcodeproj/project.pbxproj +422 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeObjc/ScanSingleBarcodeObjc/AppDelegate.h +13 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeObjc/ScanSingleBarcodeObjc/AppDelegate.m +39 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeObjc/ScanSingleBarcodeObjc/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeObjc/ScanSingleBarcodeObjc/Assets.xcassets/AppIcon.appiconset/Contents.json +36 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeObjc/ScanSingleBarcodeObjc/Assets.xcassets/AppIcon.appiconset/dbr.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeObjc/ScanSingleBarcodeObjc/Assets.xcassets/Contents.json +6 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeObjc/ScanSingleBarcodeObjc/Base.lproj/LaunchScreen.storyboard +25 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeObjc/ScanSingleBarcodeObjc/Base.lproj/Main.storyboard +52 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeObjc/ScanSingleBarcodeObjc/DynamsoftResources.bundle/Templates/ReadSingleBarcode.json +105 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeObjc/ScanSingleBarcodeObjc/Info.plist +25 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeObjc/ScanSingleBarcodeObjc/SceneDelegate.h +14 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeObjc/ScanSingleBarcodeObjc/SceneDelegate.m +56 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeObjc/ScanSingleBarcodeObjc/ViewController.h +13 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeObjc/ScanSingleBarcodeObjc/ViewController.m +127 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeObjc/ScanSingleBarcodeObjc/main.m +17 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeObjc/ScanSingleBarcodeObjc.xcodeproj/project.pbxproj +426 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeSwiftUI/ScanSingleBarcodeSwiftUI/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeSwiftUI/ScanSingleBarcodeSwiftUI/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeSwiftUI/ScanSingleBarcodeSwiftUI/Assets.xcassets/AppIcon.appiconset/dbr.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeSwiftUI/ScanSingleBarcodeSwiftUI/Assets.xcassets/Contents.json +6 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeSwiftUI/ScanSingleBarcodeSwiftUI/BarcodeScannerView.swift +66 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeSwiftUI/ScanSingleBarcodeSwiftUI/ContentView.swift +47 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeSwiftUI/ScanSingleBarcodeSwiftUI/Preview Content/Preview Assets.xcassets/Contents.json +6 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeSwiftUI/ScanSingleBarcodeSwiftUI/ScanSingleBarcodeSwiftUIApp.swift +16 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScanSingleBarcodeSwiftUI/ScanSingleBarcodeSwiftUI.xcodeproj/project.pbxproj +377 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/AppDelegate.swift +35 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/AppIcon.appiconset/dbr.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/Contents.json +6 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/dynamsoft-logo.imageset/Contents.json +23 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/dynamsoft-logo.imageset/dynamsoft-logo.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/dynamsoft-logo.imageset/dynamsoft-logo@2x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/dynamsoft-logo.imageset/dynamsoft-logo@3x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/1d_industrial.imageset/1d_industrial.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/1d_industrial.imageset/1d_industrial@2x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/1d_industrial.imageset/1d_industrial@3x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/1d_industrial.imageset/Contents.json +23 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/1d_retail.imageset/1d_retail.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/1d_retail.imageset/1d_retail@2x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/1d_retail.imageset/1d_retail@3x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/1d_retail.imageset/Contents.json +23 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/Contents.json +6 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/any_codes.imageset/Contents.json +23 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/any_codes.imageset/common_2d_1d.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/any_codes.imageset/common_2d_1d@2x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/any_codes.imageset/common_2d_1d@3x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/aztec_code.imageset/Contents.json +23 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/aztec_code.imageset/aztec_code.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/aztec_code.imageset/aztec_code@2x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/aztec_code.imageset/aztec_code@3x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/common_2d.imageset/Contents.json +23 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/common_2d.imageset/common_2d.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/common_2d.imageset/common_2d@2x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/common_2d.imageset/common_2d@3x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/data_matrix.imageset/Contents.json +23 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/data_matrix.imageset/data_matrix.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/data_matrix.imageset/data_matrix@2x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/data_matrix.imageset/data_matrix@3x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/dot_code.imageset/Contents.json +23 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/dot_code.imageset/dot_code.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/dot_code.imageset/dot_code@2x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/dot_code.imageset/dot_code@3x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/dpm_code.imageset/Contents.json +23 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/dpm_code.imageset/dpm.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/dpm_code.imageset/dpm@2x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/dpm_code.imageset/dpm@3x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/high_density.imageset/Contents.json +23 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/high_density.imageset/high_density.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/high_density.imageset/high_density@2x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/high_density.imageset/high_density@3x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/qr_code.imageset/Contents.json +23 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/qr_code.imageset/qr_code.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/qr_code.imageset/qr_code@2x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Assets.xcassets/icons/qr_code.imageset/qr_code@3x.png +0 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Base.lproj/LaunchScreen.storyboard +25 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Base.lproj/Main.storyboard +24 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/DynamsoftResources.bundle/Templates/ReadAztec.json +91 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/DynamsoftResources.bundle/Templates/ReadCommon1DAnd2D.json +272 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/DynamsoftResources.bundle/Templates/ReadCommon2D.json +185 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/DynamsoftResources.bundle/Templates/ReadDPM.json +138 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/DynamsoftResources.bundle/Templates/ReadDataMatrix.json +178 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/DynamsoftResources.bundle/Templates/ReadDenseBarcodes.json +138 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/DynamsoftResources.bundle/Templates/ReadDotCode.json +130 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/DynamsoftResources.bundle/Templates/ReadOneDIndustrial.json +155 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/DynamsoftResources.bundle/Templates/ReadOneDRetail.json +148 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/DynamsoftResources.bundle/Templates/ReadQR.json +150 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/Info.plist +25 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/ResultViewController.swift +43 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/SceneDelegate.swift +57 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples/ViewController.swift +271 -0
- package/code-snippet/ios/BarcodeScannerAPISamples/ScenarioOrientedSamples/ScenarioOrientedSamples.xcodeproj/project.pbxproj +426 -0
- package/code-snippet/ios/FoundationalAPISamples/Debug/Debug/AppDelegate.swift +35 -0
- package/code-snippet/ios/FoundationalAPISamples/Debug/Debug/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
- package/code-snippet/ios/FoundationalAPISamples/Debug/Debug/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/code-snippet/ios/FoundationalAPISamples/Debug/Debug/Assets.xcassets/AppIcon.appiconset/dbr.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/Debug/Debug/Assets.xcassets/Contents.json +6 -0
- package/code-snippet/ios/FoundationalAPISamples/Debug/Debug/Assets.xcassets/dynamsoft.imageset/Contents.json +23 -0
- package/code-snippet/ios/FoundationalAPISamples/Debug/Debug/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/Debug/Debug/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo@2x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/Debug/Debug/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo@3x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/Debug/Debug/Base.lproj/LaunchScreen.storyboard +25 -0
- package/code-snippet/ios/FoundationalAPISamples/Debug/Debug/Base.lproj/Main.storyboard +24 -0
- package/code-snippet/ios/FoundationalAPISamples/Debug/Debug/CameraViewController.swift +256 -0
- package/code-snippet/ios/FoundationalAPISamples/Debug/Debug/Info.plist +25 -0
- package/code-snippet/ios/FoundationalAPISamples/Debug/Debug/SceneDelegate.swift +57 -0
- package/code-snippet/ios/FoundationalAPISamples/Debug/Debug/SettingsViewController.swift +234 -0
- package/code-snippet/ios/FoundationalAPISamples/Debug/Debug/ViewController.swift +111 -0
- package/code-snippet/ios/FoundationalAPISamples/Debug/Debug.xcodeproj/project.pbxproj +387 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/AppDelegate.swift +35 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/AppIcon.appiconset/Contents.json +35 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/Buttons/Contents.json +6 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/Buttons/bigGallery.imageset/Contents.json +23 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/Buttons/bigGallery.imageset/gallery-import.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/Buttons/bigGallery.imageset/gallery-import@2x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/Buttons/bigGallery.imageset/gallery-import@3x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/Buttons/bigTakePhoto.imageset/Contents.json +23 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/Buttons/bigTakePhoto.imageset/take-photos.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/Buttons/bigTakePhoto.imageset/take-photos@2x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/Buttons/bigTakePhoto.imageset/take-photos@3x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/Buttons/gallery.imageset/Contents.json +23 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/Buttons/gallery.imageset/btn-gallery-import.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/Buttons/gallery.imageset/btn-gallery-import@2x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/Buttons/gallery.imageset/btn-gallery-import@3x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/Buttons/takePhoto.imageset/Contents.json +23 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/Buttons/takePhoto.imageset/btn-take-photos 1.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/Buttons/takePhoto.imageset/btn-take-photos@2x 1.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/Buttons/takePhoto.imageset/btn-take-photos@3x 1.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/Contents.json +6 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/dynamsoft.imageset/Contents.json +23 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo@2x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo@3x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Base.lproj/LaunchScreen.storyboard +25 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Base.lproj/Main.storyboard +52 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Info.plist +25 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Resource/AllSupportedBarcodeTypes.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Resource/BarcodeColorMode.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Resource/DamagedBarcodes.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Resource/ReadFromAnImage.json +118 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Resource/batch-scan.jpg +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/Resource/blurryEffect_DPM.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/SceneDelegate.swift +51 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage/ViewController.swift +457 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeFromAnImage/DecodeFromAnImage.xcodeproj/project.pbxproj +389 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithAVCaptureSession/DecodeWithAVCaptureSession/AppDelegate.swift +33 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithAVCaptureSession/DecodeWithAVCaptureSession/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithAVCaptureSession/DecodeWithAVCaptureSession/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithAVCaptureSession/DecodeWithAVCaptureSession/Assets.xcassets/AppIcon.appiconset/dbr.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithAVCaptureSession/DecodeWithAVCaptureSession/Assets.xcassets/Contents.json +6 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithAVCaptureSession/DecodeWithAVCaptureSession/Assets.xcassets/dynamsoft.imageset/Contents.json +23 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithAVCaptureSession/DecodeWithAVCaptureSession/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithAVCaptureSession/DecodeWithAVCaptureSession/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo@2x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithAVCaptureSession/DecodeWithAVCaptureSession/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo@3x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithAVCaptureSession/DecodeWithAVCaptureSession/Base.lproj/LaunchScreen.storyboard +25 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithAVCaptureSession/DecodeWithAVCaptureSession/Base.lproj/Main.storyboard +24 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithAVCaptureSession/DecodeWithAVCaptureSession/CaptureEnhancer.swift +102 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithAVCaptureSession/DecodeWithAVCaptureSession/CaptureViewController.swift +191 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithAVCaptureSession/DecodeWithAVCaptureSession/Info.plist +25 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithAVCaptureSession/DecodeWithAVCaptureSession/SceneDelegate.swift +57 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithAVCaptureSession/DecodeWithAVCaptureSession/ViewController.swift +111 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithAVCaptureSession/DecodeWithAVCaptureSession.xcodeproj/project.pbxproj +423 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithCameraEnhancer/DecodeWithCameraEnhancer/AppDelegate.swift +33 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithCameraEnhancer/DecodeWithCameraEnhancer/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithCameraEnhancer/DecodeWithCameraEnhancer/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithCameraEnhancer/DecodeWithCameraEnhancer/Assets.xcassets/AppIcon.appiconset/dbr.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithCameraEnhancer/DecodeWithCameraEnhancer/Assets.xcassets/Contents.json +6 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithCameraEnhancer/DecodeWithCameraEnhancer/Assets.xcassets/dynamsoft.imageset/Contents.json +23 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithCameraEnhancer/DecodeWithCameraEnhancer/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithCameraEnhancer/DecodeWithCameraEnhancer/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo@2x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithCameraEnhancer/DecodeWithCameraEnhancer/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo@3x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithCameraEnhancer/DecodeWithCameraEnhancer/Base.lproj/LaunchScreen.storyboard +25 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithCameraEnhancer/DecodeWithCameraEnhancer/Base.lproj/Main.storyboard +32 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithCameraEnhancer/DecodeWithCameraEnhancer/CameraViewController.swift +170 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithCameraEnhancer/DecodeWithCameraEnhancer/Info.plist +25 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithCameraEnhancer/DecodeWithCameraEnhancer/SceneDelegate.swift +57 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithCameraEnhancer/DecodeWithCameraEnhancer/ViewController.swift +111 -0
- package/code-snippet/ios/FoundationalAPISamples/DecodeWithCameraEnhancer/DecodeWithCameraEnhancer.xcodeproj/project.pbxproj +419 -0
- package/code-snippet/ios/FoundationalAPISamples/DriversLicenseScanner/DriversLicenseScanner/AppDelegate.swift +29 -0
- package/code-snippet/ios/FoundationalAPISamples/DriversLicenseScanner/DriversLicenseScanner/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
- package/code-snippet/ios/FoundationalAPISamples/DriversLicenseScanner/DriversLicenseScanner/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/code-snippet/ios/FoundationalAPISamples/DriversLicenseScanner/DriversLicenseScanner/Assets.xcassets/AppIcon.appiconset/dcv-01.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DriversLicenseScanner/DriversLicenseScanner/Assets.xcassets/Contents.json +6 -0
- package/code-snippet/ios/FoundationalAPISamples/DriversLicenseScanner/DriversLicenseScanner/Assets.xcassets/dynamsoft.imageset/Contents.json +23 -0
- package/code-snippet/ios/FoundationalAPISamples/DriversLicenseScanner/DriversLicenseScanner/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DriversLicenseScanner/DriversLicenseScanner/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo@2x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DriversLicenseScanner/DriversLicenseScanner/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo@3x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/DriversLicenseScanner/DriversLicenseScanner/Base.lproj/LaunchScreen.storyboard +25 -0
- package/code-snippet/ios/FoundationalAPISamples/DriversLicenseScanner/DriversLicenseScanner/Base.lproj/Main.storyboard +52 -0
- package/code-snippet/ios/FoundationalAPISamples/DriversLicenseScanner/DriversLicenseScanner/CameraViewController.swift +231 -0
- package/code-snippet/ios/FoundationalAPISamples/DriversLicenseScanner/DriversLicenseScanner/Category/UIDevice+Addition.swift +59 -0
- package/code-snippet/ios/FoundationalAPISamples/DriversLicenseScanner/DriversLicenseScanner/Category/UIView+Frame.swift +80 -0
- package/code-snippet/ios/FoundationalAPISamples/DriversLicenseScanner/DriversLicenseScanner/DriverLicenseResultViewController.swift +168 -0
- package/code-snippet/ios/FoundationalAPISamples/DriversLicenseScanner/DriversLicenseScanner/Info.plist +8 -0
- package/code-snippet/ios/FoundationalAPISamples/DriversLicenseScanner/DriversLicenseScanner/Utils/Dynamsoft.swift +27 -0
- package/code-snippet/ios/FoundationalAPISamples/DriversLicenseScanner/DriversLicenseScanner/ViewController.swift +111 -0
- package/code-snippet/ios/FoundationalAPISamples/DriversLicenseScanner/DriversLicenseScanner.xcodeproj/project.pbxproj +447 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/AppDelegate.swift +35 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/Assets.xcassets/AppIcon.appiconset/dbr.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/Assets.xcassets/Contents.json +6 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/Assets.xcassets/arrow-circle/Contents.json +6 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/Assets.xcassets/arrow-circle/arrow-circle-down.imageset/Contents.json +23 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/Assets.xcassets/arrow-circle/arrow-circle-down.imageset/arrow-circle-down.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/Assets.xcassets/arrow-circle/arrow-circle-down.imageset/arrow-circle-down@2x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/Assets.xcassets/arrow-circle/arrow-circle-down.imageset/arrow-circle-down@3x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/Assets.xcassets/arrow-circle/arrow-circle-up.imageset/Contents.json +23 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/Assets.xcassets/arrow-circle/arrow-circle-up.imageset/arrow-circle-up.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/Assets.xcassets/arrow-circle/arrow-circle-up.imageset/arrow-circle-up@2x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/Assets.xcassets/arrow-circle/arrow-circle-up.imageset/arrow-circle-up@3x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/Assets.xcassets/dynamsoft.imageset/Contents.json +23 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo@2x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo@3x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/BarcodeFormatViewController.swift +249 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/Base.lproj/LaunchScreen.storyboard +25 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/Base.lproj/Main.storyboard +24 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/CameraViewController.swift +305 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/DataModel/CustomTableViewCell.swift +234 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/DataModel/Mode+Extension.swift +129 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/DataModel/PickerPopupView.swift +145 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/DataModel/SettingRow.swift +332 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/DataModel/UIColor+Extension.swift +19 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/Info.plist +25 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/SceneDelegate.swift +57 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/SettingsViewController.swift +589 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/SimplifiedSettingsViewController.swift +532 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings/ViewController.swift +111 -0
- package/code-snippet/ios/FoundationalAPISamples/GeneralSettings/GeneralSettings.xcodeproj/project.pbxproj +387 -0
- package/code-snippet/ios/FoundationalAPISamples/LocateAnItemWithBarcode/LocateAnItemWithBarcode/AppDelegate.swift +45 -0
- package/code-snippet/ios/FoundationalAPISamples/LocateAnItemWithBarcode/LocateAnItemWithBarcode/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
- package/code-snippet/ios/FoundationalAPISamples/LocateAnItemWithBarcode/LocateAnItemWithBarcode/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/code-snippet/ios/FoundationalAPISamples/LocateAnItemWithBarcode/LocateAnItemWithBarcode/Assets.xcassets/AppIcon.appiconset/dbr.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/LocateAnItemWithBarcode/LocateAnItemWithBarcode/Assets.xcassets/Contents.json +6 -0
- package/code-snippet/ios/FoundationalAPISamples/LocateAnItemWithBarcode/LocateAnItemWithBarcode/Assets.xcassets/dynamsoft.imageset/Contents.json +23 -0
- package/code-snippet/ios/FoundationalAPISamples/LocateAnItemWithBarcode/LocateAnItemWithBarcode/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/LocateAnItemWithBarcode/LocateAnItemWithBarcode/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo@2x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/LocateAnItemWithBarcode/LocateAnItemWithBarcode/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo@3x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/LocateAnItemWithBarcode/LocateAnItemWithBarcode/Assets.xcassets/scan.imageset/Contents.json +23 -0
- package/code-snippet/ios/FoundationalAPISamples/LocateAnItemWithBarcode/LocateAnItemWithBarcode/Assets.xcassets/scan.imageset/scan-barcodes.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/LocateAnItemWithBarcode/LocateAnItemWithBarcode/Assets.xcassets/scan.imageset/scan-barcodes@2x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/LocateAnItemWithBarcode/LocateAnItemWithBarcode/Assets.xcassets/scan.imageset/scan-barcodes@3x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/LocateAnItemWithBarcode/LocateAnItemWithBarcode/Base.lproj/LaunchScreen.storyboard +25 -0
- package/code-snippet/ios/FoundationalAPISamples/LocateAnItemWithBarcode/LocateAnItemWithBarcode/Base.lproj/Main.storyboard +145 -0
- package/code-snippet/ios/FoundationalAPISamples/LocateAnItemWithBarcode/LocateAnItemWithBarcode/CameraViewController.swift +187 -0
- package/code-snippet/ios/FoundationalAPISamples/LocateAnItemWithBarcode/LocateAnItemWithBarcode/Info.plist +25 -0
- package/code-snippet/ios/FoundationalAPISamples/LocateAnItemWithBarcode/LocateAnItemWithBarcode/ReadMultipleBarcodes.json +116 -0
- package/code-snippet/ios/FoundationalAPISamples/LocateAnItemWithBarcode/LocateAnItemWithBarcode/SceneDelegate.swift +51 -0
- package/code-snippet/ios/FoundationalAPISamples/LocateAnItemWithBarcode/LocateAnItemWithBarcode/ViewController.swift +55 -0
- package/code-snippet/ios/FoundationalAPISamples/LocateAnItemWithBarcode/LocateAnItemWithBarcode.xcodeproj/project.pbxproj +429 -0
- package/code-snippet/ios/FoundationalAPISamples/ReadGS1AI/ReadGS1AI/AppDelegate.swift +35 -0
- package/code-snippet/ios/FoundationalAPISamples/ReadGS1AI/ReadGS1AI/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
- package/code-snippet/ios/FoundationalAPISamples/ReadGS1AI/ReadGS1AI/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/code-snippet/ios/FoundationalAPISamples/ReadGS1AI/ReadGS1AI/Assets.xcassets/AppIcon.appiconset/dbr.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/ReadGS1AI/ReadGS1AI/Assets.xcassets/Contents.json +6 -0
- package/code-snippet/ios/FoundationalAPISamples/ReadGS1AI/ReadGS1AI/Assets.xcassets/dynamsoft.imageset/Contents.json +23 -0
- package/code-snippet/ios/FoundationalAPISamples/ReadGS1AI/ReadGS1AI/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/ReadGS1AI/ReadGS1AI/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo@2x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/ReadGS1AI/ReadGS1AI/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo@3x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/ReadGS1AI/ReadGS1AI/Base.lproj/LaunchScreen.storyboard +25 -0
- package/code-snippet/ios/FoundationalAPISamples/ReadGS1AI/ReadGS1AI/Base.lproj/Main.storyboard +24 -0
- package/code-snippet/ios/FoundationalAPISamples/ReadGS1AI/ReadGS1AI/CameraViewController.swift +114 -0
- package/code-snippet/ios/FoundationalAPISamples/ReadGS1AI/ReadGS1AI/DynamsoftResources.bundle/Root.plist +61 -0
- package/code-snippet/ios/FoundationalAPISamples/ReadGS1AI/ReadGS1AI/DynamsoftResources.bundle/Templates/ReadGS1AI.json +135 -0
- package/code-snippet/ios/FoundationalAPISamples/ReadGS1AI/ReadGS1AI/DynamsoftResources.bundle/en.lproj/Root.strings +0 -0
- package/code-snippet/ios/FoundationalAPISamples/ReadGS1AI/ReadGS1AI/Info.plist +25 -0
- package/code-snippet/ios/FoundationalAPISamples/ReadGS1AI/ReadGS1AI/SceneDelegate.swift +57 -0
- package/code-snippet/ios/FoundationalAPISamples/ReadGS1AI/ReadGS1AI/ViewController.swift +111 -0
- package/code-snippet/ios/FoundationalAPISamples/ReadGS1AI/ReadGS1AI.xcodeproj/project.pbxproj +389 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/AppDelegate.swift +20 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/Assets.xcassets/AppIcon.appiconset/dbr.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/Assets.xcassets/Contents.json +6 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/Assets.xcassets/dynamsoft.imageset/Contents.json +23 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo@2x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/Assets.xcassets/dynamsoft.imageset/dynamsoft-logo@3x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/Assets.xcassets/icon_arrow_camera_zoom_close.imageset/Contents.json +22 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/Assets.xcassets/icon_arrow_camera_zoom_close.imageset/icon_arrow_camera_zoom_close@2x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/Assets.xcassets/icon_arrow_camera_zoom_close.imageset/icon_arrow_camera_zoom_close@3x.png +0 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/Base.lproj/LaunchScreen.storyboard +25 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/Base.lproj/Main.storyboard +52 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/CameraViewController.swift +231 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/Category/UIDevice+Addition.swift +58 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/Category/UIView+Frame.swift +60 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/Info.plist +8 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/TinyBarcodeDecoding-Bridging-Header.h +4 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/Utils/Dynamsoft.swift +53 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/ViewController.swift +111 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/Views/CameraSettingView.swift +71 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/Views/CameraZoomFloatingButton.swift +56 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding/Views/CameraZoomSlider.swift +104 -0
- package/code-snippet/ios/FoundationalAPISamples/TinyBarcodeDecoding/TinyBarcodeDecoding.xcodeproj/project.pbxproj +473 -0
- package/data/dynamsoft_sdks.json +118 -0
- package/package.json +32 -0
- package/src/index.js +832 -0
|
@@ -0,0 +1,589 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This is the sample of Dynamsoft Barcode Reader.
|
|
3
|
+
*
|
|
4
|
+
* Copyright © Dynamsoft Corporation. All rights reserved.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import UIKit
|
|
8
|
+
import DynamsoftCaptureVisionBundle
|
|
9
|
+
|
|
10
|
+
var activeTextField: UITextField?
|
|
11
|
+
|
|
12
|
+
class SettingsTableViewController: UIViewController {
|
|
13
|
+
|
|
14
|
+
private var sections: [SettingSection] = []
|
|
15
|
+
private let tableView = UITableView(frame: .zero, style: .plain)
|
|
16
|
+
private let kSettingsState = "SettingsState"
|
|
17
|
+
var cvr: CaptureVisionRouter!
|
|
18
|
+
var templateName = PresetTemplate.readBarcodesSpeedFirst.rawValue
|
|
19
|
+
var isUsingCustomizedTemplate = false
|
|
20
|
+
|
|
21
|
+
override func viewDidLoad() {
|
|
22
|
+
super.viewDidLoad()
|
|
23
|
+
title = "Settings"
|
|
24
|
+
if let saved = loadState() {
|
|
25
|
+
sections = saved
|
|
26
|
+
} else {
|
|
27
|
+
sections = defaultSections()
|
|
28
|
+
}
|
|
29
|
+
setupTableView()
|
|
30
|
+
setupKeyboardObservers()
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
deinit {
|
|
34
|
+
NotificationCenter.default.removeObserver(self, name: UIResponder.keyboardWillShowNotification, object: nil)
|
|
35
|
+
NotificationCenter.default.removeObserver(self, name: UIResponder.keyboardWillHideNotification, object: nil)
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
func setupKeyboardObservers() {
|
|
39
|
+
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillShow(_:)), name: UIResponder.keyboardWillShowNotification, object: nil)
|
|
40
|
+
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillHide(_:)), name: UIResponder.keyboardWillHideNotification, object: nil)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
override func viewWillDisappear(_ animated: Bool) {
|
|
44
|
+
super.viewWillDisappear(animated)
|
|
45
|
+
saveState()
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
func setupTableView() {
|
|
49
|
+
tableView.register(SwitchCell.self, forCellReuseIdentifier: "SwitchCell")
|
|
50
|
+
tableView.register(TextFieldCell.self, forCellReuseIdentifier: "TextFieldCell")
|
|
51
|
+
tableView.register(OptionButtonCell.self, forCellReuseIdentifier: "OptionButtonCell")
|
|
52
|
+
|
|
53
|
+
tableView.backgroundColor = .black
|
|
54
|
+
tableView.tableFooterView = createRestoreDefaultFooter()
|
|
55
|
+
if #available(iOS 15.0, *) {
|
|
56
|
+
tableView.sectionHeaderTopPadding = 0
|
|
57
|
+
}
|
|
58
|
+
tableView.delegate = self
|
|
59
|
+
tableView.dataSource = self
|
|
60
|
+
tableView.translatesAutoresizingMaskIntoConstraints = false
|
|
61
|
+
|
|
62
|
+
view.addSubview(tableView)
|
|
63
|
+
let safeArea = view.safeAreaLayoutGuide
|
|
64
|
+
NSLayoutConstraint.activate([
|
|
65
|
+
tableView.topAnchor.constraint(equalTo: safeArea.topAnchor),
|
|
66
|
+
tableView.leftAnchor.constraint(equalTo: safeArea.leftAnchor),
|
|
67
|
+
tableView.rightAnchor.constraint(equalTo: safeArea.rightAnchor),
|
|
68
|
+
tableView.bottomAnchor.constraint(equalTo: safeArea.bottomAnchor)
|
|
69
|
+
])
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
func defaultSections() -> [SettingSection] {
|
|
73
|
+
|
|
74
|
+
let presetRow = ExpandableRow(title: "Select preset template", indentationLevel: 1, children: [
|
|
75
|
+
SelectableRow(title: "Speed first", indentationLevel: 2, isSelected: templateName == PresetTemplate.readBarcodesSpeedFirst.rawValue, simplifiedSettingsTag: .speedFirst),
|
|
76
|
+
SelectableRow(title: "Read-rate first", indentationLevel: 2,isSelected: templateName == PresetTemplate.readBarcodesReadRateFirst.rawValue, simplifiedSettingsTag: .readRateFirst)
|
|
77
|
+
])
|
|
78
|
+
let simplifiedSettingsRow = JumpRow(title: "Configure Simplified Settings", indentationLevel: 1)
|
|
79
|
+
let customizedTemplateRow = ExpandableRow(title: "Work with customized template files", indentationLevel: 1, children: [
|
|
80
|
+
TouchUpRow(title: "Import", indentationLevel: 2, simplifiedSettingsTag: .importSetting),
|
|
81
|
+
TouchUpRow(title: "Export", indentationLevel: 2, simplifiedSettingsTag: .exportSetting)
|
|
82
|
+
])
|
|
83
|
+
let decodeSettingsSection = SettingSection(title: "Decode Settings", rows: [
|
|
84
|
+
presetRow,
|
|
85
|
+
simplifiedSettingsRow,
|
|
86
|
+
customizedTemplateRow
|
|
87
|
+
])
|
|
88
|
+
decodeSettingsSection.isExpanded = true
|
|
89
|
+
|
|
90
|
+
let multiFramecrossRow = SwitchRow(title: "Multi-frame cross verification", indentationLevel: 1, simplifiedSettingsTag: .multiFrameCrossVerification)
|
|
91
|
+
let resultDeduplicationRow = SwitchRow(title: "Result deduplication", indentationLevel: 1, children: [
|
|
92
|
+
TextFieldRow(title: "Duplicate forget time(ms)", indentationLevel: 2, text: "3000", simplifiedSettingsTag: .duplicateForgetTime)
|
|
93
|
+
], simplifiedSettingsTag: .resultDeduplication)
|
|
94
|
+
let overlappingRow = SwitchRow(title: "To the latest overlapping", indentationLevel: 1, children: [
|
|
95
|
+
TextFieldRow(title: "Max overlapping frame count", indentationLevel: 2, text: "5", simplifiedSettingsTag: .maxOverlappingFrameCount)
|
|
96
|
+
], simplifiedSettingsTag: .toTheLatestOverlapping)
|
|
97
|
+
let multiFrameSection = SettingSection(title: "Multi-frame cross filter", rows: [
|
|
98
|
+
multiFramecrossRow,
|
|
99
|
+
resultDeduplicationRow,
|
|
100
|
+
overlappingRow
|
|
101
|
+
])
|
|
102
|
+
|
|
103
|
+
let feedBackSection = SettingSection(title: "Result feedback", rows: [
|
|
104
|
+
SwitchRow(title: "Beep", indentationLevel: 1, simplifiedSettingsTag: .beep),
|
|
105
|
+
SwitchRow(title: "Vibrate", indentationLevel: 1, simplifiedSettingsTag: .vibrate)
|
|
106
|
+
])
|
|
107
|
+
|
|
108
|
+
let cameraSettingsSection = SettingSection(title: "Camera Settings", rows: [
|
|
109
|
+
OptionButtonRow(title: "Scan Region", indentationLevel: 1, options: ["Full Image", "Square", "Rectangular"], selectedIndex: 0, simplifiedSettingsTag: .scanRegion),
|
|
110
|
+
OptionButtonRow(title: "Barcode Colour Option", indentationLevel: 1, options: ["1080P", "4K", "720P"], selectedIndex: 0, simplifiedSettingsTag: .resolution),
|
|
111
|
+
SwitchRow(title: "Auto zoom", indentationLevel: 1, simplifiedSettingsTag: .autoZoom)
|
|
112
|
+
])
|
|
113
|
+
return [decodeSettingsSection, multiFrameSection, feedBackSection, cameraSettingsSection]
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
func createRestoreDefaultFooter() -> UIView {
|
|
117
|
+
let footer = UIView(frame: CGRect(x: 0, y: 0, width: tableView.frame.width, height: 100))
|
|
118
|
+
let button = UIButton(type: .system)
|
|
119
|
+
button.setTitle("Restore default", for: .normal)
|
|
120
|
+
button.setTitleColor(.white, for: .normal)
|
|
121
|
+
button.backgroundColor = .orange
|
|
122
|
+
button.titleLabel?.font = UIFont.systemFont(ofSize: 16)
|
|
123
|
+
button.layer.cornerRadius = 8
|
|
124
|
+
button.layer.masksToBounds = true
|
|
125
|
+
button.addTarget(self, action: #selector(restoreDefaults), for: .touchUpInside)
|
|
126
|
+
button.translatesAutoresizingMaskIntoConstraints = false
|
|
127
|
+
footer.addSubview(button)
|
|
128
|
+
NSLayoutConstraint.activate([
|
|
129
|
+
button.centerXAnchor.constraint(equalTo: footer.centerXAnchor),
|
|
130
|
+
button.centerYAnchor.constraint(equalTo: footer.centerYAnchor),
|
|
131
|
+
button.widthAnchor.constraint(equalToConstant: 200),
|
|
132
|
+
button.heightAnchor.constraint(equalToConstant: 48)
|
|
133
|
+
])
|
|
134
|
+
return footer
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@objc func restoreDefaults() {
|
|
138
|
+
showConfirm("Notice", "All the Settings will be reset to the default value.") { [self] in
|
|
139
|
+
try? cvr.resetSettings()
|
|
140
|
+
templateName = PresetTemplate.readBarcodesSpeedFirst.rawValue
|
|
141
|
+
clearSimplifiedCaptureVisionSettingsState()
|
|
142
|
+
|
|
143
|
+
sections = defaultSections()
|
|
144
|
+
UserDefaults.standard.removeObject(forKey: kSettingsState)
|
|
145
|
+
tableView.reloadData()
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// MARK: - save and load
|
|
152
|
+
extension SettingsTableViewController {
|
|
153
|
+
|
|
154
|
+
func saveState() {
|
|
155
|
+
let dictArray = sections.map { $0.persist() }
|
|
156
|
+
UserDefaults.standard.set(dictArray, forKey: kSettingsState)
|
|
157
|
+
|
|
158
|
+
var dict: [String: Any] = [:]
|
|
159
|
+
for section in sections {
|
|
160
|
+
section.rows.forEach { row in
|
|
161
|
+
saveRowState(row, to: &dict)
|
|
162
|
+
if let children = row.children {
|
|
163
|
+
children.forEach { saveRowState($0, to: &dict) }
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
UserDefaults.standard.set(dict, forKey: kOtherSettingsState)
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
func saveRowState(_ row: SettingRow, to dict: inout [String: Any]) {
|
|
171
|
+
if let tag = row.simplifiedSettingsTag {
|
|
172
|
+
switch tag {
|
|
173
|
+
case .multiFrameCrossVerification:
|
|
174
|
+
dict[tag.rawValue] = (row as? SwitchRow)?.isOn
|
|
175
|
+
case .resultDeduplication:
|
|
176
|
+
dict[tag.rawValue] = (row as? SwitchRow)?.isOn
|
|
177
|
+
case .duplicateForgetTime:
|
|
178
|
+
if let str = (row as? TextFieldRow)?.text, let number = Int(str) {
|
|
179
|
+
dict[tag.rawValue] = number
|
|
180
|
+
}
|
|
181
|
+
case .toTheLatestOverlapping:
|
|
182
|
+
dict[tag.rawValue] = (row as? SwitchRow)?.isOn
|
|
183
|
+
case .maxOverlappingFrameCount:
|
|
184
|
+
if let str = (row as? TextFieldRow)?.text, let number = Int(str) {
|
|
185
|
+
dict[tag.rawValue] = number
|
|
186
|
+
}
|
|
187
|
+
case .beep:
|
|
188
|
+
dict[tag.rawValue] = (row as? SwitchRow)?.isOn
|
|
189
|
+
case .vibrate:
|
|
190
|
+
dict[tag.rawValue] = (row as? SwitchRow)?.isOn
|
|
191
|
+
case .scanRegion:
|
|
192
|
+
dict[tag.rawValue] = (row as? OptionButtonRow)?.selectedIndex
|
|
193
|
+
case .resolution:
|
|
194
|
+
dict[tag.rawValue] = (row as? OptionButtonRow)?.selectedIndex
|
|
195
|
+
case .autoZoom:
|
|
196
|
+
dict[tag.rawValue] = (row as? SwitchRow)?.isOn
|
|
197
|
+
default:
|
|
198
|
+
break
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
func loadState() -> [SettingSection]? {
|
|
204
|
+
guard let dictArray = UserDefaults.standard.array(forKey: kSettingsState) as? [[String: Any]] else {
|
|
205
|
+
return nil
|
|
206
|
+
}
|
|
207
|
+
return dictArray.compactMap { SettingSection(dict: $0) }
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// MARK: - UITableViewDataSource
|
|
213
|
+
extension SettingsTableViewController: UITableViewDataSource {
|
|
214
|
+
|
|
215
|
+
func numberOfSections(in tableView: UITableView) -> Int {
|
|
216
|
+
return sections.count
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
|
|
220
|
+
let section = sections[section]
|
|
221
|
+
return section.isExpanded ? section.visibleRows.count + 1 : 1
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
|
225
|
+
|
|
226
|
+
let section = sections[indexPath.section]
|
|
227
|
+
|
|
228
|
+
if indexPath.row == 0 {
|
|
229
|
+
let cell = UITableViewCell()
|
|
230
|
+
cell.backgroundColor = .customSectionColor
|
|
231
|
+
cell.textLabel?.text = section.title
|
|
232
|
+
cell.textLabel?.textColor = .white
|
|
233
|
+
cell.accessoryView = UIImageView(image: UIImage(systemName: section.isExpanded ? "chevron.up" : "chevron.down"))
|
|
234
|
+
cell.accessoryView?.tintColor = section.isExpanded ? .orange : .customChevronColor
|
|
235
|
+
cell.indentationLevel = 0
|
|
236
|
+
return cell
|
|
237
|
+
} else {
|
|
238
|
+
let rows = section.visibleRows
|
|
239
|
+
let row = rows[indexPath.row - 1]
|
|
240
|
+
switch row.type {
|
|
241
|
+
|
|
242
|
+
case .chevronExpand:
|
|
243
|
+
let expandRow = row as! ExpandableRow
|
|
244
|
+
let cell = UITableViewCell()
|
|
245
|
+
cell.textLabel?.text = row.title
|
|
246
|
+
cell.textLabel?.textColor = .customCellTextColor
|
|
247
|
+
cell.backgroundColor = expandRow.indentationLevel == 2 ? .customSubCellColor : .customCellColor
|
|
248
|
+
cell.accessoryView = UIImageView(image: UIImage(systemName: expandRow.isExpanded ? "chevron.up" : "chevron.down"))
|
|
249
|
+
cell.accessoryView?.tintColor = expandRow.isExpanded ? .orange : .customChevronColor
|
|
250
|
+
cell.indentationLevel = expandRow.indentationLevel
|
|
251
|
+
return cell
|
|
252
|
+
|
|
253
|
+
case .switchCell:
|
|
254
|
+
let switchRow = row as! SwitchRow
|
|
255
|
+
let cell = tableView.dequeueReusableCell(withIdentifier: "SwitchCell", for: indexPath) as! SwitchCell
|
|
256
|
+
cell.textLabel?.text = switchRow.title
|
|
257
|
+
cell.textLabel?.textColor = .customCellTextColor
|
|
258
|
+
cell.backgroundColor = switchRow.indentationLevel == 2 ? .customSubCellColor : .customCellColor
|
|
259
|
+
cell.switchControl.isOn = switchRow.isOn
|
|
260
|
+
cell.indentationLevel = switchRow.indentationLevel
|
|
261
|
+
cell.switchChanged = { [weak self] isOn in
|
|
262
|
+
switchRow.isOn = isOn
|
|
263
|
+
self?.saveState()
|
|
264
|
+
if (switchRow.children != nil) {
|
|
265
|
+
self?.tableView.reloadSections(IndexSet(integer: indexPath.section), with: .none)
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
cell.selectionStyle = .none
|
|
269
|
+
return cell
|
|
270
|
+
|
|
271
|
+
case .textField:
|
|
272
|
+
let textRow = row as! TextFieldRow
|
|
273
|
+
let cell = tableView.dequeueReusableCell(withIdentifier: "TextFieldCell", for: indexPath) as! TextFieldCell
|
|
274
|
+
cell.textLabel?.text = textRow.title
|
|
275
|
+
cell.textLabel?.textColor = .customCellTextColor
|
|
276
|
+
cell.backgroundColor = textRow.indentationLevel == 2 ? .customSubCellColor : .customCellColor
|
|
277
|
+
cell.textField.text = textRow.text
|
|
278
|
+
cell.indentationLevel = textRow.indentationLevel
|
|
279
|
+
cell.textChanged = { [weak self] text in
|
|
280
|
+
textRow.text = text
|
|
281
|
+
self?.saveState()
|
|
282
|
+
}
|
|
283
|
+
cell.selectionStyle = .none
|
|
284
|
+
cell.inputType = textRow.inputType
|
|
285
|
+
if textRow.simplifiedSettingsTag == .duplicateForgetTime {
|
|
286
|
+
cell.minValue = 1
|
|
287
|
+
cell.maxValue = 180000
|
|
288
|
+
}
|
|
289
|
+
return cell
|
|
290
|
+
|
|
291
|
+
case .touchUp:
|
|
292
|
+
let cell = UITableViewCell()
|
|
293
|
+
cell.textLabel?.text = row.title
|
|
294
|
+
cell.textLabel?.textColor = .customCellTextColor
|
|
295
|
+
cell.backgroundColor = row.indentationLevel == 2 ? .customSubCellColor : .customCellColor
|
|
296
|
+
cell.indentationLevel = row.indentationLevel
|
|
297
|
+
return cell
|
|
298
|
+
|
|
299
|
+
case .select:
|
|
300
|
+
let selectRow = row as! SelectableRow
|
|
301
|
+
let cell = UITableViewCell()
|
|
302
|
+
cell.textLabel?.text = selectRow.title + (selectRow.isSelected ? " ✓" : "")
|
|
303
|
+
cell.textLabel?.textColor = selectRow.isSelected ? .orange : .customCellTextColor
|
|
304
|
+
cell.backgroundColor = selectRow.indentationLevel == 2 ? .customSubCellColor : .customCellColor
|
|
305
|
+
cell.indentationLevel = selectRow.indentationLevel
|
|
306
|
+
return cell
|
|
307
|
+
|
|
308
|
+
case .jump:
|
|
309
|
+
let cell = UITableViewCell()
|
|
310
|
+
cell.textLabel?.text = row.title
|
|
311
|
+
cell.textLabel?.textColor = .customCellTextColor
|
|
312
|
+
cell.backgroundColor = row.indentationLevel == 2 ? .customSubCellColor : .customCellColor
|
|
313
|
+
cell.indentationLevel = row.indentationLevel
|
|
314
|
+
cell.accessoryView = UIImageView(image: UIImage(systemName: "chevron.right"))
|
|
315
|
+
cell.accessoryView?.tintColor = .customChevronColor
|
|
316
|
+
return cell
|
|
317
|
+
|
|
318
|
+
case .optionButton:
|
|
319
|
+
let optionRow = row as! OptionButtonRow
|
|
320
|
+
let cell = tableView.dequeueReusableCell(withIdentifier: "OptionButtonCell", for: indexPath) as! OptionButtonCell
|
|
321
|
+
cell.backgroundColor = .customCellColor
|
|
322
|
+
cell.configure(with: optionRow.title, options: optionRow.options, selectedIndex: optionRow.selectedIndex)
|
|
323
|
+
cell.selectionChanged = { [weak self] selectedIndex in
|
|
324
|
+
optionRow.selectedIndex = selectedIndex
|
|
325
|
+
self?.saveState()
|
|
326
|
+
}
|
|
327
|
+
cell.selectionStyle = .none
|
|
328
|
+
return cell
|
|
329
|
+
case .pick, .expandableSwitch:
|
|
330
|
+
let cell = UITableViewCell()
|
|
331
|
+
return cell
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
// MARK: - UITableView Delegate
|
|
339
|
+
extension SettingsTableViewController: UITableViewDelegate {
|
|
340
|
+
|
|
341
|
+
func tableView(_ tableView: UITableView, accessoryButtonTappedForRowWith indexPath: IndexPath) {
|
|
342
|
+
print("Detail clicked,index:\(indexPath)")
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
|
|
346
|
+
let section = sections[indexPath.section]
|
|
347
|
+
if indexPath.row == 0 {
|
|
348
|
+
return 50
|
|
349
|
+
} else {
|
|
350
|
+
let rows = section.visibleRows
|
|
351
|
+
let row = rows[indexPath.row - 1]
|
|
352
|
+
if row.type == .optionButton {
|
|
353
|
+
return 90
|
|
354
|
+
} else {
|
|
355
|
+
return 50
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
|
|
361
|
+
|
|
362
|
+
let section = sections[indexPath.section]
|
|
363
|
+
|
|
364
|
+
if indexPath.row == 0 {
|
|
365
|
+
section.isExpanded.toggle()
|
|
366
|
+
saveState()
|
|
367
|
+
tableView.reloadSections(IndexSet(integer: indexPath.section), with: .none)
|
|
368
|
+
} else {
|
|
369
|
+
let rows = section.visibleRows
|
|
370
|
+
let row = rows[indexPath.row - 1]
|
|
371
|
+
tableView.deselectRow(at: indexPath, animated: true)
|
|
372
|
+
switch row.type {
|
|
373
|
+
case .chevronExpand:
|
|
374
|
+
(row as! ExpandableRow).isExpanded.toggle()
|
|
375
|
+
saveState()
|
|
376
|
+
tableView.reloadSections(IndexSet(integer: indexPath.section), with: .none)
|
|
377
|
+
case .select:
|
|
378
|
+
let selectRow = row as! SelectableRow
|
|
379
|
+
if selectRow.isSelected {
|
|
380
|
+
selectRow.isSelected = false
|
|
381
|
+
} else {
|
|
382
|
+
if let parentRow = section.rows.first(where: { $0.children?.contains(where: { $0 === selectRow }) == true }) {
|
|
383
|
+
parentRow.children?.forEach { ($0 as! SelectableRow).isSelected = false }
|
|
384
|
+
}
|
|
385
|
+
selectRow.isSelected = true
|
|
386
|
+
}
|
|
387
|
+
if selectRow.isSelected, let tag = selectRow.simplifiedSettingsTag {
|
|
388
|
+
onSelectTemplate(tag)
|
|
389
|
+
}
|
|
390
|
+
saveState()
|
|
391
|
+
tableView.reloadSections(IndexSet(integer: indexPath.section), with: .none)
|
|
392
|
+
case .touchUp:
|
|
393
|
+
onTouchUpPort(row)
|
|
394
|
+
case .jump:
|
|
395
|
+
onJumpPort(row.title)
|
|
396
|
+
case .switchCell, .textField, .optionButton, .pick, .expandableSwitch: break
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
private func onJumpPort(_ title: String) {
|
|
403
|
+
if let settings = try? cvr.getSimplifiedSettings(templateName) {
|
|
404
|
+
let vc = SimplifiedSettingsViewController()
|
|
405
|
+
vc.settings = settings
|
|
406
|
+
navigationController?.pushViewController(vc, animated: true)
|
|
407
|
+
} else {
|
|
408
|
+
showResult("Error", "Can't getSimplifiedSettings, pleas restore first.")
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
private func onSelectTemplate(_ tag: SimplifiedSettingsTag) {
|
|
413
|
+
try? cvr.resetSettings()
|
|
414
|
+
if tag == .speedFirst {
|
|
415
|
+
templateName = PresetTemplate.readBarcodesSpeedFirst.rawValue
|
|
416
|
+
} else if tag == .readRateFirst {
|
|
417
|
+
templateName = PresetTemplate.readBarcodesReadRateFirst.rawValue
|
|
418
|
+
}
|
|
419
|
+
isUsingCustomizedTemplate = false
|
|
420
|
+
saveTemplateState()
|
|
421
|
+
clearSimplifiedCaptureVisionSettingsState()
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
private func onTouchUpPort(_ row: SettingRow) {
|
|
425
|
+
let tag = row.simplifiedSettingsTag
|
|
426
|
+
if tag == .importSetting {
|
|
427
|
+
showInputAlert()
|
|
428
|
+
} else if tag == .exportSetting {
|
|
429
|
+
if let path = kSettingFilePath?.path {
|
|
430
|
+
do {
|
|
431
|
+
try cvr.outputSettingsToFile(templateName, filePath: path, includeDefaultValues: true)
|
|
432
|
+
showConfirm("Notice", "Do you want to share the settings.json file?\nThe file has been saved to \(path)") {
|
|
433
|
+
self.shareFile(kSettingFilePath)
|
|
434
|
+
}
|
|
435
|
+
} catch {
|
|
436
|
+
showResult("Export failed", error.localizedDescription)
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
private func switchCustomizedTemplate(_ jsonString: String) {
|
|
443
|
+
do {
|
|
444
|
+
try cvr.initSettings(jsonString)
|
|
445
|
+
templateName = ""
|
|
446
|
+
if let path = kSettingFilePath?.path {
|
|
447
|
+
try cvr.outputSettingsToFile(templateName, filePath: path, includeDefaultValues: true)
|
|
448
|
+
}
|
|
449
|
+
isUsingCustomizedTemplate = true
|
|
450
|
+
saveTemplateState()
|
|
451
|
+
|
|
452
|
+
if let children = sections.first(where: { section in
|
|
453
|
+
section.rows.contains(where: { $0.title == "Select preset template" })
|
|
454
|
+
})?.rows.first(where: { $0.title == "Select preset template" })?.children {
|
|
455
|
+
for row in children {
|
|
456
|
+
(row as? SelectableRow)?.isSelected = false
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
DispatchQueue.main.async {
|
|
460
|
+
self.tableView.reloadSections(IndexSet(integer: 0), with: .none)
|
|
461
|
+
}
|
|
462
|
+
saveState()
|
|
463
|
+
|
|
464
|
+
clearSimplifiedCaptureVisionSettingsState()
|
|
465
|
+
} catch {
|
|
466
|
+
showResult("InitSettings Error", error.localizedDescription)
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
private func clearSimplifiedCaptureVisionSettingsState() {
|
|
471
|
+
UserDefaults.standard.removeObject(forKey: kTemplateState)
|
|
472
|
+
UserDefaults.standard.removeObject(forKey: kBarcodeFormatState)
|
|
473
|
+
UserDefaults.standard.removeObject(forKey: kSimplifiedCaptureVisionSettingsState)
|
|
474
|
+
UserDefaults.standard.removeObject(forKey: kOtherSettingsState)
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
func showInputAlert() {
|
|
478
|
+
let alertController = UIAlertController(title: "Please input a JSON URL", message: nil, preferredStyle: .alert)
|
|
479
|
+
alertController.addTextField { textField in
|
|
480
|
+
textField.placeholder = "https://www.example.com/data.json"
|
|
481
|
+
}
|
|
482
|
+
let confirmAction = UIAlertAction(title: "OK", style: .default) { [weak self] _ in
|
|
483
|
+
guard let urlString = alertController.textFields?.first?.text,
|
|
484
|
+
let url = URL(string: urlString) else {
|
|
485
|
+
self?.showResult("Error", "Please input a valid URL")
|
|
486
|
+
return
|
|
487
|
+
}
|
|
488
|
+
self?.fetchJSON(from: url)
|
|
489
|
+
}
|
|
490
|
+
let cancelAction = UIAlertAction(title: "Cancel", style: .cancel, handler: nil)
|
|
491
|
+
alertController.addAction(confirmAction)
|
|
492
|
+
alertController.addAction(cancelAction)
|
|
493
|
+
present(alertController, animated: true, completion: nil)
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
func fetchJSON(from url: URL) {
|
|
497
|
+
URLSession.shared.dataTask(with: url) { [weak self] data, response, error in
|
|
498
|
+
if let error = error {
|
|
499
|
+
self?.showResult("Request Error", error.localizedDescription)
|
|
500
|
+
return
|
|
501
|
+
}
|
|
502
|
+
guard let data = data else {
|
|
503
|
+
self?.showResult("Error", "No data returned")
|
|
504
|
+
return
|
|
505
|
+
}
|
|
506
|
+
do {
|
|
507
|
+
let jsonObject = try JSONSerialization.jsonObject(with: data, options: [])
|
|
508
|
+
let jsonData = try JSONSerialization.data(withJSONObject: jsonObject, options: .prettyPrinted)
|
|
509
|
+
if let jsonString = String(data: jsonData, encoding: .utf8) {
|
|
510
|
+
self?.switchCustomizedTemplate(jsonString)
|
|
511
|
+
}
|
|
512
|
+
} catch {
|
|
513
|
+
self?.showResult("Parsing Error", error.localizedDescription)
|
|
514
|
+
}
|
|
515
|
+
}.resume()
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
private func showResult(_ title: String, _ message: String?, completion: (() -> Void)? = nil) {
|
|
519
|
+
DispatchQueue.main.async {
|
|
520
|
+
let alert = UIAlertController(title: title, message: message, preferredStyle: .alert)
|
|
521
|
+
alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { _ in completion?() }))
|
|
522
|
+
self.present(alert, animated: true, completion: nil)
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
func showConfirm(_ title: String, _ message: String?, completion: (() -> Void)? = nil) {
|
|
527
|
+
DispatchQueue.main.async {
|
|
528
|
+
let alert = UIAlertController(title: title, message: message, preferredStyle: .alert)
|
|
529
|
+
alert.addAction(UIAlertAction(title: "Cancel", style: .cancel))
|
|
530
|
+
alert.addAction(UIAlertAction(title: "Confirm", style: .destructive, handler: { _ in completion?() }))
|
|
531
|
+
self.present(alert, animated: true, completion: nil)
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
func shareFile(_ url: URL?) {
|
|
536
|
+
guard let path = url, FileManager.default.fileExists(atPath: path.path) else { return }
|
|
537
|
+
|
|
538
|
+
let activityVC = UIActivityViewController(activityItems: [path], applicationActivities: nil)
|
|
539
|
+
|
|
540
|
+
if let popoverController = activityVC.popoverPresentationController {
|
|
541
|
+
popoverController.sourceView = self.view
|
|
542
|
+
popoverController.sourceRect = CGRect(x: self.view.bounds.midX, y: self.view.bounds.midY, width: 0, height: 0)
|
|
543
|
+
popoverController.permittedArrowDirections = []
|
|
544
|
+
}
|
|
545
|
+
self.present(activityVC, animated: true, completion: nil)
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
private func saveTemplateState() {
|
|
549
|
+
var dict: [String: Any] = [:]
|
|
550
|
+
dict["templateName"] = templateName
|
|
551
|
+
dict["isUsingCustomizedTemplate"] = isUsingCustomizedTemplate
|
|
552
|
+
UserDefaults.standard.set(dict, forKey: kTemplateState)
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
// MARK: - Keyboard
|
|
557
|
+
extension SettingsTableViewController {
|
|
558
|
+
|
|
559
|
+
@objc func keyboardWillShow(_ notification: Notification) {
|
|
560
|
+
guard let keyboardFrame = notification.userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as? CGRect,
|
|
561
|
+
let duration = notification.userInfo?[UIResponder.keyboardAnimationDurationUserInfoKey] as? Double,
|
|
562
|
+
let activeField = activeTextField else { return }
|
|
563
|
+
|
|
564
|
+
let keyboardY = self.view.frame.height - keyboardFrame.height
|
|
565
|
+
|
|
566
|
+
let activeFieldFrame = activeField.convert(activeField.bounds, to: self.view)
|
|
567
|
+
let activeFieldBottom = activeFieldFrame.maxY
|
|
568
|
+
|
|
569
|
+
let overlap = activeFieldBottom - keyboardY
|
|
570
|
+
|
|
571
|
+
UIView.animate(withDuration: duration) {
|
|
572
|
+
if overlap > 0 {
|
|
573
|
+
self.view.frame.origin.y = -overlap - 10
|
|
574
|
+
} else {
|
|
575
|
+
self.view.frame.origin.y = 0
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
@objc func keyboardWillHide(_ notification: Notification) {
|
|
581
|
+
guard let duration = notification.userInfo?[UIResponder.keyboardAnimationDurationUserInfoKey] as? Double else {
|
|
582
|
+
return
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
UIView.animate(withDuration: duration) {
|
|
586
|
+
self.view.frame.origin.y = 0
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
}
|