SplashScreen.Show

Zeigt den Begrüßungsbildschirm.

navigator.splashscreen.show();

Beschreibung

Diese Methode zeigt Begrüßungsbildschirm der Anwendung.

Unterstützte Plattformen

  • Android
  • iOS
  • Windows Phone 7 und 8
  • Windows 8

Kleines Beispiel

navigator.splashscreen.show();

Vollständiges Beispiel

<!DOCTYPE html>
<html>
  <head>
    <title>Splashscreen Example</title>

    <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
    <script type="text/javascript" charset="utf-8">

    // Wait for device API libraries to load
    //
    document.addEventListener("deviceready", onDeviceReady, false);

    // device APIs are available
    //
    function onDeviceReady() {
        navigator.splashscreen.show();
    }

    </script>
  </head>
  <body>
    <h1>Example</h1>
  </body>
</html>