共用方式為


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

屬性

適用於