MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / isLaunchByToastNotification

Method isLaunchByToastNotification

FastCopy/App.xaml.cpp:72–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72std::optional<winrt::Microsoft::Windows::AppLifecycle::AppActivationArguments> App::isLaunchByToastNotification()
73{
74 if (auto activateArg = winrt::Microsoft::Windows::AppLifecycle::AppInstance::GetCurrent().GetActivatedEventArgs();
75 activateArg && activateArg.Kind() == winrt::Microsoft::Windows::AppLifecycle::ExtendedActivationKind::ToastNotification)
76 {
77 return activateArg;
78 }
79 return {};
80}
81
82void App::launchByToastNotification(winrt::Microsoft::Windows::AppLifecycle::AppActivationArguments const& args)
83{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected