Launcher v11.1
The Launcher
allows you to open file or a URI link in the default app associated with the specified argument.
The Launcher
can be access through an instance of TopLevel
or Window
, for more details on accessing TopLevel
please visit TopLevel page:
var launcher = TopLevel.GetTopLevel(control).Launcher;
Methods
LaunchUriAsync
Starts the default app associated with the URI scheme name for the specified URI.
Task<bool> LaunchUriAsync(Uri uri)
примечание
Input URI can have any scheme including custom ones. But it's up to the Operating System to accept or deny this launcher request.
LaunchFileAsync
Starts the default app associated with the specified storage file or folder.
Task<bool> LaunchFileAsync(IStorageItem storageItem);