CPApplicationDelegate.HandleAction 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
HandleAction(UIApplication, String, NSDictionary, Action) |
通知應用程式根據推播通知執行自訂動作,並包含 |
HandleAction(UIApplication, String, UILocalNotification, Action) |
通知應用程式使用者已從 物件的警示 UILocalNotification 中選取值所 |
HandleAction(UIApplication, String, NSDictionary, NSDictionary, Action) |
通知應用程式要根據遠端通知執行的自訂動作,並包含 |
HandleAction(UIApplication, String, UILocalNotification, NSDictionary, Action) |
通知應用程式要根據本機通知執行的自訂動作,並包含 |
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)
通知應用程式使用者已從 物件的警示 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
叫用這個委派方法的 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
- 屬性