| 70 | } |
| 71 | |
| 72 | std::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 | |
| 82 | void App::launchByToastNotification(winrt::Microsoft::Windows::AppLifecycle::AppActivationArguments const& args) |
| 83 | { |
nothing calls this directly
no outgoing calls
no test coverage detected