AppNotificationManager.NotificationInvoked 이벤트

정의

사용자 상호 작용을 통해 앱에 대한 앱 알림이 호출될 때 발생합니다.

참고

AppNotificationManager 클래스는 Singleton 패키지에 종속됩니다. 이러한 종속성 때문에 자체 포함 앱에서 이러한 API를 호출하는 경우 주의해야 할 특정 고려 사항이 있습니다. 자세한 정보 및 세부 정보는 추가 MSIX 패키지에 대한 종속성을 참조하세요.

// Register
event_token NotificationInvoked(TypedEventHandler<AppNotificationManager, AppNotificationActivatedEventArgs const&> const& handler) const;

// Revoke with event_token
void NotificationInvoked(event_token const* cookie) const;

// Revoke with event_revoker
AppNotificationManager::NotificationInvoked_revoker NotificationInvoked(auto_revoke_t, TypedEventHandler<AppNotificationManager, AppNotificationActivatedEventArgs const&> const& handler) const;
public event TypedEventHandler<AppNotificationManager,AppNotificationActivatedEventArgs> NotificationInvoked;
function onNotificationInvoked(eventArgs) { /* Your code */ }
appNotificationManager.addEventListener("notificationinvoked", onNotificationInvoked);
appNotificationManager.removeEventListener("notificationinvoked", onNotificationInvoked);
- or -
appNotificationManager.onnotificationinvoked = onNotificationInvoked;
Public Custom Event NotificationInvoked As TypedEventHandler(Of AppNotificationManager, AppNotificationActivatedEventArgs) 

이벤트 유형

설명

NotificationInvoked 이벤트 처리기가 실행 중인 앱 프로세스 내에서 호출되도록 하려면 Register를 호출하기 전에 이 이벤트에 대한 처리기를 등록해야 합니다. 그렇지 않으면 호출을 처리하기 위한 새 프로세스가 시작됩니다.

적용 대상

추가 정보