Skip to content

Instantly share code, notes, and snippets.

@jonpryor
Forked from anaisbetts/App.cs
Last active August 29, 2015 14:02
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 jonpryor/d5e96c2a21683f0a8425 to your computer and use it in GitHub Desktop.
Save jonpryor/d5e96c2a21683f0a8425 to your computer and use it in GitHub Desktop.
namespace MobileSample_Android
{
[Application(Label = "AndroidPlayground")]
public class App : Application
{
readonly AutoSuspendHelper suspendHelper;
public App(IntPtr handle, JniHandleOwnership transfer)
: base (handle, transfer)
{
}
public override void OnCreate ()
{
suspendHelper = new AutoSuspendHelper(this);
RxApp.SuspensionHost.CreateNewAppState = () => new AppBootstrapper();
RxApp.SuspensionHost.SetupDefaultSuspendResume();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment