<doc>
  <legacy_id>3022</legacy_id>
  <name>u3eject</name>
  <type>message</type>
  <syntax>
    <example>u3eject <i>type</i></example>
  </syntax>
  <library></library>
  <objects>
    <stack/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
  </classification>
  <references>
    <message tag="startup">startup Message</message>
  </references>
  <history>
    <introduced version="2.7.3">Added.</introduced>
  </history>
  <platforms>
    <windows/>
  </platforms>
  <classes>
    <desktop/>
    <web/>
  </classes>
  <security>
  </security>
  <summary>Sent to the first stack after the engine receives a U3 stop message from the U3 LaunchPad.</summary>
  <examples>
    <example>on u3eject</p><p>    saveFiles</p><p>end u3eject</example>
  </examples>
  <description>
    <p>When the U3 LaunchPad requests an application stops, it sends a stop message to the LiveCode engine. The engine will send a u3eject message to the first stack.</p><p/><p><b>Parameters:</b></p><p>The <i>type</i> is one of 'safe' or 'physical' depending on whether the U3 drive was ejected safely or physically.</p><p/><p>If <i>type</i> is 'safe' then the application has as much time as it needs to shutdown, however it must quit else it violates the U3 specification. </p><p>If <i>type</i> is 'physical' then the application will be forcefully terminated not more than 4 seconds after it is sent the u3eject message.</p>
  </description>
</doc>