Freigeben über


UIApplicationDelegate.HandleAction Methode

Definition

Überlädt

HandleAction(UIApplication, String, NSDictionary, Action)

Informiert die App über eine benutzerdefinierte Aktion, die basierend auf einer Pushbenachrichtigung ausgeführt werden soll, und enthält den actionIdentifier Wert, remoteNoticationInfo die Daten aus der Benachrichtigung und completionHandler die Ausführung für den App-Entwickler nach der Ausführung der Aktion.

HandleAction(UIApplication, String, UILocalNotification, Action)

Informiert die App darüber, dass der Benutzer eine Aktion ausgewählt hat, die durch den actionIdentifier Wert aus einer Warnung eines UILocalNotification Objekts identifiziert wurde, und führt den completionHandler Block aus, nachdem er die Aktion abgeschlossen hat.

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

Informiert die App über eine benutzerdefinierte Aktion, die basierend auf einer Remotebenachrichtigung ausgeführt werden soll, und enthält den actionIdentifier Wert, remoteNoticationInfo die Daten aus der Benachrichtigung und completionHandler für den App-Entwickler, der nach der Ausführung der Aktion ausgeführt werden soll.

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

Informiert die App über eine benutzerdefinierte Aktion, die basierend auf einer lokalen Benachrichtigung ausgeführt werden soll, und enthält den actionIdentifier Wert, responseInfo die Daten aus der Benachrichtigung und completionHandler die Ausführung für den App-Entwickler nach der Ausführung der Aktion.

HandleAction(UIApplication, String, NSDictionary, Action)

Informiert die App über eine benutzerdefinierte Aktion, die basierend auf einer Pushbenachrichtigung ausgeführt werden soll, und enthält den actionIdentifier Wert, remoteNoticationInfo die Daten aus der Benachrichtigung und completionHandler die Ausführung für den App-Entwickler nach der Ausführung der Aktion.

[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

Parameter

application
UIApplication
actionIdentifier
String
remoteNotificationInfo
NSDictionary
completionHandler
Action
Attribute

Gilt für:

HandleAction(UIApplication, String, UILocalNotification, Action)

Informiert die App darüber, dass der Benutzer eine Aktion ausgewählt hat, die durch den actionIdentifier Wert aus einer Warnung eines UILocalNotification Objekts identifiziert wurde, und führt den completionHandler Block aus, nachdem er die Aktion abgeschlossen hat.

[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

Parameter

application
UIApplication
actionIdentifier
String
localNotification
UILocalNotification
completionHandler
Action
Attribute

Gilt für:

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

Informiert die App über eine benutzerdefinierte Aktion, die basierend auf einer Remotebenachrichtigung ausgeführt werden soll, und enthält den actionIdentifier Wert, remoteNoticationInfo die Daten aus der Benachrichtigung und completionHandler für den App-Entwickler, der nach der Ausführung der Aktion ausgeführt werden soll.

[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

Parameter

application
UIApplication
actionIdentifier
String
remoteNotificationInfo
NSDictionary
responseInfo
NSDictionary
completionHandler
Action
Attribute

Gilt für:

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

Informiert die App über eine benutzerdefinierte Aktion, die basierend auf einer lokalen Benachrichtigung ausgeführt werden soll, und enthält den actionIdentifier Wert, responseInfo die Daten aus der Benachrichtigung und completionHandler die Ausführung für den App-Entwickler nach der Ausführung der Aktion.

[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

Parameter

application
UIApplication
actionIdentifier
String
localNotification
UILocalNotification
responseInfo
NSDictionary
completionHandler
Action
Attribute

Gilt für: