ui::Launcher¶
Header: winui/ui/Launcher.hpp.
What opens URIs and files with the apps the OS has registered for them. ui::launch_uri() and ui::launch_file() go through it, and so do a hyperlink Button's and a Hyperlink inline's navigate_uri.
There is one for the whole process: the platform's, or a double a test installs with ui::testing::set_launcher(). App code calls the free functions and never needs the class. It is public so a test double can derive from it.
~Launcher¶
launch_uri¶
Opens uri, fire and forget, with its default handler (a browser for http/https, the mail client for mailto, ...). A URI nothing handles is dropped.
launch_file¶
Opens file, fire and forget, with the app registered for its type. A file that does not exist is dropped.