다음을 통해 공유


UNNotificationSound.GetCriticalSound 메서드

정의

오버로드

GetCriticalSound(String)

기본 중요 알림 소리를 만들고 반환합니다.

GetCriticalSound(String, Single)

중요한 알림 소리를 만들고 반환합니다.

GetCriticalSound(String)

기본 중요 알림 소리를 만들고 반환합니다.

[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

매개 변수

name
String

재생할 소리가 포함된 파일의 이름입니다.

반환

기본 중요 알림 소리입니다.

특성

적용 대상

GetCriticalSound(String, Single)

중요한 알림 소리를 만들고 반환합니다.

[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

매개 변수

name
String

재생할 소리가 포함된 파일의 이름입니다.

volume
Single

경고 소리를 재생할 볼륨입니다.

반환

중요한 알림 소리입니다.

특성

적용 대상