@@ -6,7 +6,7 @@ nsGlobals.initGlobal();
66export { iOSApplication , AndroidApplication } from './application' ;
77export type { ApplicationEventData , LaunchEventData , OrientationChangedEventData , UnhandledErrorEventData , DiscardedErrorEventData , CssChangedEventData , LoadAppCSSEventData , AndroidActivityEventData , AndroidActivityBundleEventData , AndroidActivityRequestPermissionsEventData , AndroidActivityResultEventData , AndroidActivityNewIntentEventData , AndroidActivityBackPressedEventData , SystemAppearanceChangedEventData } from './application' ;
88
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' ;
1010export const Application = {
1111 launchEvent,
1212 displayedEvent,
@@ -30,7 +30,9 @@ export const Application = {
3030 loadAppCss,
3131 addCss,
3232 on,
33- off,
33+ off,
34+ notify,
35+ hasListeners,
3436 run,
3537 orientation,
3638 getNativeApplication,
@@ -103,7 +105,8 @@ export { profile, enable as profilingEnable, disable as profilingDisable, time a
103105export type { InstrumentationMode , TimerInfo } from './profiling' ;
104106
105107export { 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' ;
107110export * from './trace' ;
108111
109112export * from './ui' ;
@@ -133,7 +136,11 @@ export const Utils = {
133136 android : androidUtils ,
134137 // legacy (a lot of plugins use the shorthand "ad" Utils.ad instead of Utils.android)
135138 ad : androidUtils ,
136- ios : iosUtils ,
139+ ios : iosUtils ,
140+ setTimeout,
141+ setInterval,
142+ clearInterval,
143+ clearTimeout,
137144 Source,
138145 ClassInfo,
139146 getClass,
0 commit comments