检查是否使用了控制中心 [英] check if control center is used

查看:122
本文介绍了检查是否使用了控制中心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用正在使用互联网访问,我想知道是否有使用控制中心。如果使用,我想做一些动作,比如开始更新。我坚持这个问题。有不同的指南,关于检查应用程序是否在后台或检查wifi状态是否已更改,但没有相关信息。有什么建议吗?

My app is using internet access, and I want to know if there were used control center. If was used, I want to do some action, like start to update. I am stuck at this question. There are different guides, about "check if app is in background" or "check if wifi status changed", but no information about this. Any advices?

推荐答案

你不能这样做。您可以知道的最多是您的应用已停用,然后再次激活,但您无法找到原因。可能是因为控制中心,可能是因为通知中心,可能是因为打来​​电话,可能是因为用户进入了应用程序切换器又回来了......如果你认为你有一个用例可以获取此特定信息,向Apple提交增强请求。

You can't do it. The most you can know is that your app was deactivated and then activated again, but you have no way of finding out why. It could be because of the control center, it could be because of the notification center, it could be because a phone call came in, it could be because the user went into the app switcher and came back again... If you think you have a use case for being able obtain this particular information, submit an enhancement request to Apple.

这篇关于检查是否使用了控制中心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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