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
Whether the UNNotificationSound class is available.

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
Creates a custom sound object for critical alerts.

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
Creates a custom sound object for critical alerts with the specified volume.

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
The default sound used for critical alerts.

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
Creates a sound object that plays the default critical alert sound at the specified volume.

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
Returns an object representing the default sound for notifications.

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
Creates a sound object that represents a custom sound file.

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.


The biggest plugin in space...