UIApplicationDelegate.HandleAction Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
HandleAction(UIApplication, String, NSDictionary, Action) |
Informs the app of a custom action to perform based on a push notification, and includes the |
HandleAction(UIApplication, String, UILocalNotification, Action) |
Informs the app that the user selected an action identified by the |
HandleAction(UIApplication, String, NSDictionary, NSDictionary, Action) |
Informs the app of a custom action to perform based on a remote notification, and includes the |
HandleAction(UIApplication, String, UILocalNotification, NSDictionary, Action) |
Informs the app of a custom action to perform based on a local notification, and includes the |
HandleAction(UIApplication, String, NSDictionary, Action)
Informs the app of a custom action to perform based on a push notification, and includes the actionIdentifier
value, remoteNoticationInfo
data from the notification, and completionHandler
for the app developer to run after performing the action.
[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
Parameters
- application
- UIApplication
- actionIdentifier
- String
- remoteNotificationInfo
- NSDictionary
- completionHandler
- Action
- Attributes
Applies to
HandleAction(UIApplication, String, UILocalNotification, Action)
Informs the app that the user selected an action identified by the actionIdentifier
value from an alert of a UILocalNotification object, and executes the completionHandler
block after it completes the action.
[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
Parameters
- application
- UIApplication
- actionIdentifier
- String
- localNotification
- UILocalNotification
- completionHandler
- Action
- Attributes
Applies to
HandleAction(UIApplication, String, NSDictionary, NSDictionary, Action)
Informs the app of a custom action to perform based on a remote notification, and includes the actionIdentifier
value, remoteNoticationInfo
data from the notification, and completionHandler
for the app developer to run after performing the action.
[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
Parameters
- application
- UIApplication
- actionIdentifier
- String
- remoteNotificationInfo
- NSDictionary
- responseInfo
- NSDictionary
- completionHandler
- Action
- Attributes
Applies to
HandleAction(UIApplication, String, UILocalNotification, NSDictionary, Action)
Informs the app of a custom action to perform based on a local notification, and includes the actionIdentifier
value, responseInfo
data from the notification, and completionHandler
for the app developer to run after performing the action.
[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
Parameters
- application
- UIApplication
- actionIdentifier
- String
- localNotification
- UILocalNotification
- responseInfo
- NSDictionary
- completionHandler
- Action
- Attributes