Appverse.Core.PushNotifications.AbstractPushNotifications.PlayNotificationSound C# (CSharp) Method

PlayNotificationSound() private static method

private static PlayNotificationSound ( String soundName ) : void
soundName String
return void
		private static void PlayNotificationSound (String soundName) {
			if (!string.IsNullOrEmpty(soundName))
			{
				// Assuming that the sound filename received (like sound.caf)
				// has been included in the project directory as a Content Build type.
				var soundObj = AudioToolbox.SystemSound.FromFile(soundName);
				if(soundObj != null) {
					soundObj.PlaySystemSound();
				} else {
					SystemLogger.Log (SystemLogger.Module.PLATFORM, "it was not able to play the specified sound: " + soundName);
				}
			}
		}