Programmatically sleep Apple TV on tvos

故事扮演 提交于 2020-01-04 05:37:14

问题


I'd like to have a sleep timer within my own tvos app. Is there a way to enable/disable sleeping on tvos?

I know you disable sleeping using:

[UIApplication sharedApplication].idleTimerDisabled = YES;

But is there a way to then enable sleep right away when a timer finishes?

来源:https://stackoverflow.com/questions/33639783/programmatically-sleep-apple-tv-on-tvos

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!