Share via


UNMutableNotificationContent.Sound Property

Definition

Gets or sets 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; [Foundation.Export("setSound:", ObjCRuntime.ArgumentSemantic.Copy)] set; }
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<get: Foundation.Export("sound", ObjCRuntime.ArgumentSemantic.Copy)>]
[<set: Foundation.Export("setSound:", ObjCRuntime.ArgumentSemantic.Copy)>]
member this.Sound : UserNotifications.UNNotificationSound with get, set

Property Value

The sound that is played when the notification is triggered.

This value can be null.

Attributes

Applies to