-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLauncher.cs
More file actions
27 lines (22 loc) · 720 Bytes
/
Copy pathLauncher.cs
File metadata and controls
27 lines (22 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.Threading.Tasks;
namespace Shared.Services.Implementations.WinUI;
public class Launcher : ILauncher
{
public Task LaunchAsync(Uri uri)
{
return Windows.System.Launcher.LaunchUriAsync(uri).AsTask();
}
public Task LaunchFolderAsync(string folderPath)
{
return Windows.System.Launcher.LaunchFolderPathAsync(folderPath).AsTask();
}
public Task LaunchDefaultAppsSettingsPageAsync()
{
return Windows.System.Launcher.LaunchUriAsync(new Uri("ms-settings:defaultapps")).AsTask();
}
public async Task<bool> VerifyThatAllFileTypeAssociationsAreRegisteredAsync()
{
return false; // not possible to actually check
}
}