启动iphone中的事件 [英] power on events in iphone

查看:87
本文介绍了启动iphone中的事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道我们是否可以关闭电源或关闭iphone中的事件。在其他平台,如Android,BREW,我们会收到通知我们的应用程序说手机已打开。在iphone中有可能吗?

I want to know whether we can get power off or on events in iphone. In other platforms like Android, BREW we will get a notification to our app saying the phone is turned ON. Is it possible in iphone?

谢谢
Jithendra

Thanks Jithendra

推荐答案

简答:没有。

你的应用程序在开机时没有运行,所以没有什么可以通知的。 (此处的一个特例是注册为VoIP客户端的应用程序。但是您仍然无法判断手机是否刚启动,或者您的应用程序是否因其他原因而被杀死然后重新启动。)

Your app isn't running on power-on, so there's nothing to notify. (A special case here would be apps registered as VoIP clients. But you still can't tell whether the handset just started or whether your app was killed for some other reason and then restarted.)

当iOS关闭时,它会向任何后台运行的任务发送KILL信号。你不能拦截它们,所以这对你没有帮助。 (即使你可以,也不会说为什么你的应用程序被杀死了。)

And when iOS shuts down it will send KILL signals to any background running tasks. You can't intercept them, so that doesn't really help you. (And even if you could, again, it doesn't say why your app is being killed.)

这篇关于启动iphone中的事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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