@@ -43,6 +43,9 @@ var initEvents = function () {
43
43
if ( exports . onExit ) {
44
44
exports . onExit ( ) ;
45
45
}
46
+
47
+ exports . notify ( { eventName : "onExit" , object : androidApp , android : activity , ios : undefined } ) ;
48
+
46
49
androidApp . startActivity = undefined ;
47
50
}
48
51
@@ -58,6 +61,9 @@ var initEvents = function () {
58
61
if ( exports . onSuspend ) {
59
62
exports . onSuspend ( ) ;
60
63
}
64
+
65
+ exports . notify ( { eventName : "onSuspend" , object : androidApp , android : activity , ios : undefined } ) ;
66
+
61
67
}
62
68
63
69
if ( androidApp . onActivityPaused ) {
@@ -69,6 +75,9 @@ var initEvents = function () {
69
75
if ( exports . onResume ) {
70
76
exports . onResume ( ) ;
71
77
}
78
+
79
+ exports . notify ( { eventName : "onResume" , object : androidApp , android : activity , ios : undefined } ) ;
80
+
72
81
}
73
82
74
83
if ( androidApp . onActivityResumed ) {
@@ -183,6 +192,8 @@ class AndroidApplication implements dts.AndroidApplication {
183
192
exports . onLaunch ( intent ) ;
184
193
}
185
194
195
+ exports . notify ( { eventName : "onLaunch" , object : this , android : intent , ios : undefined } ) ;
196
+
186
197
/* In the onLaunch event we expect the following setup, which ensures a root frame:
187
198
* var frame = require("ui/frame");
188
199
* var rootFrame = new frame.Frame();
@@ -224,6 +235,8 @@ global.__onUncaughtError = function (error: Error) {
224
235
}
225
236
226
237
exports . onUncaughtError ( nsError ) ;
238
+
239
+ exports . notify ( { eventName : "onUncaughtError" , object : appModule . android , android : error , ios : undefined } ) ;
227
240
}
228
241
229
242
exports . start = function ( ) {
0 commit comments