mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: adjust Application ios/android getters
This commit is contained in:
6
packages/core/index.d.ts
vendored
6
packages/core/index.d.ts
vendored
@@ -8,7 +8,7 @@
|
||||
export type { NativeScriptConfig } from './config';
|
||||
export { iOSApplication, AndroidApplication } from './application';
|
||||
export type { ApplicationEventData, LaunchEventData, OrientationChangedEventData, UnhandledErrorEventData, DiscardedErrorEventData, CssChangedEventData, LoadAppCSSEventData, AndroidActivityEventData, AndroidActivityBundleEventData, AndroidActivityRequestPermissionsEventData, AndroidActivityResultEventData, AndroidActivityNewIntentEventData, AndroidActivityBackPressedEventData, SystemAppearanceChangedEventData } from './application';
|
||||
import { systemAppearanceChanged, getMainEntry, getRootView, _resetRootView, getResources, setResources, setCssFileName, getCssFileName, loadAppCss, addCss, on, off, notify, hasListeners, run, orientation, getNativeApplication, hasLaunched, systemAppearance, setAutoSystemAppearanceChanged } from './application';
|
||||
import { AndroidApplication, iOSApplication, systemAppearanceChanged, getMainEntry, getRootView, _resetRootView, getResources, setResources, setCssFileName, getCssFileName, loadAppCss, addCss, on, off, notify, hasListeners, run, orientation, getNativeApplication, hasLaunched, systemAppearance, setAutoSystemAppearanceChanged } from './application';
|
||||
export declare const Application: {
|
||||
launchEvent: string;
|
||||
displayedEvent: string;
|
||||
@@ -41,8 +41,8 @@ export declare const Application: {
|
||||
hasLaunched: typeof hasLaunched;
|
||||
systemAppearance: typeof systemAppearance;
|
||||
setAutoSystemAppearanceChanged: typeof setAutoSystemAppearanceChanged;
|
||||
android: import('./application').AndroidApplication;
|
||||
ios: import('./application').iOSApplication;
|
||||
android: AndroidApplication;
|
||||
ios: iOSApplication;
|
||||
};
|
||||
import { setString, getString, clear, flush, getAllKeys, getBoolean, getNumber, hasKey, remove, setBoolean, setNumber } from './application-settings';
|
||||
export declare const ApplicationSettings: {
|
||||
|
||||
@@ -39,9 +39,12 @@ export const Application = {
|
||||
hasLaunched,
|
||||
systemAppearance,
|
||||
setAutoSystemAppearanceChanged,
|
||||
|
||||
android: appAndroid,
|
||||
ios: iosApp,
|
||||
get android() {
|
||||
return appAndroid;
|
||||
},
|
||||
get ios() {
|
||||
return iosApp;
|
||||
},
|
||||
};
|
||||
|
||||
// Export all methods from "application-settings" as ApplicationSettings
|
||||
|
||||
Reference in New Issue
Block a user