Share via


UNNotificationSound.GetSound(String) Method

Definition

Gets the sound that is specified by name.

[Foundation.Export("soundNamed:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UserNotifications.UNNotificationSound GetSound(string name);
[<Foundation.Export("soundNamed:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetSound : string -> UserNotifications.UNNotificationSound

Parameters

name
String

The name of the sound to get.

Returns

The sound that is specified by name.

Attributes

Applies to