iosxamarinxamarin.iossystem-sounds

Xamarin iOS how to get all available SysSound list?


I'm trying create a list of all available alert sounds given in an iOS device. In Xamarin's website, there's only one example:

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

I would like to know which additional sounds can I access via my Apple device.

Edit: How do I get the list of build-in alert sounds


Solution

  • Found the answer here :

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

    e.g:

    string NotificationSoundPath = @"/System/Library/Audio/UISounds/sms-received6.caf";
    SystemSound notificationSound = SystemSound.FromFile(NotificationSoundPath);
    notificationSound.AddSystemSoundCompletion(SystemSound.Vibrate.PlaySystemSound);
    notificationSound.PlaySystemSound();