CPApplicationDelegate.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”键包含与通知相关的信息

属性

适用于