-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
MvxEventSourceCollectionViewController.cs
99 lines (78 loc) · 2.83 KB
/
MvxEventSourceCollectionViewController.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MS-PL license.
// See the LICENSE file in the project root for more information.
using System;
using Foundation;
using MvvmCross.Base;
using ObjCRuntime;
using UIKit;
namespace MvvmCross.Platforms.Ios.Views.Base
{
public class MvxEventSourceCollectionViewController
: UICollectionViewController, IMvxEventSourceViewController
{
public MvxEventSourceCollectionViewController() : base()
{
}
public MvxEventSourceCollectionViewController(NSCoder coder) : base(coder)
{
}
protected MvxEventSourceCollectionViewController(NSObjectFlag t) : base(t)
{
}
protected internal MvxEventSourceCollectionViewController(NativeHandle handle) : base(handle)
{
}
public MvxEventSourceCollectionViewController(string nibName, NSBundle bundle) : base(nibName, bundle)
{
}
public MvxEventSourceCollectionViewController(UICollectionViewLayout layout) : base(layout)
{
}
public override void ViewWillDisappear(bool animated)
{
base.ViewWillDisappear(animated);
ViewWillDisappearCalled.Raise(this, animated);
}
public override void ViewDidAppear(bool animated)
{
base.ViewDidAppear(animated);
ViewDidAppearCalled.Raise(this, animated);
}
public override void ViewWillAppear(bool animated)
{
base.ViewWillAppear(animated);
ViewWillAppearCalled.Raise(this, animated);
}
public override void ViewDidDisappear(bool animated)
{
base.ViewDidDisappear(animated);
ViewDidDisappearCalled.Raise(this, animated);
}
public override void ViewDidLoad()
{
base.ViewDidLoad();
ViewDidLoadCalled.Raise(this);
}
public override void ViewDidLayoutSubviews()
{
base.ViewDidLayoutSubviews();
ViewDidLayoutSubviewsCalled.Raise(this);
}
protected override void Dispose(bool disposing)
{
if (disposing)
{
DisposeCalled.Raise(this);
}
base.Dispose(disposing);
}
public event EventHandler ViewDidLoadCalled;
public event EventHandler ViewDidLayoutSubviewsCalled;
public event EventHandler<MvxValueEventArgs<bool>> ViewWillAppearCalled;
public event EventHandler<MvxValueEventArgs<bool>> ViewDidAppearCalled;
public event EventHandler<MvxValueEventArgs<bool>> ViewDidDisappearCalled;
public event EventHandler<MvxValueEventArgs<bool>> ViewWillDisappearCalled;
public event EventHandler DisposeCalled;
}
}