如何知道 Objective-C 中音量硬件控制是向上还是向下
是否可以检测音量硬件控制是向下还是向上?我需要在应用程序中的按钮触摸上播放声音,并且我想向用户发送一条消息,告知音量已降低,并且要使用此应用程序,他需要更改硬件
编辑:
我需要执行以下操作:
BOOL VolumeHardwareControl = getHardwareInfo();
if(VolumeHardwareControl==NO){
message: "Attention! To play sound you need to turn hardware on!"
}else
playSound();
Is possible to detect if volume hardware control is down or up? i need to play sound on button touch in my application, and i want to send a message to user that volume is down and to use this app he need to change hardware
EDIT:
I need to do something like this:
BOOL VolumeHardwareControl = getHardwareInfo();
if(VolumeHardwareControl==NO){
message: "Attention! To play sound you need to turn hardware on!"
}else
playSound();
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)