Share via


UNNotificationSound.GetDefaultCriticalSound(Single) Method

Definition

Creates and returns a default critical notification sound.

[Foundation.Export("defaultCriticalSoundWithAudioVolume:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UserNotifications.UNNotificationSound GetDefaultCriticalSound(float volume);
[<Foundation.Export("defaultCriticalSoundWithAudioVolume:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetDefaultCriticalSound : single -> UserNotifications.UNNotificationSound

Parameters

volume
Single

The volume at which to play the alert sound.

Returns

The default critical notification sound.

Attributes

Applies to