Created
March 25, 2022 13:19
-
-
Save rdelrosario/38594280c7b6429864afe83464caac38 to your computer and use it in GitHub Desktop.
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
public partial class SplashPage : ContentPage | |
{ | |
IStartupTaskSequencer sequencer; | |
public SplashPage() | |
{ | |
InitializeComponent(); | |
sequencer = new StartupTaskBuilder() | |
.Add(new SimulateDownloadDataStartupTask()) | |
.Add(new UpdateVersionStartupTask()) | |
.Add(new OnboardingPage()) | |
.Add(new PermissionRequestPage()) | |
.Add(new LoginPage()) | |
.Add(new AdvertisingPage()) | |
.Add(new HomePage()) | |
.Build(); | |
} | |
protected override async void OnAppearing() | |
{ | |
base.OnAppearing(); | |
await sequencer.StartAsync(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment