Skip to content

Instantly share code, notes, and snippets.

@rdelrosario
Created March 25, 2022 13:19
Show Gist options
  • Save rdelrosario/38594280c7b6429864afe83464caac38 to your computer and use it in GitHub Desktop.
Save rdelrosario/38594280c7b6429864afe83464caac38 to your computer and use it in GitHub Desktop.
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