編集

次の方法で共有


UIApplicationDelegate_Extensions.HandleAction Method

Definition

Overloads

HandleAction(IUIApplicationDelegate, 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.

HandleAction(IUIApplicationDelegate, 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.

HandleAction(IUIApplicationDelegate, 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.

HandleAction(IUIApplicationDelegate, 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.

HandleAction(IUIApplicationDelegate, 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.

[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 static void HandleAction (this UIKit.IUIApplicationDelegate This, UIKit.UIApplication application, string actionIdentifier, Foundation.NSDictionary remoteNotificationInfo, Action completionHandler);
static member HandleAction : UIKit.IUIApplicationDelegate * UIKit.UIApplication * string * Foundation.NSDictionary * Action -> unit

Parameters

This
IUIApplicationDelegate

The instance on which this extension method operates.

application
UIApplication
actionIdentifier
String
remoteNotificationInfo
NSDictionary
completionHandler
Action
Attributes

Applies to

HandleAction(IUIApplicationDelegate, 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.

[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 static void HandleAction (this UIKit.IUIApplicationDelegate This, UIKit.UIApplication application, string actionIdentifier, UIKit.UILocalNotification localNotification, Action completionHandler);
static member HandleAction : UIKit.IUIApplicationDelegate * UIKit.UIApplication * string * UIKit.UILocalNotification * Action -> unit

Parameters

This
IUIApplicationDelegate

The instance on which this extension method operates.

application
UIApplication
actionIdentifier
String
localNotification
UILocalNotification
completionHandler
Action
Attributes

Applies to

HandleAction(IUIApplicationDelegate, 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.

[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 static void HandleAction (this UIKit.IUIApplicationDelegate This, UIKit.UIApplication application, string actionIdentifier, Foundation.NSDictionary remoteNotificationInfo, Foundation.NSDictionary responseInfo, Action completionHandler);
static member HandleAction : UIKit.IUIApplicationDelegate * UIKit.UIApplication * string * Foundation.NSDictionary * Foundation.NSDictionary * Action -> unit

Parameters

This
IUIApplicationDelegate

The instance on which this extension method operates.

application
UIApplication
actionIdentifier
String
remoteNotificationInfo
NSDictionary
responseInfo
NSDictionary
completionHandler
Action
Attributes

Applies to

HandleAction(IUIApplicationDelegate, 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.

[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 static void HandleAction (this UIKit.IUIApplicationDelegate This, UIKit.UIApplication application, string actionIdentifier, UIKit.UILocalNotification localNotification, Foundation.NSDictionary responseInfo, Action completionHandler);
static member HandleAction : UIKit.IUIApplicationDelegate * UIKit.UIApplication * string * UIKit.UILocalNotification * Foundation.NSDictionary * Action -> unit

Parameters

This
IUIApplicationDelegate

The instance on which this extension method operates.

application
UIApplication
actionIdentifier
String
localNotification
UILocalNotification
responseInfo
NSDictionary
completionHandler
Action
Attributes

Applies to