Skip to content

Instantly share code, notes, and snippets.

@rdelrosario
Created May 10, 2022 01:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdelrosario/e6e50a93a527e5a0c59d609efb7330e4 to your computer and use it in GitHub Desktop.
Save rdelrosario/e6e50a93a527e5a0c59d609efb7330e4 to your computer and use it in GitHub Desktop.
as
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