Skip to content

Instantly share code, notes, and snippets.

@tomwis
Created September 26, 2017 16:01
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tomwis/09a8c0c20f4fc763c3af5e1463cc6629 to your computer and use it in GitHub Desktop.
public class Setup : MvxFormsAndroidSetup
{
public Setup(Context applicationContext) : base(applicationContext)
{
}
protected override void InitializeFirstChance()
{
base.InitializeFirstChance();
Mvx.RegisterSingleton<IFileService>(new FileService());
}
protected override IMvxApplication CreateApp()
{
return new Core.CoreApp();
}
protected override MvvmCross.Forms.Core.MvxFormsApplication CreateFormsApplication()
{
return new Core.App();
}
protected override IMvxTrace CreateDebugTrace()
{
return new DebugTrace();
}
protected override IMvxIocOptions CreateIocOptions()
{
return new MvxIocOptions()
{
PropertyInjectorOptions = MvxPropertyInjectorOptions.All
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment