UNNotificationSound.GetDefaultCriticalSound(Single) Method

Definition

Creates and returns a default critical notification sound.

[Foundation.Export("defaultCriticalSoundWithAudioVolume:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 5, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static UserNotifications.UNNotificationSound GetDefaultCriticalSound (float volume);
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