forked from reactiveui/ReactiveUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.cs
More file actions
30 lines (24 loc) · 745 Bytes
/
Copy pathApp.cs
File metadata and controls
30 lines (24 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using Android.App;
using Android.Runtime;
using ReactiveUI;
using PlaygroundXamForms;
namespace MobileSample_Android
{
[Application(Label = "AndroidPlayground")]
public class App : Application
{
AutoSuspendHelper suspendHelper;
App(IntPtr handle, JniHandleOwnership owner) : base(handle, owner) { }
public override void OnCreate()
{
base.OnCreate();
suspendHelper = new AutoSuspendHelper(this);
RxApp.SuspensionHost.CreateNewAppState = () => {
Console.WriteLine("Creating app state");
return new AppBootstrapper();
};
RxApp.SuspensionHost.SetupDefaultSuspendResume();
}
}
}