使用遥控器执行与音频无关的任务? [英] Use remote control for non-audio related tasks?

查看:59
本文介绍了使用遥控器执行与音频无关的任务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将多任务处理托盘中的音频控件用于与音频无关的任务?

Would it be possible to use the audio controls in the multitasking tray for non-audio related tasks?

(例如,在其中放置应用程序图标,还是使用按钮来响应其他内容?)

(For example, putting the app icon there, or using the buttons to respond to something else?)

这是否违反了HIG规则?

Does this violate an HIG rules?

推荐答案

如果您是最后一个播放音频的应用程序,则可以使用beginReceivingRemoteControlEvents-remoteControlReceivedWithEvent:,但是执行任何非标准操作都会违反HIG.有一个应用程序使用音量控制来拍照,但是一旦突出显示该应用程序,便将其拉出,直到开发人员更改了行为.

You can use beginReceivingRemoteControlEvents and -remoteControlReceivedWithEvent: if you were the last app playing audio, but doing anything non-standard will be a HIG violation. There was an app which used the volume control to take pictures, but as soon as this was highlighted, the app was pulled until the developer changed the behaviour.

WWDC 2010多任务视频(第2部分)包含有关使用遥控器的一些详细信息.

The WWDC 2010 Multitasking video (Part 2) has some details about using the remote.

这篇关于使用遥控器执行与音频无关的任务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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