code: public static long getResultDisplayDurationInMsOrDefaultValue(Intent intent) {
      if (intent == null) return DEFAULT_INTENT_RESULT_DURATION_MS;
      return intent.getLongExtra(Intents.Scan.RESULT_DISPLAY_DURATION_MS,
          DEFAULT_INTENT_RESULT_DURATION_MS);
    }
docs: Get desired duration for which to pause after a successful scan from {@code Intent}.
  @param intent Target intent.
  @return Desired duration in milliseconds retrieved from {@code intent} or default value.