CPApplicationDelegate.HandleAction 方法

定义

重载

HandleAction(UIApplication, String, NSDictionary, Action)

通知应用要基于推送通知执行的自定义操作,并包括 actionIdentifier 值、 remoteNoticationInfo 通知中的数据以及 completionHandler 应用开发人员在执行操作后要运行的操作。

HandleAction(UIApplication, String, UILocalNotification, Action)

通知应用用户从对象的警报中选择了由 actionIdentifier 值标识的操作 UILocalNotification ,并在完成操作后执行 completionHandler 块。

HandleAction(UIApplication, String, NSDictionary, NSDictionary, Action)

通知应用要基于远程通知执行的自定义操作,并包括 actionIdentifier 值、 remoteNoticationInfo 通知中的数据以及 completionHandler 应用开发人员在执行操作后要运行的操作。

HandleAction(UIApplication, String, UILocalNotification, NSDictionary, Action)

通知应用要基于本地通知执行的自定义操作,并包括 actionIdentifier 值、 responseInfo 通知中的数据以及 completionHandler 应用开发人员在执行操作后要运行的操作。

HandleAction(UIApplication, String, NSDictionary, Action)

通知应用要基于推送通知执行的自定义操作,并包括 actionIdentifier 值、 remoteNoticationInfo 通知中的数据以及 completionHandler 应用开发人员在执行操作后要运行的操作。

[Foundation.Export("application:handleActionWithIdentifier:forRemoteNotification:completionHandler:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UNUserNotificationCenterDelegate.DidReceiveNotificationResponse' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void HandleAction(UIKit.UIApplication application, string actionIdentifier, Foundation.NSDictionary remoteNotificationInfo, Action completionHandler);
abstract member HandleAction : UIKit.UIApplication * string * Foundation.NSDictionary * Action -> unit
override this.HandleAction : UIKit.UIApplication * string * Foundation.NSDictionary * Action -> unit

参数

application
UIApplication

对调用此委托方法的 UIApplication 的引用。

actionIdentifier
String
remoteNotificationInfo
NSDictionary
completionHandler
Action
属性

适用于

HandleAction(UIApplication, String, UILocalNotification, Action)

通知应用用户从对象的警报中选择了由 actionIdentifier 值标识的操作 UILocalNotification ,并在完成操作后执行 completionHandler 块。

[Foundation.Export("application:handleActionWithIdentifier:forLocalNotification:completionHandler:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UNUserNotificationCenterDelegate.DidReceiveNotificationResponse' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void HandleAction(UIKit.UIApplication application, string actionIdentifier, UIKit.UILocalNotification localNotification, Action completionHandler);
abstract member HandleAction : UIKit.UIApplication * string * UIKit.UILocalNotification * Action -> unit
override this.HandleAction : UIKit.UIApplication * string * UIKit.UILocalNotification * Action -> unit

参数

application
UIApplication

对调用此委托方法的 UIApplication 的引用。

actionIdentifier
String
localNotification
UILocalNotification
completionHandler
Action
属性

适用于

HandleAction(UIApplication, String, NSDictionary, NSDictionary, Action)

通知应用要基于远程通知执行的自定义操作,并包括 actionIdentifier 值、 remoteNoticationInfo 通知中的数据以及 completionHandler 应用开发人员在执行操作后要运行的操作。

[Foundation.Export("application:handleActionWithIdentifier:forRemoteNotification:withResponseInfo:completionHandler:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UNUserNotificationCenterDelegate.DidReceiveNotificationResponse' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void HandleAction(UIKit.UIApplication application, string actionIdentifier, Foundation.NSDictionary remoteNotificationInfo, Foundation.NSDictionary responseInfo, Action completionHandler);
abstract member HandleAction : UIKit.UIApplication * string * Foundation.NSDictionary * Foundation.NSDictionary * Action -> unit
override this.HandleAction : UIKit.UIApplication * string * Foundation.NSDictionary * Foundation.NSDictionary * Action -> unit

参数

application
UIApplication

对调用此委托方法的 UIApplication 的引用。

actionIdentifier
String
remoteNotificationInfo
NSDictionary
responseInfo
NSDictionary
completionHandler
Action
属性

适用于

HandleAction(UIApplication, String, UILocalNotification, NSDictionary, Action)

通知应用要基于本地通知执行的自定义操作,并包括 actionIdentifier 值、 responseInfo 通知中的数据以及 completionHandler 应用开发人员在执行操作后要运行的操作。

[Foundation.Export("application:handleActionWithIdentifier:forLocalNotification:withResponseInfo:completionHandler:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UNUserNotificationCenterDelegate.DidReceiveNotificationResponse' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void HandleAction(UIKit.UIApplication application, string actionIdentifier, UIKit.UILocalNotification localNotification, Foundation.NSDictionary responseInfo, Action completionHandler);
abstract member HandleAction : UIKit.UIApplication * string * UIKit.UILocalNotification * Foundation.NSDictionary * Action -> unit
override this.HandleAction : UIKit.UIApplication * string * UIKit.UILocalNotification * Foundation.NSDictionary * Action -> unit

参数

application
UIApplication

对调用此委托方法的 UIApplication 的引用。

actionIdentifier
String
localNotification
UILocalNotification
responseInfo
NSDictionary
completionHandler
Action
属性

适用于