Partager via


WKInterfaceController.HandleRemoteNotificationAction Méthode

Définition

Appelé sur l’initialisation WKInterfaceController de l’application espion lorsque l’utilisateur réagit à une notification à distance.

[Foundation.Export("handleActionWithIdentifier:forRemoteNotification:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UNUserNotificationCenterDelegate' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UNUserNotificationCenterDelegate' instead.")]
public virtual void HandleRemoteNotificationAction(string identifier, Foundation.NSDictionary remoteNotification);
abstract member HandleRemoteNotificationAction : string * Foundation.NSDictionary -> unit
override this.HandleRemoteNotificationAction : string * Foundation.NSDictionary -> unit

Paramètres

identifier
String

Action choisie par l’utilisateur ou chaîne vide si l’utilisateur a lancé l’application sans utiliser de bouton d’action.

Ce paramètre peut être null.

remoteNotification
NSDictionary

Notification.

Attributs

Remarques

Cette méthode est appelée sur le WKInterfaceController qui est le initial dans le storyboard Watch App, et non sur le qui affiche les WKInterfaceController notifications.

Cette méthode est appelée sur le thread principal de l’extension Watch.

S’applique à