共用方式為


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

沒有引數且不會傳回任何值的動作。

屬性

適用於