ToastNotification.Activated イベント

定義

ユーザーがクリックまたはタッチでトースト通知をアクティブ化したときに発生します。 実行中のアプリは、このイベントをサブスクライブします。

// Register
event_token Activated(TypedEventHandler<ToastNotification, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
ToastNotification::Activated_revoker Activated(auto_revoke_t, TypedEventHandler<ToastNotification, IInspectable const&> const& handler) const;
public event TypedEventHandler<ToastNotification,object> Activated;
function onActivated(eventArgs) { /* Your code */ }
toastNotification.addEventListener("activated", onActivated);
toastNotification.removeEventListener("activated", onActivated);
- or -
toastNotification.onactivated = onActivated;
Public Custom Event Activated As TypedEventHandler(Of ToastNotification, Object) 

イベントの種類

注釈

デスクトップ アプリによってトーストが発生した場合、そのアプリは少なくとも Activated イベントをサブスクライブして、ユーザーが選択したときにトーストからアプリの予想されるアクティブ化を処理できるようにする必要があります。

適用対象

こちらもご覧ください