Compartir a través de


UNNotificationSound.GetCriticalSound Método

Definición

Sobrecargas

GetCriticalSound(String)

Crea y devuelve un sonido de notificación crítico predeterminado.

GetCriticalSound(String, Single)

Crea y devuelve un sonido de notificación crítico.

GetCriticalSound(String)

Crea y devuelve un sonido de notificación crítico predeterminado.

[Foundation.Export("criticalSoundNamed:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static UserNotifications.UNNotificationSound GetCriticalSound (string name);
static member GetCriticalSound : string -> UserNotifications.UNNotificationSound

Parámetros

name
String

Nombre del archivo que contiene el sonido que se va a reproducir.

Devoluciones

Sonido de notificación crítico predeterminado.

Atributos

Se aplica a

GetCriticalSound(String, Single)

Crea y devuelve un sonido de notificación crítico.

[Foundation.Export("criticalSoundNamed:withAudioVolume:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static UserNotifications.UNNotificationSound GetCriticalSound (string name, float volume);
static member GetCriticalSound : string * single -> UserNotifications.UNNotificationSound

Parámetros

name
String

Nombre del archivo que contiene el sonido que se va a reproducir.

volume
Single

Volumen en el que se reproduce el sonido de la alerta.

Devoluciones

El sonido de notificación crítico.

Atributos

Se aplica a