mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +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;
|
suspendEvent: string;
|
||||||
resumeEvent: string;
|
resumeEvent: string;
|
||||||
exitEvent: string;
|
exitEvent: string;
|
||||||
|
foregroundEvent: string;
|
||||||
|
backgroundEvent: string;
|
||||||
lowMemoryEvent: string;
|
lowMemoryEvent: string;
|
||||||
orientationChangedEvent: string;
|
orientationChangedEvent: string;
|
||||||
systemAppearanceChangedEvent: 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';
|
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 { 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 = {
|
export const Application = {
|
||||||
launchEvent,
|
launchEvent,
|
||||||
@ -16,6 +16,8 @@ export const Application = {
|
|||||||
suspendEvent,
|
suspendEvent,
|
||||||
resumeEvent,
|
resumeEvent,
|
||||||
exitEvent,
|
exitEvent,
|
||||||
|
foregroundEvent,
|
||||||
|
backgroundEvent,
|
||||||
lowMemoryEvent,
|
lowMemoryEvent,
|
||||||
orientationChangedEvent,
|
orientationChangedEvent,
|
||||||
systemAppearanceChangedEvent,
|
systemAppearanceChangedEvent,
|
||||||
|
Reference in New Issue
Block a user