Last active
August 29, 2015 13:56
-
-
Save dustin-graham/9243435 to your computer and use it in GitHub Desktop.
A sample Android Setup.cs class for MvvmCross
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
using Android.App; | |
using Android.Content; | |
using Cirrious.MvvmCross.Droid.Platform; | |
using Cirrious.MvvmCross.Droid.Views; | |
using Cirrious.MvvmCross.ViewModels; | |
using MyRep.Core; | |
namespace MyRep.Core | |
{ | |
public class Setup : MvxAndroidSetup | |
{ | |
public Setup(Context applicationContext) : base(applicationContext) | |
{ | |
} | |
protected override IMvxApplication CreateApp() | |
{ | |
return new App(); | |
} | |
protected override IMvxNavigationSerializer CreateNavigationSerializer() | |
{ | |
Cirrious.MvvmCross.Plugins.Json.PluginLoader.Instance.EnsureLoaded(); | |
return new MvxJsonNavigationSerializer(); | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment