Fetching Details From License

Setting up License

The method used to fetch the details from the license is

AccuraOcr.getMetaData()

The example function is shown below

  Future<void> getMetaData() async{
    try {
      await AccuraOcr.getMetaData().then((value) =>
          print(value));
    }on PlatformException{}
    if (!mounted) return;
  }

Response:

On Success: JSON String Response = { countries: Array[], barcodes: Array[], isValid: boolean, isOCREnable: boolean, isBarcodeEnable: boolean, isBankCardEnable: boolean, isMRZEnable: boolean }

Error: String

Last updated