简体   繁体   English

在PhoneGap中手动删除启动画面

[英]Remove splash screen manually in PhoneGap

On iOS I would like to hold the splash screen up until my app is ready. 在iOS上,我想保持启动画面直到我的应用程序准备就绪。 I see there is a flag in the Cordova.plist called AutoHideSplashScreen -- if I turn this off how to I trigger it's removal on my own? 我看到Cordova.plist中有一个名为AutoHideSplashScreen的标志 - 如果我关闭它如何触发它自己的删除?

Thanks! 谢谢!

On iOS you should be able to call navigator.splashscreen.hide(); 在iOS上,您应该可以调用navigator.splashscreen.hide();

Support for doing this in Android is available since 1.8.0. 从1.8.0开始,支持在Android中执行此操作。

A quick look in Google and I found this 快速了解Google,我发现了这一点

Basically what you have to do is: 基本上你要做的是:

navigator.splashscreen.hide();

On Cordova 1.6.0 is: 在Cordova 1.6.0上是:

cordova.exec(null, null, "SplashScreen", "hide", [])

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM