@@ -6,7 +6,7 @@ nsGlobals.initGlobal();
6
6
export { iOSApplication , AndroidApplication } from './application' ;
7
7
export type { ApplicationEventData , LaunchEventData , OrientationChangedEventData , UnhandledErrorEventData , DiscardedErrorEventData , CssChangedEventData , LoadAppCSSEventData , AndroidActivityEventData , AndroidActivityBundleEventData , AndroidActivityRequestPermissionsEventData , AndroidActivityResultEventData , AndroidActivityNewIntentEventData , AndroidActivityBackPressedEventData , SystemAppearanceChangedEventData } from './application' ;
8
8
9
- import { launchEvent , displayedEvent , uncaughtErrorEvent , discardedErrorEvent , suspendEvent , resumeEvent , exitEvent , lowMemoryEvent , orientationChangedEvent , systemAppearanceChanged , systemAppearanceChangedEvent , getMainEntry , getRootView , _resetRootView , getResources , setResources , setCssFileName , getCssFileName , loadAppCss , addCss , on , off , run , orientation , getNativeApplication , hasLaunched , android as appAndroid , ios as iosApp , systemAppearance } from './application' ;
9
+ import { launchEvent , displayedEvent , uncaughtErrorEvent , discardedErrorEvent , suspendEvent , resumeEvent , exitEvent , lowMemoryEvent , orientationChangedEvent , systemAppearanceChanged , systemAppearanceChangedEvent , getMainEntry , getRootView , _resetRootView , getResources , setResources , setCssFileName , getCssFileName , loadAppCss , addCss , on , off , notify , hasListeners , run , orientation , getNativeApplication , hasLaunched , android as appAndroid , ios as iosApp , systemAppearance } from './application' ;
10
10
export const Application = {
11
11
launchEvent,
12
12
displayedEvent,
@@ -30,7 +30,9 @@ export const Application = {
30
30
loadAppCss,
31
31
addCss,
32
32
on,
33
- off,
33
+ off,
34
+ notify,
35
+ hasListeners,
34
36
run,
35
37
orientation,
36
38
getNativeApplication,
@@ -103,7 +105,8 @@ export { profile, enable as profilingEnable, disable as profilingDisable, time a
103
105
export type { InstrumentationMode , TimerInfo } from './profiling' ;
104
106
105
107
export { encoding } from './text' ;
106
-
108
+ // for developers to be explicit if they desire around globals (allows access via Utils below)
109
+ import { setTimeout , setInterval , clearInterval , clearTimeout } from './timer' ;
107
110
export * from './trace' ;
108
111
109
112
export * from './ui' ;
@@ -133,7 +136,11 @@ export const Utils = {
133
136
android : androidUtils ,
134
137
// legacy (a lot of plugins use the shorthand "ad" Utils.ad instead of Utils.android)
135
138
ad : androidUtils ,
136
- ios : iosUtils ,
139
+ ios : iosUtils ,
140
+ setTimeout,
141
+ setInterval,
142
+ clearInterval,
143
+ clearTimeout,
137
144
Source,
138
145
ClassInfo,
139
146
getClass,
0 commit comments