-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppDelegate.cs
More file actions
executable file
·53 lines (44 loc) · 1.53 KB
/
AppDelegate.cs
File metadata and controls
executable file
·53 lines (44 loc) · 1.53 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using UIKit;
using Foundation;
using CoreGraphics;
namespace SortingVisualisation
{
[Register ("AppDelegate")]
public partial class AppDelegate : UIApplicationDelegate
{
// class-level declarations
UIWindow window;
//
// This method is invoked when the application has loaded and is ready to run. In this
// method you should instantiate the window, load the UI into it and then make the window
// visible.
//
// You have 17 seconds to return from this method, or iOS will terminate your application.
//
public override bool FinishedLaunching (UIApplication app, NSDictionary options)
{
// create a new window instance based on the screen size
window = new UIWindow (UIScreen.MainScreen.Bounds);
// If you have defined a root view controller, set it here:
window.RootViewController = this.MainViewController = new MainViewController();
// make the window visible
window.MakeKeyAndVisible ();
return true;
}
public SortingVisualisation.MainViewController MainViewController { get; set; }
public override void OnResignActivation (UIApplication application)
{
// this.MainViewController.GlView.StopAnimation ();
// this.MainViewController.GlView.AnimationInterval = 1.0 / 5.0;
}
// This method is required in iPhoneOS 3.0
public override void OnActivated (UIApplication application)
{
// this.MainViewController.GlView.AnimationInterval = 1.0 / 60.0;
}
public override void DidEnterBackground (UIApplication application)
{
// this.MainViewController.GlView.StopAnimation ();
}
}
}