Created
May 10, 2022 01:30
-
-
Save rdelrosario/e6e50a93a527e5a0c59d609efb7330e4 to your computer and use it in GitHub Desktop.
as
This file contains hidden or 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
public partial class SplashPage : ContentPage | |
{ | |
IStartupTaskSequencer sequencer; | |
HomePage homePage = new HomePage(); | |
public SplashPage() | |
{ | |
InitializeComponent(); | |
sequencer = new StartupTaskBuilder() | |
.Add(new SimulateDownloadDataStartupTask()) | |
.Add(new UpdateVersionStartupTask()) | |
.Add(new OnboardingPage()) | |
.Add(new PermissionRequestPage()) | |
.Add(homePage) | |
.Add(new AdvertisingPage()) | |
.Add(new HomePage()) | |
.Build(); | |
} | |
protected override async void OnAppearing() | |
{ | |
base.OnAppearing(); | |
await sequencer.StartAsync(homePage); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment