splashscreen.hide

시작 화면을 닫습니다.

navigator.splashscreen.hide();

설명

이 메서드는 응용 프로그램의 시작 화면을 일축 한다.

지원 되는 플랫폼

  • 안 드 로이드
  • 블랙베리 10
  • iOS
  • Windows Phone 7과 8
  • 윈도우 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);