title: How to know the AppUpdateType at the origin of the DEVELOPER_TRIGGERED_UPDATE_IN_PROGRESS update availability?
body: <p>I am currently working on an implementation of the new "in-app update" library of Google.</p>
  
  <p>According to the documentation, we can prompt a "flexible" or an "immediate" UI to the user. In both case, it will launch the download of the update (blocking or not).</p>
  
  <p>If during this download I kill my app and them re-launch it before the end of the download, when I ask for the "update availability" the API gives me the answer <code>UpdateAvailability.DEVELOPER_TRIGGERED_UPDATE_IN_PROGRESS</code>.</p>
  
  <p>The <a href="https://developer.android.com/guide/app-bundle/in-app-updates" rel="nofollow noreferrer">documentation</a> mentions this availability only in the case of an immediate update so we have to restore the fullscreen UI with the following code :</p>
  
  <pre><code>appUpdateManager.startUpdateFlowForResult(appUpdateInfo, IMMEDIATE, this, 1000)
  </code></pre>
  
  <p>The matter is that I also have this availability when a flexible update is downloading and in this case I do not want to start a fullscreen downloading UI because it's a flexible update...</p>
  
  <p>Is there any way to know if we are in a flexible or an immediate update when the API returns <code>UpdateAvailability.DEVELOPER_TRIGGERED_UPDATE_IN_PROGRESS</code> as the availability ?</p>
  
  <p>Thank you in advance for your help!</p>