Share via


UIApplicationDelegate.ReceivedRemoteNotification 메서드

정의

애플리케이션이 원격 알림을 수신했음을 나타냅니다.

[Foundation.Export("application:didReceiveRemoteNotification:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UNUserNotificationCenterDelegate.WillPresentNotification/DidReceiveNotificationResponse' for user visible notifications and 'ReceivedRemoteNotification' for silent remote notifications.")]
public virtual void ReceivedRemoteNotification (UIKit.UIApplication application, Foundation.NSDictionary userInfo);
abstract member ReceivedRemoteNotification : UIKit.UIApplication * Foundation.NSDictionary -> unit
override this.ReceivedRemoteNotification : UIKit.UIApplication * Foundation.NSDictionary -> unit

매개 변수

application
UIApplication

이 대리자 메서드를 호출한 UIApplication에 대한 참조입니다.

userInfo
NSDictionary

"aps" 키에 알림과 관련된 정보가 포함된 사전

특성

설명

사전에는 userInfo 다른 NSDictionary를 반환하는 키가 aps 있습니다. 해당 사전에는 다음 키가 포함될 수 있습니다.

형식Description
경고문자열 또는 NSDictionary키 값 alert 이 인 경우 해당 문자열은 string"닫기" 및 "보기"라는 두 개의 단추가 있는 경고의 텍스트가 됩니다. 애플리케이션 사용자가 "보기"를 선택하면 애플리케이션이 시작됩니다. 값이 이 NSDictionary면 지역화와 관련된 일련의 키가 포함됩니다.
배지정수앱 아이콘의 배지에 표시할 번호입니다. 0이면 배지가 제거됩니다. 이면 null배지가 변경되지 않아야 합니다.
soundString앱 번들에 있는 사운드 파일의 이름입니다. 파일이 없거나 값이 "기본값"인 경우 기본 경고 소리가 재생됩니다.
콘텐츠 사용 가능정수값 1은 새 콘텐츠를 사용할 수 있음을 나타냅니다. 이는 Newsstand 앱 및 백그라운드 콘텐츠 다운로드를 위한 것입니다.

적용 대상