Platforms to show: All Mac Windows Linux Cross-Platform
Back to UNNotificationSoundMBS class.
UNNotificationSoundMBS.Available as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | User Notifications | MBS MacFrameworks Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns true on MacOS 10.14 or newer in 64-bit MacOS application.
UNNotificationSoundMBS.criticalSoundNamed(name as string) as UNNotificationSoundMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | User Notifications | MBS MacFrameworks Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
name: The name of the sound file to play. This file must be located in the current executable’s main bundle or in the Library/Sounds directory of the current app container directory. If files exist at both locations, the system uses the file from the Library/Sounds directory. This parameter must not be nil.
Returns a sound object representing a custom critical alert sound.
Critical alerts ignore the mute switch and Do Not Disturb. They require a special entitlement issued by Apple.
See also:
UNNotificationSoundMBS.criticalSoundNamed(name as string, volume as double) as UNNotificationSoundMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | User Notifications | MBS MacFrameworks Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
name: The name of the sound file to play. This file must be located in the current executable’s main bundle or in the Library/Sounds directory of the current app container directory. If files exist at both locations, the system uses the file from the Library/Sounds directory. This parameter must not be nil.
volume: The volume must be a value between 0.0 and 1.0.
Returns a sound object representing a custom critical alert sound at the specified volume.
Critical alerts ignore the mute switch and Do Not Disturb. They require a special entitlement issued by Apple.
See also:
UNNotificationSoundMBS.defaultCriticalSound as UNNotificationSoundMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | User Notifications | MBS MacFrameworks Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Critical alerts ingore the mute switch and Do Not Disturb. They require a special entitlement issued by Apple.
UNNotificationSoundMBS.defaultCriticalSoundWithAudioVolume(volume as double) as UNNotificationSoundMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | User Notifications | MBS MacFrameworks Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
volume: The volume must be a value between 0.0 and 1.0.
Returns a sound object representing the default critical alert sound at the specified volume.
Critical alerts ignore the mute switch and Do Not Disturb. They require a special entitlement issued by Apple.
UNNotificationSoundMBS.defaultSound as UNNotificationSoundMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | User Notifications | MBS MacFrameworks Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
UNNotificationSoundMBS.soundNamed(name as string) as UNNotificationSoundMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | User Notifications | MBS MacFrameworks Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
name: The name of the sound file to play. This file must be located in the current executable’s main bundle or in the Library/Sounds directory of the current app container directory. This parameter must not be nil.
Returns a sound object representing the custom sound.
If a sound file with the given name exists both in the current bundle and in the Library/Sounds folder, this method chooses the file in the Library/Sounds folder.
The items on this page are in the following plugins: MBS MacFrameworks Plugin.