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 事件,以便在使用者選取應用程式時處理應用程式的預期啟用。

適用於

另請參閱