繁体   English   中英

ApplicationShortcuts,有什么方法可以不打开应用程序而仅执行某些操作,例如播放/暂停吗?

[英]ApplicationShortcuts, is there any way to not open the app and only execute some actions such as Play/Pause?

我有一个音频应用程序,我想直接用ApplicationShortcutItem控制播放/暂停,但是我不想打开该应用程序。 可能吗?

选择主屏幕快速操作时, 无法将应用程序保留在后台。

UIApplicationShortcutItem文档中:

当用户选择您的主屏幕快速操作之一时, 系统将启动或恢复您的应用程序,并且UIKit在您的应用程序委托中调用application(_:performActionFor:completionHandler:)方法。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM