UNNotificationSound.GetCriticalSound 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
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
경고 소리를 재생할 볼륨입니다.
반환
중요한 알림 소리입니다.
- 특성