문제

I would like to play a beep sound, when my alert dialog appears. How do I play the sound when a push notification appears? The code I need is similar to these links:

http://iosdeveloperzone.com/2011/05/23/snippet-playing-a-system-sound/

I cannot find this API anywhere:

AudioServicesPlaySystemSound

도움이 되었습니까?

해결책

In MonoTouch this function is named MonoTouch.AudioToolbox.SystemSound.PlaySystemSound.

Here's an example on how to play a sound from a file.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top