mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 10:01:08 +08:00
feat(core): export foregroundEvent and backgroundEvent (#10226)
This commit is contained in:

committed by
GitHub

parent
7a37bd313d
commit
6fd69436c8
2
packages/core/index.d.ts
vendored
2
packages/core/index.d.ts
vendored
@ -17,6 +17,8 @@ export declare const Application: {
|
||||
suspendEvent: string;
|
||||
resumeEvent: string;
|
||||
exitEvent: string;
|
||||
foregroundEvent: string;
|
||||
backgroundEvent: string;
|
||||
lowMemoryEvent: string;
|
||||
orientationChangedEvent: string;
|
||||
systemAppearanceChangedEvent: string;
|
||||
|
@ -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