Type Property

defaultSound

Returns an object representing the default sound for notifications.

Declaration

iOS, UIKit for Mac, 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

Getting Notification Sounds

+ soundNamed:

Creates a sound object that represents a custom sound file.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software