UNMutableNotificationContent.Sound 属性

定义

获取或设置触发通知时播放的声音。

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UserNotifications.UNNotificationSound Sound { [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] [Foundation.Export("sound", ObjCRuntime.ArgumentSemantic.Copy)] get; [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] [Foundation.Export("setSound:", ObjCRuntime.ArgumentSemantic.Copy)] set; }
member this.Sound : UserNotifications.UNNotificationSound with get, set

属性值

触发通知时播放的声音。

此值可为 null

属性

适用于