UNUserNotificationCenterDelegate.DidReceiveNotificationResponse 方法

定义

在用户从应用的通知中选择操作后调用。

[Foundation.Export("userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DidReceiveNotificationResponse (UserNotifications.UNUserNotificationCenter center, UserNotifications.UNNotificationResponse response, Action completionHandler);
abstract member DidReceiveNotificationResponse : UserNotifications.UNUserNotificationCenter * UserNotifications.UNNotificationResponse * Action -> unit
override this.DidReceiveNotificationResponse : UserNotifications.UNUserNotificationCenter * UserNotifications.UNNotificationResponse * Action -> unit

参数

center
UNUserNotificationCenter

接收响应的通知中心。

response
UNNotificationResponse

用户的响应。

completionHandler
Action

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

属性

适用于