Share via


UNNotificationContent.Sound Property

Definition

Gets the sound that is played when the notification is triggered.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UserNotifications.UNNotificationSound? Sound { [Foundation.Export("sound", ObjCRuntime.ArgumentSemantic.Copy)] get; }
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<get: Foundation.Export("sound", ObjCRuntime.ArgumentSemantic.Copy)>]
member this.Sound : UserNotifications.UNNotificationSound

Property Value

The sound that is played when the notification is triggered.

This value can be null.

Attributes

Applies to