forked from unoplatform/uno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Basic Launcher.OpenUriAsync support on Skia
- Loading branch information
1 parent
38dcd9a
commit a3dada5
Showing
3 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
using System; | ||
using System.Diagnostics; | ||
using System.Threading.Tasks; | ||
using Uno.Foundation; | ||
|
||
namespace Windows.System | ||
{ | ||
public static partial class Launcher | ||
{ | ||
public static async Task<bool> LaunchUriPlatformAsync(Uri uri) | ||
public static Task<bool> LaunchUriPlatformAsync(Uri uri) | ||
{ | ||
throw new NotImplementedException(); | ||
var processStartInfo = new ProcessStartInfo(uri.OriginalString) | ||
{ | ||
UseShellExecute = true, | ||
Verb = "open" | ||
}; | ||
|
||
var process = new Process(); | ||
process.StartInfo = processStartInfo; | ||
return Task.FromResult(process.Start()); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters