Type Property

defaultSound

Returns an object representing the default sound for notifications.

Declaration

iOS, Mac Catalyst, watchOS
@property(class, copy, readonly, nonatomic) UNNotificationSound *defaultSound;
macOS
@property(class, copy, readonly, atomic) UNNotificationSound *defaultSound;

Return Value

A sound object that represents the default notification sound.

See Also

Creating Notification Sounds

+ soundNamed:

Creates a sound object that represents a custom sound file.