diff --git a/index.bs b/index.bs index 8e7aae0..31070d3 100644 --- a/index.bs +++ b/index.bs @@ -49,6 +49,8 @@ Please see the @@ -209,13 +211,13 @@ interface BarcodeDetector {
This method, when invoked, MUST return a new {{Promise}} |promise| and run the following steps in parallel:
  1. Let |supportedFormats| be a new {{Array}}.
  2. -
  3. If the UA does not support barcode detection, resolve |promise| with |supportedFormats| and abort these steps.
  4. +
  5. If the UA does not support barcode detection, [=queue a global task=] on the [=relevant global object=] of [=this=] using the [=shape detection task source=] to [=resolve=] |promise| with |supportedFormats| and abort these steps.
  6. Enumerate the {{BarcodeFormat}}s that the UA understands as potentially detectable in images. Add these to |supportedFormats|.
    The UA cannot give a definitive answer as to whether a given barcode format will always be recognized on an image due to e.g. positioning of the symbols or encoding errors. If a given barcode symbology is not in |supportedFormats| array, however, it should not be detectable whatsoever.
  7. -
  8. Resolve |promise| with |supportedFormats|.
  9. +
  10. [=Queue a global task=] on the [=relevant global object=] of [=this=] using the [=shape detection task source=] to [=resolve=] |promise| with |supportedFormats|.
The list of supported {{BarcodeFormat}}s is platform dependent, some examples are the ones supported by Google Play Services and Apple's QICRCodeFeature.