Skip to main content
Version: 4.1.1

Xamarin Steps Project

This section details the steps required to integrate our library into a Xamarin project.

Download Required Files

iOS and Android builds are available for download. Depending on your license, select the appropriate version. If you do not require the plate decoder, lighter versions of the builds are also available.

Create the DLL

  1. Create a Binding Project:
    • From the home page, select New → Android Library → Bindings Library
  2. Add the Framework:
    • In the file explorer, right-click on the Jars directory and select Add → Existing file
    • Then choose your smartscan-release.aar framework file
  3. Generate the DLL:
    • Set the build mode to Release and build the project
    • Once the build is complete, retrieve the DLL file from the /bin/<project_name>.dll folder

Integrate the library

  1. Add the decoding library:

    • Place the decoding library files for each architecture in a /libs directory:
    |-- libs
    |-- arm64-v8a
    |-- armeabi-v7a
    |-- x86
    |-- x86-64
  2. Update Build Action:

    • In the file explorer, right-click each .so file, select Build actions and set the action to AndroidNativeLibrary

Integrate the DLL

  1. Add the DLL File:
    • Place the DLL file in the /dll directory
  2. Add the DLL Reference:
    • In the file explorer, right-click on References and select Add Project Reference
    • Go to the .NET Assembly tab, click Browse, and select your DLL file

Finally, follow the steps outlined in the Base Implementation section.