gpt4 book ai didi

objective-c - UIApplication 空闲计时器

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:22:21 24 4
gpt4 key购买 nike

这是一个简单的问题,我似乎找不到任何相关信息,但我只想知道以下代码是否会拒绝我的应用程序。基本上,这是一个私有(private) API

[application setIdleTimerDisabled:YES];

我想在 didFinishLaunchingWithOptions 下将其添加到我的 AppDelegate。我只是不想使用如此简单的东西而让我的应用程序被拒绝。感谢您提供任何信息!

最佳答案

它是公开的,尽管 apple 建议:

Important You should set this property only if necessary and should be sure to reset it to NO when the need no longer exists. Most applications should let the system turn off the screen when the idle timer elapses. This includes audio applications. With appropriate use of Audio Session Services, playback and recording proceed uninterrupted when the screen turns off. The only applications that should disable the idle timer are mapping applications, games, or similar programs with sporadic user interaction.

因此,如果您的应用如他们所描述的那样,或者您很少使用它,您应该没问题。

关于objective-c - UIApplication 空闲计时器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10200522/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com