IBM工作灯 - 如何以编程方式隐藏开机画面 [英] IBM Worklight - How to programmatically hide the splash image

查看:145
本文介绍了IBM工作灯 - 如何以编程方式隐藏开机画面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的工作灯的应用程序的Andr​​oid的环境我想手动隐藏开机画面。我用例是我想做的背景下某些用户的验证行动,而开机画面是存在的。一旦用户通过验证,然后显示仪表盘屏幕,否则显示登录屏幕。

In the Android environment of my Worklight app I'm trying to hide the splash image manually. My use case is that I want to do some user validation actions in the background while the splash image is there. Once the user is validated then show a Dashboard screen, else show a Login screen.

我知道,在Java进行Android中的闪屏图像的用法是:

I know that in Java for splash image usage in Android is:

  super.setIntegerProperty("splashscreen", R.drawable.splash);
  super.loadUrl(getWebMainFilePath(),2000);

这将加载开机画面后自动2秒隐藏它。我该怎么办的使用JavaScript的工作灯一样吗?

This loads the splash image and hides it after 2 secs automatically. How can I do the same using JavaScript in Worklight?

第一次登录:
 闪屏 - > LoginPage - >控制台

First time Login: SplashScreen--> LoginPage-->dashBoard

如果用户身份验证:上重新启动应用程序:

闪屏 - > LoginPage(检查认证与否) - >自动定位到控制台

SplashScreen --> LoginPage(Check for Authenticated or not)--> Automatically Navigate to DashBoard.

所需的任务:

闪屏(做认证这里真/假)--->(如果真)--->控制台

SplashScreen(Do Authentication here true/False)--->(if True)---> DashBoard

我不想显示登录页面,如果用户进行身份验证,但它会自动定位到仪表盘上。

I dont want to show Login page if user is authenticated, however it automatically navigate to DashBoard.

推荐答案

试试这个科尔多瓦API,它可能工作

try this Cordova API, it might work

http://docs.phonegap.com/en/2.6。 0 / cordova_splashscreen_splashscreen.md.html

这篇关于IBM工作灯 - 如何以编程方式隐藏开机画面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆