これがないドキュメントの最新バージョンです!
Click here for the latest released version.
splashscreen.hide
スプラッシュ スクリーンを閉じます。
navigator.splashscreen.hide();
説明
このメソッドは、アプリケーションのスプラッシュ スクリーンを閉じます。
サポートされているプラットフォーム
- アンドロイド
- ブラックベリー 10
- iOS
- Windows Phone 7 と 8
- Windows 8
簡単な例
navigator.splashscreen.hide();
完全な例
<!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.hide();
}
</script>
</head>
<body>
<h1>Example</h1>
</body>
</html>
iOS の気まぐれ
config.xml
ファイルの AutoHideSplashScreen
設定する必要があります false
。 遅延を 2 秒間スプラッシュ スクリーンを非表示、する、タイマーを追加しますで次のように [deviceready](../events/events.deviceready.html)
イベント ハンドラー。
setTimeout(function() {
navigator.splashscreen.hide();
}, 2000);