什么是WL.App.close的替代品吗? [英] What is the substitute for WL.App.close?

查看:262
本文介绍了什么是WL.App.close的替代品吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

WL.App.close是德precated。我知道,这是不支持的iOS。但为什么去precated为Android呢?目前,它仍然运作正常,即使是在6.2,但因为它是德precated,什么是替代/替代品呢?

WL.App.close is deprecated. I know that this is not supported for iOS. But why is it deprecated for Android as well? At the moment, it is still functioning fine, even on 6.2, but since it is deprecated, what is the alternative/substitute for this?

推荐答案

在Android的为好,这是不推荐的方法。你应该让用户退出应用程序,这是由人工造就的应用程序视图,并以退出它刷卡应用程序完成的。

In Android as well, this is not the recommended approach. You should let the user quit the app, and this is done by manually bringing up the "applications view" and swiping the app in order to quit it.

可通过这些答案的Google员工得到佐证:结果
http://android.nextapp.com/site/fx/doc/exit

Can be corroborated by these answers by Googlers:
http://android.nextapp.com/site/fx/doc/exit

此外,有这些方法:

  • Close application and launch home screen on Android
  • https://groups.google.com/forum/#!topic/android-developers/Y96KnN_6RqM

您可以写一个科尔多瓦插件,将强制退出应用程序,并通过覆盖你想什么(如后退按钮)触发,或创建一个专用的Quit按钮等。

You could write a Cordova plug-in that will force-quit the app and trigger it by overriding whatever you'd like (like the Back button), or create a dedicated Quit button, etc.

这篇关于什么是WL.App.close的替代品吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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