0

我正在尝试创建 iOS 设备中给出的所有可用警报声音的列表。在 Xamarin 的网站上,只有一个例子:

https://developer.xamarin.com/recipes/ios/media/sound/syssound-example/

我想知道我可以通过我的 Apple 设备访问哪些额外的声音。

编辑:如何获取内置警报声音列表

4

1 回答 1

0

在这里找到答案:

https://www.theiphonewiki.com/wiki//System/Library/Audio/UISounds

例如:

string NotificationSoundPath = @"/System/Library/Audio/UISounds/sms-received6.caf";
SystemSound notificationSound = SystemSound.FromFile(NotificationSoundPath);
notificationSound.AddSystemSoundCompletion(SystemSound.Vibrate.PlaySystemSound);
notificationSound.PlaySystemSound();
于 2017-03-14T10:02:55.703 回答