code: public static int getHeightOfScanningRectangleInPxOrZero(Intent intent) {
      if (intent == null) return 0;
      return intent.getIntExtra(Intents.Scan.HEIGHT, 0);
    }
docs: Get the height of the scanning rectangle in pixels from {@code Intent}.
  @param intent Target intent. It can be {@code null}.
  @return Height of scanning rectangle in pixels if specified, or zero otherwise.