UNUserNotificationCenterDelegate_Extensions.DidReceiveNotificationResponse 方法

定义

当用户从应用中的通知中选择操作时调用。

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static void DidReceiveNotificationResponse (this UserNotifications.IUNUserNotificationCenterDelegate This, UserNotifications.UNUserNotificationCenter center, UserNotifications.UNNotificationResponse response, Action completionHandler);
static member DidReceiveNotificationResponse : UserNotifications.IUNUserNotificationCenterDelegate * UserNotifications.UNUserNotificationCenter * UserNotifications.UNNotificationResponse * Action -> unit

参数

This
IUNUserNotificationCenterDelegate

此扩展方法在其上运行的实例。

center
UNUserNotificationCenter

接收响应的通知中心。

response
UNNotificationResponse

用户的响应。

completionHandler
Action

不采用任何参数且不返回值的操作。

属性

适用于