title: Product details from barcode
body: <p>I am using <a href="https://firebase.google.com/docs/ml-kit/android/read-barcodes" rel="nofollow noreferrer">Firebase Barcode Scanner</a> and I need to get product information when the user scans it, for example, drink size (1l, 2l...), clothing size (m, l, xl), clothing color or something like that.</p>
  
  <p>Is there a way to extract data from the barcode raw value?</p>
  
  <pre><code>workflowModel = ViewModelProviders.of(this).get(WorkflowModel::class.java)
  workflowModel?.detectedBarcode?.observe(this, Observer { barcode -&gt;
              if (barcode != null) {
                  val barcodeFieldList = ArrayList&lt;BarcodeField&gt;()
                  barcodeFieldList.add(BarcodeField("Raw Value", barcode.rawValue ?: ""))
                  BarcodeResultFragment.show(supportFragmentManager, barcodeFieldList)
  
              }
          })
  </code></pre>