mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(core): export foregroundEvent and backgroundEvent (#10226)
This commit is contained in:
committed by
GitHub
parent
7a37bd313d
commit
6fd69436c8
@@ -6,7 +6,7 @@ export { iOSApplication, AndroidApplication } from './application';
|
||||
export type { ApplicationEventData, LaunchEventData, OrientationChangedEventData, UnhandledErrorEventData, DiscardedErrorEventData, CssChangedEventData, LoadAppCSSEventData, AndroidActivityEventData, AndroidActivityBundleEventData, AndroidActivityRequestPermissionsEventData, AndroidActivityResultEventData, AndroidActivityNewIntentEventData, AndroidActivityBackPressedEventData, SystemAppearanceChangedEventData } from './application';
|
||||
|
||||
import { fontScaleChangedEvent, 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, setAutoSystemAppearanceChanged, ensureNativeApplication, setMaxRefreshRate } from './application';
|
||||
import { inBackground, suspended } from './application/application-common';
|
||||
import { inBackground, suspended, foregroundEvent, backgroundEvent } from './application/application-common';
|
||||
|
||||
export const Application = {
|
||||
launchEvent,
|
||||
@@ -16,6 +16,8 @@ export const Application = {
|
||||
suspendEvent,
|
||||
resumeEvent,
|
||||
exitEvent,
|
||||
foregroundEvent,
|
||||
backgroundEvent,
|
||||
lowMemoryEvent,
|
||||
orientationChangedEvent,
|
||||
systemAppearanceChangedEvent,
|
||||
|
||||
Reference in New Issue
Block a user