-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26d3468
commit 82d1b5b
Showing
9 changed files
with
58 additions
and
30 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
Uno.Gallery/Uno.Gallery.Wasm/FragmentNavigationHandler.Interop.wasm.cs
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System.Runtime.InteropServices.JavaScript; | ||
|
||
namespace Uno.Gallery.Wasm | ||
{ | ||
internal sealed partial class FragmentNavigationHandler | ||
{ | ||
internal static partial class NativeMethods | ||
{ | ||
private const string JsType = "globalThis.Uno.Gallery.Wasm.FragmentNavigation"; | ||
|
||
[JSImport($"{JsType}.getCurrentFragment")] | ||
internal static partial string GetCurrentFragment(); | ||
|
||
[JSImport($"{JsType}.setCurrentFragment")] | ||
internal static partial string SetCurrentFragment(string fragment); | ||
} | ||
} | ||
} |
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
18 changes: 18 additions & 0 deletions
18
Uno.Gallery/Uno.Gallery.Wasm/LocationHrefNavigationHandler.Interop.wasm.cs
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System.Runtime.InteropServices.JavaScript; | ||
|
||
namespace Uno.Gallery.Wasm | ||
{ | ||
internal sealed partial class LocationHrefNavigationHandler | ||
{ | ||
internal static partial class NativeMethods | ||
{ | ||
private const string JsType = "globalThis.Uno.Gallery.Wasm.LocationHrefNavigation"; | ||
|
||
[JSImport($"{JsType}.getCurrentLocationHref")] | ||
internal static partial string GetCurrentLocationHref(); | ||
|
||
[JSImport($"{JsType}.setCurrentLocationHref")] | ||
internal static partial string SetCurrentLocationHref(string locationHref); | ||
} | ||
} | ||
} |
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
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
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