forked from martijn00/MvvmCross-Forms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMvxFormsApp.cs
37 lines (30 loc) · 980 Bytes
/
MvxFormsApp.cs
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
31
32
33
34
35
36
37
// MvxFormsApp.cs
// 2015 (c) Copyright Cheesebaron. http://ostebaronen.dk
// MvvmCross.Forms.Presenter is licensed using Microsoft Public License (Ms-PL)
// Contributions and inspirations noted in readme.md and license.txt
//
// Project Lead - Tomasz Cielecki, @cheesebaron, mvxplugins@ostebaronen.dk
// Contributor - Marcos Cobeña Morián, @CobenaMarcos, marcoscm@me.com
using System;
using Xamarin.Forms;
namespace MvvmCross.Forms.Presenter.Core
{
public class MvxFormsApp : Application
{
public event EventHandler Start;
public event EventHandler Sleep;
public event EventHandler Resume;
protected override void OnStart()
{
Start?.Invoke(this, EventArgs.Empty);
}
protected override void OnSleep()
{
Sleep?.Invoke(this, EventArgs.Empty);
}
protected override void OnResume()
{
Resume?.Invoke(this, EventArgs.Empty);
}
}
}