共用方式為


UIApplicationDelegate.HandleAction 方法

定義

多載

HandleAction(UIApplication, String, NSDictionary, Action)

通知應用程式要根據推播通知執行的自訂動作,並包含 actionIdentifier 來自通知的值、 remoteNoticationInfo 來自通知的資料,以及 completionHandler 讓應用程式開發人員在執行動作之後執行。

HandleAction(UIApplication, String, UILocalNotification, Action)

通知應用程式使用者已從物件的警示 UILocalNotification 中選取值所 actionIdentifier 識別的動作,並在完成動作之後執行 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
actionIdentifier
String
remoteNotificationInfo
NSDictionary
completionHandler
Action
屬性

適用於

HandleAction(UIApplication, String, UILocalNotification, Action)

通知應用程式使用者已從物件的警示 UILocalNotification 中選取值所 actionIdentifier 識別的動作,並在完成動作之後執行 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
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
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
actionIdentifier
String
localNotification
UILocalNotification
responseInfo
NSDictionary
completionHandler
Action
屬性

適用於