다음을 통해 공유


WKInterfaceController.HandleRemoteNotificationAction 메서드

정의

사용자가 원격 알림에 반응할 때 Watch 앱의 초기 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 됩니다.

이 메서드는 조사식 확장의 주 스레드에서 호출됩니다.

적용 대상