开发者

How to turn off the sound of App?

开发者 https://www.devze.com 2023-01-24 21:19 出处:网络
I want to turn off the sound of a App , because I have a setting of sound , when I switch the sound to off , I want the App not play sound, My app is that:when I load a view and clic开发者_如何学Gok s

I want to turn off the sound of a App , because I have a setting of sound , when I switch the sound to off , I want the App not play sound, My app is that:when I load a view and clic开发者_如何学Gok someplace of it and should play some sound , and now I want to turn off the App sound when users turn off the switch of setting . because I didn't know how the audio play , and it is done by other way , and I want to know how to turn off the App audio by sdk code, How to do, thank you !


if (settingToPlaySound) {
 // play your sound here.
}
0

精彩评论

暂无评论...
验证码 换一张
取 消