INotifications.PlaySound
method · INotifications · cAlgo.API.Internals
DesktopCLICloud
Plays a notification sound.
Environment behaviour
CLI — not supported. No sound is played. No error is reported.
Cloud — not supported. No sound is played. No error is reported.
Overloads
| Signature | Description |
|---|---|
PlaySound(string fileName) | Plays a notification sound. |
PlaySound(SoundType soundType) | Plays the specified SoundType. |
PlaySound(string fileName)
Plays a notification sound.
void PlaySound(string fileName)
api.Notifications.PlaySound(fileName: str) -> None
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
fileName | string | str | The sound file path |
Examples
Notifications.PlaySound(@"C:\SampleDestination\SampleSound.mp3");
api.Notifications.PlaySound(r"C:\SampleDestination\SampleSound.mp3")
PlaySound(SoundType soundType)
Plays the specified SoundType.
void PlaySound(SoundType soundType)
api.Notifications.PlaySound(soundType: SoundType) -> None
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
soundType | SoundType | SoundType | The SoundType to be played. |
Examples
Notifications.PlaySound(SoundType.PositiveNotification);
api.Notifications.PlaySound(SoundType.PositiveNotification)
See also