Is there a way to programmatically set the device my app is running on to silent mode? The silence must encompass the entire device, not just my application.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
No. As it's a physical hardware switch, there's no software method for muting the entire device.
No reason to fight the framework, just let the user mute the device if he/she pleases.