Smart Capture

Requirements

It will add extra MB to the app based on CPU architecture

  • armeabi-v7a: 3.1 MB
  • arm64-v8a: 5.6 MB
  • x86: 16.7 MB
  • x86_64: 25.1 MB

Setup

In your root-level (project-level) Gradle file (/build.gradle),

  • add the reference to the following repository:

      buildscript {
        //..
        repositories {
            //..
            maven { url 'https://jitpack.io' }
        }
      }
    

In your module (app-level) Gradle file (usually //build.gradle)

  • add the dependencie

    dependencies {
      //...
    	implementation "com.metamap:android-sdk-smart-capture:0.2.0"
    }
    

Handles

Once the smart capture dependency is added it will automatically be enabled. However, if you want to enable/disable it manually, please use the following methods

//enables the Smart Capture
MetamapSdk.enableSmartCapture()
//disables the Smart Capture
MetamapSdk.disableSmartCapture()
//enables the Smart Capture
MetamapSdk.INSTANCE.enableSmartCapture();
//disables the Smart Capture
MetamapSdk.INSTANCE.disableSmartCapture();

What’s Next

Having Troubles? Please visit Troubleshoot section or check out our demo apps.