@nativescript/core 8.5.3 → 8.5.4-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/accessibility/accessibility-css-helper.js +5 -6
  2. package/accessibility/accessibility-css-helper.js.map +1 -1
  3. package/accessibility/accessibility-service.android.js +24 -23
  4. package/accessibility/accessibility-service.android.js.map +1 -1
  5. package/accessibility/accessibility-service.ios.js +1 -1
  6. package/accessibility/accessibility-service.ios.js.map +1 -1
  7. package/accessibility/font-scale.android.js +1 -1
  8. package/accessibility/font-scale.android.js.map +1 -1
  9. package/accessibility/font-scale.ios.js +1 -1
  10. package/accessibility/font-scale.ios.js.map +1 -1
  11. package/accessibility/index.android.js +1 -1
  12. package/accessibility/index.android.js.map +1 -1
  13. package/accessibility/index.ios.js +1 -1
  14. package/accessibility/index.ios.js.map +1 -1
  15. package/application/application-common.d.ts +197 -41
  16. package/application/application-common.js +411 -151
  17. package/application/application-common.js.map +1 -1
  18. package/application/application-interfaces.d.ts +116 -28
  19. package/application/application-shims.d.ts +351 -0
  20. package/application/application-shims.js +353 -0
  21. package/application/application-shims.js.map +1 -0
  22. package/application/application.android.d.ts +75 -0
  23. package/application/application.android.js +445 -0
  24. package/application/application.android.js.map +1 -0
  25. package/application/application.d.ts +105 -0
  26. package/application/application.ios.d.ts +72 -0
  27. package/application/application.ios.js +375 -0
  28. package/application/application.ios.js.map +1 -0
  29. package/application/index.android.d.ts +2 -77
  30. package/application/index.android.js +2 -455
  31. package/application/index.android.js.map +1 -1
  32. package/application/index.d.ts +2 -759
  33. package/application/index.ios.d.ts +2 -65
  34. package/application/index.ios.js +2 -516
  35. package/application/index.ios.js.map +1 -1
  36. package/application-settings/index.android.js +2 -2
  37. package/application-settings/index.android.js.map +1 -1
  38. package/connectivity/index.android.js +4 -5
  39. package/connectivity/index.android.js.map +1 -1
  40. package/css/LICENSE +9 -0
  41. package/css/Readme.md +278 -0
  42. package/css-value/LICENSE +9 -0
  43. package/css-value/Readme.md +45 -0
  44. package/fetch/LICENSE +20 -0
  45. package/fetch/README.md +1 -0
  46. package/file-system/file-system-access.android.d.ts +18 -0
  47. package/file-system/file-system-access.android.js +205 -3
  48. package/file-system/file-system-access.android.js.map +1 -1
  49. package/file-system/file-system-access.d.ts +67 -0
  50. package/file-system/file-system-access.ios.d.ts +9 -0
  51. package/file-system/file-system-access.ios.js +106 -0
  52. package/file-system/file-system-access.ios.js.map +1 -1
  53. package/file-system/index.d.ts +60 -0
  54. package/file-system/index.js +197 -3
  55. package/file-system/index.js.map +1 -1
  56. package/image-source/index.android.js +2 -2
  57. package/image-source/index.android.js.map +1 -1
  58. package/index.d.ts +22 -139
  59. package/index.js +15 -156
  60. package/index.js.map +1 -1
  61. package/js-libs/easysax/LICENSE +20 -0
  62. package/js-libs/easysax/README.md +46 -0
  63. package/module-name-resolver/index.js +5 -5
  64. package/module-name-resolver/index.js.map +1 -1
  65. package/module-name-resolver/non-bundle-workflow-compat.js +2 -2
  66. package/module-name-resolver/non-bundle-workflow-compat.js.map +1 -1
  67. package/package.json +1 -1
  68. package/platform/index.android.js +5 -5
  69. package/platform/index.android.js.map +1 -1
  70. package/platforms/README.md +1 -0
  71. package/platforms/android/widgets-release.aar +0 -0
  72. package/platforms/ios/TNSWidgets.xcframework/Info.plist +7 -7
  73. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  74. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +1 -0
  75. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
  76. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
  77. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  78. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  79. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +1 -0
  80. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +4 -4
  81. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
  82. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSFileHandle+Async.h +22 -0
  83. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +1 -0
  84. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +4 -4
  85. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
  86. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
  87. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  88. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  89. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +1 -0
  90. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
  91. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
  92. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +14 -3
  93. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  94. package/ui/action-bar/index.android.js +5 -5
  95. package/ui/action-bar/index.android.js.map +1 -1
  96. package/ui/core/view/index.android.js +2 -2
  97. package/ui/core/view/index.android.js.map +1 -1
  98. package/ui/core/view/view-helper/index.ios.js +5 -6
  99. package/ui/core/view/view-helper/index.ios.js.map +1 -1
  100. package/ui/dialogs/index.ios.js +9 -3
  101. package/ui/dialogs/index.ios.js.map +1 -1
  102. package/ui/frame/activity.android.js +2 -2
  103. package/ui/frame/activity.android.js.map +1 -1
  104. package/ui/frame/index.android.d.ts +1 -1
  105. package/ui/frame/index.android.js +45 -82
  106. package/ui/frame/index.android.js.map +1 -1
  107. package/ui/frame/index.ios.js +2 -2
  108. package/ui/frame/index.ios.js.map +1 -1
  109. package/ui/styling/background.android.js +3 -5
  110. package/ui/styling/background.android.js.map +1 -1
  111. package/ui/styling/style-scope.js +5 -5
  112. package/ui/styling/style-scope.js.map +1 -1
  113. package/ui/tab-view/index.android.js +2 -2
  114. package/ui/tab-view/index.android.js.map +1 -1
  115. package/ui/transition/shared-transition-helper.ios.js +19 -19
  116. package/ui/transition/shared-transition-helper.ios.js.map +1 -1
  117. package/ui/transition/shared-transition.js +1 -2
  118. package/ui/transition/shared-transition.js.map +1 -1
  119. package/utils/android/index.d.ts +21 -0
  120. package/utils/android/index.js +157 -0
  121. package/utils/android/index.js.map +1 -0
  122. package/utils/index.android.d.ts +8 -3
  123. package/utils/index.android.js +15 -10
  124. package/utils/index.android.js.map +1 -1
  125. package/utils/index.d.ts +7 -7
  126. package/utils/index.ios.d.ts +8 -3
  127. package/utils/index.ios.js +13 -8
  128. package/utils/index.ios.js.map +1 -1
  129. package/utils/ios/index.d.ts +36 -0
  130. package/utils/ios/index.js +276 -0
  131. package/utils/ios/index.js.map +1 -0
  132. package/utils/layout-helper/index.android.js +3 -3
  133. package/utils/layout-helper/index.android.js.map +1 -1
  134. package/utils/mainthread-helper.android.js +2 -2
  135. package/utils/mainthread-helper.android.js.map +1 -1
  136. package/utils/native-helper.android.d.ts +8 -23
  137. package/utils/native-helper.android.js +10 -169
  138. package/utils/native-helper.android.js.map +1 -1
  139. package/utils/native-helper.d.ts +272 -255
  140. package/utils/native-helper.ios.d.ts +8 -38
  141. package/utils/native-helper.ios.js +10 -295
  142. package/utils/native-helper.ios.js.map +1 -1
  143. package/utils/platform-check.d.ts +4 -0
  144. package/utils/platform-check.js +21 -0
  145. package/utils/platform-check.js.map +1 -0
@@ -1,5 +1,6 @@
1
- import { EventData } from '../data/observable';
2
- import { View } from '../ui/core/view';
1
+ import type { ApplicationCommon } from './application-common';
2
+ import type { EventData, Observable } from '../data/observable';
3
+ import type { View } from '../ui/core/view';
3
4
  /**
4
5
  * An extended JavaScript Error which will have the nativeError property initialized in case the error is caused by executing platform-specific code.
5
6
  */
@@ -9,86 +10,173 @@ export interface NativeScriptError extends Error {
9
10
  */
10
11
  nativeError: any;
11
12
  }
12
- export interface ApplicationEventData extends EventData {
13
+ /**
14
+ * Event data containing information for the application events.
15
+ */
16
+ export interface ApplicationEventData {
13
17
  /**
14
- * UIApplication or undefined, unless otherwise specified. Prefer explicit
15
- * properties where possible.
18
+ * The name of the event.
19
+ */
20
+ eventName: string;
21
+ /**
22
+ * Gets the native iOS event arguments. Valid only when running on iOS.
16
23
  */
17
24
  ios?: any;
18
25
  /**
19
- * androidx.appcompat.app.AppCompatActivity or undefined, unless otherwise
20
- * specified. Prefer explicit properties where possible.
26
+ * Gets the native Android event arguments. Valid only when running on Android.
21
27
  */
22
28
  android?: any;
23
29
  /**
24
- * Careful with this messy type. A significant refactor is needed to make it
25
- * strictly extend EventData['object'], which is an Observable. It's used in
26
- * various ways:
27
- * - By font-scale: the Application module, typeof import('.')
28
- * - Within index.android.ts: AndroidApplication
29
- * - Within index.ios.ts: iOSApplication
30
+ * The instance that has raised the event.
30
31
  */
31
- object: any;
32
+ object: ApplicationCommon | Observable;
32
33
  }
33
- export interface LaunchEventData extends ApplicationEventData {
34
+ /**
35
+ * Event data containing information for launch event.
36
+ */
37
+ export interface LaunchEventData extends EventData {
34
38
  /**
35
- * The value stored into didFinishLaunchingWithOptions notification's
36
- * userInfo under 'UIApplicationLaunchOptionsLocalNotificationKey';
37
- * otherwise, null.
39
+ * The root view for this Window on iOS or Activity for Android.
40
+ * If not set a new Frame will be created as a root view in order to maintain backwards compatibility.
41
+ * If explicitly set to null, there will be no root view.
38
42
  */
39
- ios: unknown;
40
43
  root?: View | null;
41
44
  savedInstanceState?: any;
45
+ android?: android.content.Intent;
46
+ ios?: any;
42
47
  }
48
+ /**
49
+ * Event data containing information for orientation changed event.
50
+ */
43
51
  export interface OrientationChangedEventData extends ApplicationEventData {
44
- android: any;
52
+ /**
53
+ * New orientation value.
54
+ */
45
55
  newValue: 'portrait' | 'landscape' | 'unknown';
46
56
  }
57
+ /**
58
+ * Event data containing information for system appearance changed event.
59
+ */
47
60
  export interface SystemAppearanceChangedEventData extends ApplicationEventData {
48
- android: any;
61
+ /**
62
+ * New system appearance value.
63
+ */
49
64
  newValue: 'light' | 'dark';
50
65
  }
66
+ /**
67
+ * Event data containing information for font scale changed event.
68
+ */
69
+ export interface FontScaleChangedEventData extends ApplicationEventData {
70
+ /**
71
+ * New font scale value.
72
+ */
73
+ newValue: number;
74
+ }
75
+ /**
76
+ * Event data containing information about unhandled application errors.
77
+ */
51
78
  export interface UnhandledErrorEventData extends ApplicationEventData {
52
79
  ios?: NativeScriptError;
53
80
  android?: NativeScriptError;
54
81
  error: NativeScriptError;
55
82
  }
83
+ /**
84
+ * Event data containing information about discarded application errors.
85
+ */
56
86
  export interface DiscardedErrorEventData extends ApplicationEventData {
57
87
  error: NativeScriptError;
58
88
  }
89
+ /**
90
+ * Event data containing information about application css change.
91
+ */
59
92
  export interface CssChangedEventData extends ApplicationEventData {
60
93
  cssFile?: string;
61
94
  cssText?: string;
62
95
  }
63
- export interface AndroidActivityEventData extends ApplicationEventData {
64
- activity: any;
96
+ /**
97
+ * Data for the Android activity events.
98
+ */
99
+ export interface AndroidActivityEventData {
100
+ /**
101
+ * The activity.
102
+ */
103
+ activity: androidx.appcompat.app.AppCompatActivity;
104
+ /**
105
+ * The name of the event.
106
+ */
107
+ eventName: string;
108
+ /**
109
+ * The instance that has raised the event.
110
+ */
65
111
  object: any;
66
112
  }
113
+ /**
114
+ * Data for the Android activity events with bundle.
115
+ */
67
116
  export interface AndroidActivityBundleEventData extends AndroidActivityEventData {
68
- bundle: any;
117
+ /**
118
+ * The bundle.
119
+ */
120
+ bundle: android.os.Bundle;
69
121
  }
122
+ /**
123
+ * Data for the Android activity onRequestPermissions callback
124
+ */
70
125
  export interface AndroidActivityRequestPermissionsEventData extends AndroidActivityEventData {
126
+ /**
127
+ * The request code.
128
+ */
71
129
  requestCode: number;
130
+ /**
131
+ * The Permissions.
132
+ */
72
133
  permissions: Array<string>;
134
+ /**
135
+ * The Granted.
136
+ */
73
137
  grantResults: Array<number>;
74
138
  }
139
+ /**
140
+ * Data for the Android activity result event.
141
+ */
75
142
  export interface AndroidActivityResultEventData extends AndroidActivityEventData {
143
+ /**
144
+ * The request code.
145
+ */
76
146
  requestCode: number;
147
+ /**
148
+ * The result code.
149
+ */
77
150
  resultCode: number;
78
- intent: any;
151
+ /**
152
+ * The intent.
153
+ */
154
+ intent: android.content.Intent;
79
155
  }
156
+ /**
157
+ * Data for the Android activity newIntent event.
158
+ */
80
159
  export interface AndroidActivityNewIntentEventData extends AndroidActivityEventData {
160
+ /**
161
+ * The intent.
162
+ */
81
163
  intent: any;
82
164
  }
165
+ /**
166
+ * Data for the Android activity back pressed event.
167
+ */
83
168
  export interface AndroidActivityBackPressedEventData extends AndroidActivityEventData {
169
+ /**
170
+ * In the event handler, set this value to true if you want to cancel the back navigation and do something else instead.
171
+ */
84
172
  cancel: boolean;
85
173
  }
174
+ export interface LoadAppCSSEventData extends ApplicationEventData {
175
+ cssFile: string;
176
+ }
86
177
  /**
87
178
  * @deprecated
88
179
  */
89
180
  export interface RootViewControllerImpl {
90
181
  contentController: any;
91
182
  }
92
- export interface LoadAppCSSEventData extends ApplicationEventData {
93
- cssFile: string;
94
- }
@@ -0,0 +1,351 @@
1
+ /**
2
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
3
+ * Use the `Application` class imported from "@nativescript/core" instead:
4
+ * ```ts
5
+ * import { Application } from "@nativescript/core";
6
+ * Application.addCss()
7
+ * ```
8
+ */
9
+ export declare const addCss: any;
10
+ /**
11
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
12
+ * Use the `Application` class imported from "@nativescript/core" instead:
13
+ * ```ts
14
+ * import { Application } from "@nativescript/core";
15
+ * Application.getCssFileName()
16
+ * ```
17
+ */
18
+ export declare const getCssFileName: any;
19
+ /**
20
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
21
+ * Use the `Application` class imported from "@nativescript/core" instead:
22
+ * ```ts
23
+ * import { Application } from "@nativescript/core";
24
+ * Application.getMainEntry()
25
+ * ```
26
+ */
27
+ export declare const getMainEntry: any;
28
+ /**
29
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
30
+ * Use the `Application` class imported from "@nativescript/core" instead:
31
+ * ```ts
32
+ * import { Application } from "@nativescript/core";
33
+ * Application.getNativeApplication()
34
+ * ```
35
+ */
36
+ export declare const getNativeApplication: any;
37
+ /**
38
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
39
+ * Use the `Application` class imported from "@nativescript/core" instead:
40
+ * ```ts
41
+ * import { Application } from "@nativescript/core";
42
+ * Application.getResources()
43
+ * ```
44
+ */
45
+ export declare const getResources: any;
46
+ /**
47
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
48
+ * Use the `Application` class imported from "@nativescript/core" instead:
49
+ * ```ts
50
+ * import { Application } from "@nativescript/core";
51
+ * Application.getRootView()
52
+ * ```
53
+ */
54
+ export declare const getRootView: any;
55
+ /**
56
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
57
+ * Use the `Application` class imported from "@nativescript/core" instead:
58
+ * ```ts
59
+ * import { Application } from "@nativescript/core";
60
+ * Application.hasLaunched()
61
+ * ```
62
+ */
63
+ export declare const hasLaunched: any;
64
+ /**
65
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
66
+ * Use the `Application` class imported from "@nativescript/core" instead:
67
+ * ```ts
68
+ * import { Application } from "@nativescript/core";
69
+ * Application.hasListeners()
70
+ * ```
71
+ */
72
+ export declare const hasListeners: any;
73
+ /**
74
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
75
+ * Use the `Application` class imported from "@nativescript/core" instead:
76
+ * ```ts
77
+ * import { Application } from "@nativescript/core";
78
+ * Application.loadAppCss()
79
+ * ```
80
+ */
81
+ export declare const loadAppCss: any;
82
+ /**
83
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
84
+ * Use the `Application` class imported from "@nativescript/core" instead:
85
+ * ```ts
86
+ * import { Application } from "@nativescript/core";
87
+ * Application.notify()
88
+ * ```
89
+ */
90
+ export declare const notify: any;
91
+ /**
92
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
93
+ * Use the `Application` class imported from "@nativescript/core" instead:
94
+ * ```ts
95
+ * import { Application } from "@nativescript/core";
96
+ * Application.off()
97
+ * ```
98
+ */
99
+ export declare const off: any;
100
+ /**
101
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
102
+ * Use the `Application` class imported from "@nativescript/core" instead:
103
+ * ```ts
104
+ * import { Application } from "@nativescript/core";
105
+ * Application.on()
106
+ * ```
107
+ */
108
+ export declare const on: any;
109
+ /**
110
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
111
+ * Use the `Application` class imported from "@nativescript/core" instead:
112
+ * ```ts
113
+ * import { Application } from "@nativescript/core";
114
+ * Application.orientation
115
+ * ```
116
+ */
117
+ export declare const orientation: () => "portrait" | "landscape" | "unknown";
118
+ /**
119
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
120
+ * Use the `Application` class imported from "@nativescript/core" instead:
121
+ * ```ts
122
+ * import { Application } from "@nativescript/core";
123
+ * Application.resetRootView()
124
+ * ```
125
+ */
126
+ export declare const resetRootView: any;
127
+ /**
128
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
129
+ * Use the `Application` class imported from "@nativescript/core" instead:
130
+ * ```ts
131
+ * import { Application } from "@nativescript/core";
132
+ * Application.resetRootView()
133
+ * ```
134
+ */
135
+ export declare const _resetRootView: any;
136
+ /**
137
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
138
+ * Use the `Application` class imported from "@nativescript/core" instead:
139
+ * ```ts
140
+ * import { Application } from "@nativescript/core";
141
+ * Application.run()
142
+ * ```
143
+ */
144
+ export declare const run: any;
145
+ /**
146
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
147
+ * Use the `Application` class imported from "@nativescript/core" instead:
148
+ * ```ts
149
+ * import { Application } from "@nativescript/core";
150
+ * Application.setAutoSystemAppearanceChanged()
151
+ * ```
152
+ */
153
+ export declare const setAutoSystemAppearanceChanged: any;
154
+ /**
155
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
156
+ * Use the `Application` class imported from "@nativescript/core" instead:
157
+ * ```ts
158
+ * import { Application } from "@nativescript/core";
159
+ * Application.setCssFileName()
160
+ * ```
161
+ */
162
+ export declare const setCssFileName: any;
163
+ /**
164
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
165
+ * Use the `Application` class imported from "@nativescript/core" instead:
166
+ * ```ts
167
+ * import { Application } from "@nativescript/core";
168
+ * Application.setMaxRefreshRate()
169
+ * ```
170
+ */
171
+ export declare const setMaxRefreshRate: any;
172
+ /**
173
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
174
+ * Use the `Application` class imported from "@nativescript/core" instead:
175
+ * ```ts
176
+ * import { Application } from "@nativescript/core";
177
+ * Application.setResources()
178
+ * ```
179
+ */
180
+ export declare const setResources: any;
181
+ /**
182
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
183
+ * Use the `Application` class imported from "@nativescript/core" instead:
184
+ * ```ts
185
+ * import { Application } from "@nativescript/core";
186
+ * Application.systemAppearance
187
+ * ```
188
+ */
189
+ export declare const systemAppearance: () => "light" | "dark";
190
+ /**
191
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
192
+ * Use the `Application` class imported from "@nativescript/core" instead:
193
+ * ```ts
194
+ * import { Application } from "@nativescript/core";
195
+ * Application.systemAppearanceChanged()
196
+ * ```
197
+ */
198
+ export declare const systemAppearanceChanged: any;
199
+ /**
200
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
201
+ * Use the `Application` class imported from "@nativescript/core" instead:
202
+ * ```ts
203
+ * import { Application } from "@nativescript/core";
204
+ * Application.discardedErrorEvent
205
+ * ```
206
+ */
207
+ export declare const discardedErrorEvent = "discardedError";
208
+ /**
209
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
210
+ * Use the `Application` class imported from "@nativescript/core" instead:
211
+ * ```ts
212
+ * import { Application } from "@nativescript/core";
213
+ * Application.uncaughtErrorEvent
214
+ * ```
215
+ */
216
+ export declare const uncaughtErrorEvent = "uncaughtError";
217
+ /**
218
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
219
+ * Use the `Application` class imported from "@nativescript/core" instead:
220
+ * ```ts
221
+ * import { Application } from "@nativescript/core";
222
+ * Application.displayedEvent
223
+ * ```
224
+ */
225
+ export declare const displayedEvent = "displayed";
226
+ /**
227
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
228
+ * Use the `Application` class imported from "@nativescript/core" instead:
229
+ * ```ts
230
+ * import { Application } from "@nativescript/core";
231
+ * Application.exitEvent
232
+ * ```
233
+ */
234
+ export declare const exitEvent = "exit";
235
+ /**
236
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
237
+ * Use the `Application` class imported from "@nativescript/core" instead:
238
+ * ```ts
239
+ * import { Application } from "@nativescript/core";
240
+ * Application.fontScaleChangedEvent
241
+ * ```
242
+ */
243
+ export declare const fontScaleChangedEvent = "fontScaleChanged";
244
+ /**
245
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
246
+ * Use the `Application` class imported from "@nativescript/core" instead:
247
+ * ```ts
248
+ * import { Application } from "@nativescript/core";
249
+ * Application.launchEvent
250
+ * ```
251
+ */
252
+ export declare const launchEvent = "launch";
253
+ /**
254
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
255
+ * Use the `Application` class imported from "@nativescript/core" instead:
256
+ * ```ts
257
+ * import { Application } from "@nativescript/core";
258
+ * Application.lowMemoryEvent
259
+ * ```
260
+ */
261
+ export declare const lowMemoryEvent = "lowMemory";
262
+ /**
263
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
264
+ * Use the `Application` class imported from "@nativescript/core" instead:
265
+ * ```ts
266
+ * import { Application } from "@nativescript/core";
267
+ * Application.resumeEvent
268
+ * ```
269
+ */
270
+ export declare const resumeEvent = "resume";
271
+ /**
272
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
273
+ * Use the `Application` class imported from "@nativescript/core" instead:
274
+ * ```ts
275
+ * import { Application } from "@nativescript/core";
276
+ * Application.orientationChangedEvent
277
+ * ```
278
+ */
279
+ export declare const orientationChangedEvent = "orientationChanged";
280
+ /**
281
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
282
+ * Use the `Application` class imported from "@nativescript/core" instead:
283
+ * ```ts
284
+ * import { Application } from "@nativescript/core";
285
+ * Application.suspendEvent
286
+ * ```
287
+ */
288
+ export declare const suspendEvent = "suspend";
289
+ /**
290
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
291
+ * Use the `Application` class imported from "@nativescript/core" instead:
292
+ * ```ts
293
+ * import { Application } from "@nativescript/core";
294
+ * Application.systemAppearanceChangedEvent
295
+ * ```
296
+ */
297
+ export declare const systemAppearanceChangedEvent = "systemAppearanceChanged";
298
+ /**
299
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
300
+ * Use the `Application` class imported from "@nativescript/core" instead:
301
+ * ```ts
302
+ * import { Application } from "@nativescript/core";
303
+ * Application.backgroundEvent
304
+ * ```
305
+ */
306
+ export declare const backgroundEvent = "background";
307
+ /**
308
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
309
+ * Use the `Application` class imported from "@nativescript/core" instead:
310
+ * ```ts
311
+ * import { Application } from "@nativescript/core";
312
+ * Application.foregroundEvent
313
+ * ```
314
+ */
315
+ export declare const foregroundEvent = "foreground";
316
+ /**
317
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
318
+ * Use the `Application` class imported from "@nativescript/core" instead:
319
+ * ```ts
320
+ * import { Application } from "@nativescript/core";
321
+ * Application.inBackground
322
+ * ```
323
+ */
324
+ export declare const inBackground: boolean;
325
+ /**
326
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
327
+ * Use the `Application` class imported from "@nativescript/core" instead:
328
+ * ```ts
329
+ * import { Application } from "@nativescript/core";
330
+ * Application.suspended
331
+ * ```
332
+ */
333
+ export declare const suspended: boolean;
334
+ /**
335
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
336
+ * Use the `Application` class imported from "@nativescript/core" instead:
337
+ * ```ts
338
+ * import { Application } from "@nativescript/core";
339
+ * Application.android
340
+ * ```
341
+ */
342
+ export declare const android: import("./application").AndroidApplication;
343
+ /**
344
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
345
+ * Use the `Application` class imported from "@nativescript/core" instead:
346
+ * ```ts
347
+ * import { Application } from "@nativescript/core";
348
+ * Application.ios
349
+ * ```
350
+ */
351
+ export declare const ios: import("./application").iOSApplication;