Compartilhar via


CPApplicationDelegate.HandleAction Método

Definição

Sobrecargas

HandleAction(UIApplication, String, NSDictionary, Action)

Informa o aplicativo de uma ação personalizada a ser executada com base em uma notificação por push e inclui o valor, remoteNoticationInfo os actionIdentifier dados da notificação e completionHandler para que o desenvolvedor do aplicativo seja executado após a execução da ação.

HandleAction(UIApplication, String, UILocalNotification, Action)

Informa ao aplicativo que o usuário selecionou uma ação identificada pelo actionIdentifier valor de um alerta de um UILocalNotification objeto e executa o completionHandler bloco depois de concluir a ação.

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

Informa o aplicativo de uma ação personalizada a ser executada com base em uma notificação remota e inclui o valor, remoteNoticationInfo os actionIdentifier dados da notificação e completionHandler para que o desenvolvedor do aplicativo seja executado após a execução da ação.

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

Informa o aplicativo de uma ação personalizada a ser executada com base em uma notificação local e inclui o valor, responseInfo os actionIdentifier dados da notificação e completionHandler para que o desenvolvedor do aplicativo seja executado após a execução da ação.

HandleAction(UIApplication, String, NSDictionary, Action)

Informa o aplicativo de uma ação personalizada a ser executada com base em uma notificação por push e inclui o valor, remoteNoticationInfo os actionIdentifier dados da notificação e completionHandler para que o desenvolvedor do aplicativo seja executado após a execução da ação.

[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

Parâmetros

application
UIApplication

Referência à UIApplication que invocou esse método delegado.

actionIdentifier
String
remoteNotificationInfo
NSDictionary
completionHandler
Action
Atributos

Aplica-se a

HandleAction(UIApplication, String, UILocalNotification, Action)

Informa ao aplicativo que o usuário selecionou uma ação identificada pelo actionIdentifier valor de um alerta de um UILocalNotification objeto e executa o completionHandler bloco depois de concluir a ação.

[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

Parâmetros

application
UIApplication

Referência à UIApplication que invocou esse método delegado.

actionIdentifier
String
localNotification
UILocalNotification
completionHandler
Action
Atributos

Aplica-se a

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

Informa o aplicativo de uma ação personalizada a ser executada com base em uma notificação remota e inclui o valor, remoteNoticationInfo os actionIdentifier dados da notificação e completionHandler para que o desenvolvedor do aplicativo seja executado após a execução da ação.

[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

Parâmetros

application
UIApplication

Referência à UIApplication que invocou esse método delegado.

actionIdentifier
String
remoteNotificationInfo
NSDictionary
responseInfo
NSDictionary
completionHandler
Action
Atributos

Aplica-se a

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

Informa o aplicativo de uma ação personalizada a ser executada com base em uma notificação local e inclui o valor, responseInfo os actionIdentifier dados da notificação e completionHandler para que o desenvolvedor do aplicativo seja executado após a execução da ação.

[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

Parâmetros

application
UIApplication

Referência à UIApplication que invocou esse método delegado.

actionIdentifier
String
localNotification
UILocalNotification
responseInfo
NSDictionary
completionHandler
Action
Atributos

Aplica-se a