简体   繁体   English

如何以编程方式关闭铃声?

[英]How to turn off the ringtone programmatically?

I want to turn off the ringtone. 我想关闭铃声。 Otherwise, at least to decrease the sound of the ring tone and to stop the vibration of the device. 否则,至少要降低铃声的声音并停止设备的振动。

除非您以越狱设备为目标并使用未公开的私有API,否则您将无法这么做。

Unfortunately that would be at the user's decision, not the developer's. 不幸的是,这将由用户决定,而不是由开发者决定。 Another example is screen brightness. 另一个例子是屏幕亮度。

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

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