generated from unoplatform/template
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: wasm splashscreen support (#1071)
* fix: wasm splashscreen support chore: pr comments * chore: fix merge * chore: pr comments * chore: fix macos partial * chore: ExtendedSplashScreen.macOS.cs * chore: ExtendedSplashScreen.macOS.cs
- Loading branch information
Showing
5 changed files
with
32 additions
and
12 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...tendedSplashScreen.Windows.NetStandard.cs → ...endedSplashScreen.Windows.crossruntime.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
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
21 changes: 21 additions & 0 deletions
21
src/Uno.Toolkit.UI/Controls/ExtendedSplashScreen/ExtendedSplashScreen.macOS.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,21 @@ | ||
#if !__ANDROID__ && !__IOS__ && !(WINDOWS || WINDOWS_UWP) && !__SKIA_OR_WASM__ | ||
|
||
#if IS_WINUI | ||
using Microsoft.UI.Xaml; | ||
#else | ||
using Windows.UI.Xaml; | ||
#endif | ||
using System.Threading.Tasks; | ||
|
||
namespace Uno.Toolkit.UI; | ||
|
||
public partial class ExtendedSplashScreen | ||
{ | ||
private static Task<FrameworkElement?> GetNativeSplashScreen() | ||
{ | ||
return Task.FromResult<FrameworkElement?>(null); | ||
} | ||
|
||
public bool SplashIsEnabled => (Platforms & SplashScreenPlatform.All) != 0; | ||
} | ||
#endif |
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