Skip to content

ui::Notification

Header: winui/ui/Notification.hpp.

A desktop notification: what ui::notify() and TrayIcon::notify() show. Fill it with designated initializers.

Field Type Default
title std::string The first line, in bold.
text std::string The message under the title.
icon NotificationIcon NotificationIcon::App The picture beside the text.
on_click Callback<void()> The user clicked the notification while the app was running. It runs on the UI thread.