WKInterfaceController.HandleRemoteNotificationAction Метод

Определение

Вызывается на начальном этапе WKInterfaceController приложения для отслеживания, когда пользователь реагирует на удаленное уведомление.

[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

Параметры

identifier
String

Действие, выбранное пользователем, или пустая строка, если пользователь запустил приложение без использования кнопки действия.

Этот параметр может иметь значение null.

remoteNotification
NSDictionary

Уведомление.

Атрибуты

Комментарии

Этот метод вызывается для WKInterfaceController , который является начальным в раскадроске приложения для отслеживания, а не для WKInterfaceController отображения уведомлений.

Этот метод вызывается в основном потоке расширения watch.

Применяется к