UNNotificationSound.GetDefaultCriticalSound(Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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