Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
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.