@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
@@ -0,0 +1,353 @@
1
+ import { Application } from './application';
2
+ /**
3
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
4
+ * Use the `Application` class imported from "@nativescript/core" instead:
5
+ * ```ts
6
+ * import { Application } from "@nativescript/core";
7
+ * Application.addCss()
8
+ * ```
9
+ */
10
+ export const addCss = Application.addCss.bind(Application);
11
+ /**
12
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
13
+ * Use the `Application` class imported from "@nativescript/core" instead:
14
+ * ```ts
15
+ * import { Application } from "@nativescript/core";
16
+ * Application.getCssFileName()
17
+ * ```
18
+ */
19
+ export const getCssFileName = Application.getCssFileName.bind(Application);
20
+ /**
21
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
22
+ * Use the `Application` class imported from "@nativescript/core" instead:
23
+ * ```ts
24
+ * import { Application } from "@nativescript/core";
25
+ * Application.getMainEntry()
26
+ * ```
27
+ */
28
+ export const getMainEntry = Application.getMainEntry.bind(Application);
29
+ /**
30
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
31
+ * Use the `Application` class imported from "@nativescript/core" instead:
32
+ * ```ts
33
+ * import { Application } from "@nativescript/core";
34
+ * Application.getNativeApplication()
35
+ * ```
36
+ */
37
+ export const getNativeApplication = Application.getNativeApplication.bind(Application);
38
+ /**
39
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
40
+ * Use the `Application` class imported from "@nativescript/core" instead:
41
+ * ```ts
42
+ * import { Application } from "@nativescript/core";
43
+ * Application.getResources()
44
+ * ```
45
+ */
46
+ export const getResources = Application.getResources.bind(Application);
47
+ /**
48
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
49
+ * Use the `Application` class imported from "@nativescript/core" instead:
50
+ * ```ts
51
+ * import { Application } from "@nativescript/core";
52
+ * Application.getRootView()
53
+ * ```
54
+ */
55
+ export const getRootView = Application.getRootView.bind(Application);
56
+ /**
57
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
58
+ * Use the `Application` class imported from "@nativescript/core" instead:
59
+ * ```ts
60
+ * import { Application } from "@nativescript/core";
61
+ * Application.hasLaunched()
62
+ * ```
63
+ */
64
+ export const hasLaunched = Application.hasLaunched.bind(Application);
65
+ /**
66
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
67
+ * Use the `Application` class imported from "@nativescript/core" instead:
68
+ * ```ts
69
+ * import { Application } from "@nativescript/core";
70
+ * Application.hasListeners()
71
+ * ```
72
+ */
73
+ export const hasListeners = Application.hasListeners.bind(Application);
74
+ /**
75
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
76
+ * Use the `Application` class imported from "@nativescript/core" instead:
77
+ * ```ts
78
+ * import { Application } from "@nativescript/core";
79
+ * Application.loadAppCss()
80
+ * ```
81
+ */
82
+ export const loadAppCss = Application.loadAppCss.bind(Application);
83
+ /**
84
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
85
+ * Use the `Application` class imported from "@nativescript/core" instead:
86
+ * ```ts
87
+ * import { Application } from "@nativescript/core";
88
+ * Application.notify()
89
+ * ```
90
+ */
91
+ export const notify = Application.notify.bind(Application);
92
+ /**
93
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
94
+ * Use the `Application` class imported from "@nativescript/core" instead:
95
+ * ```ts
96
+ * import { Application } from "@nativescript/core";
97
+ * Application.off()
98
+ * ```
99
+ */
100
+ export const off = Application.off.bind(Application);
101
+ /**
102
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
103
+ * Use the `Application` class imported from "@nativescript/core" instead:
104
+ * ```ts
105
+ * import { Application } from "@nativescript/core";
106
+ * Application.on()
107
+ * ```
108
+ */
109
+ export const on = Application.on.bind(Application);
110
+ /**
111
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
112
+ * Use the `Application` class imported from "@nativescript/core" instead:
113
+ * ```ts
114
+ * import { Application } from "@nativescript/core";
115
+ * Application.orientation
116
+ * ```
117
+ */
118
+ export const orientation = () => Application.orientation;
119
+ /**
120
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
121
+ * Use the `Application` class imported from "@nativescript/core" instead:
122
+ * ```ts
123
+ * import { Application } from "@nativescript/core";
124
+ * Application.resetRootView()
125
+ * ```
126
+ */
127
+ export const resetRootView = Application.resetRootView.bind(Application);
128
+ /**
129
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
130
+ * Use the `Application` class imported from "@nativescript/core" instead:
131
+ * ```ts
132
+ * import { Application } from "@nativescript/core";
133
+ * Application.resetRootView()
134
+ * ```
135
+ */
136
+ export const _resetRootView = Application.resetRootView.bind(Application);
137
+ /**
138
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
139
+ * Use the `Application` class imported from "@nativescript/core" instead:
140
+ * ```ts
141
+ * import { Application } from "@nativescript/core";
142
+ * Application.run()
143
+ * ```
144
+ */
145
+ export const run = Application.run.bind(Application);
146
+ /**
147
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
148
+ * Use the `Application` class imported from "@nativescript/core" instead:
149
+ * ```ts
150
+ * import { Application } from "@nativescript/core";
151
+ * Application.setAutoSystemAppearanceChanged()
152
+ * ```
153
+ */
154
+ export const setAutoSystemAppearanceChanged = Application.setAutoSystemAppearanceChanged.bind(Application);
155
+ /**
156
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
157
+ * Use the `Application` class imported from "@nativescript/core" instead:
158
+ * ```ts
159
+ * import { Application } from "@nativescript/core";
160
+ * Application.setCssFileName()
161
+ * ```
162
+ */
163
+ export const setCssFileName = Application.setCssFileName.bind(Application);
164
+ /**
165
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
166
+ * Use the `Application` class imported from "@nativescript/core" instead:
167
+ * ```ts
168
+ * import { Application } from "@nativescript/core";
169
+ * Application.setMaxRefreshRate()
170
+ * ```
171
+ */
172
+ export const setMaxRefreshRate = Application.setMaxRefreshRate.bind(Application);
173
+ /**
174
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
175
+ * Use the `Application` class imported from "@nativescript/core" instead:
176
+ * ```ts
177
+ * import { Application } from "@nativescript/core";
178
+ * Application.setResources()
179
+ * ```
180
+ */
181
+ export const setResources = Application.setResources.bind(Application);
182
+ /**
183
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
184
+ * Use the `Application` class imported from "@nativescript/core" instead:
185
+ * ```ts
186
+ * import { Application } from "@nativescript/core";
187
+ * Application.systemAppearance
188
+ * ```
189
+ */
190
+ export const systemAppearance = () => Application.systemAppearance;
191
+ /**
192
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
193
+ * Use the `Application` class imported from "@nativescript/core" instead:
194
+ * ```ts
195
+ * import { Application } from "@nativescript/core";
196
+ * Application.systemAppearanceChanged()
197
+ * ```
198
+ */
199
+ export const systemAppearanceChanged = Application.systemAppearanceChanged.bind(Application);
200
+ /**
201
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
202
+ * Use the `Application` class imported from "@nativescript/core" instead:
203
+ * ```ts
204
+ * import { Application } from "@nativescript/core";
205
+ * Application.discardedErrorEvent
206
+ * ```
207
+ */
208
+ export const discardedErrorEvent = Application.discardedErrorEvent;
209
+ /**
210
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
211
+ * Use the `Application` class imported from "@nativescript/core" instead:
212
+ * ```ts
213
+ * import { Application } from "@nativescript/core";
214
+ * Application.uncaughtErrorEvent
215
+ * ```
216
+ */
217
+ export const uncaughtErrorEvent = Application.uncaughtErrorEvent;
218
+ /**
219
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
220
+ * Use the `Application` class imported from "@nativescript/core" instead:
221
+ * ```ts
222
+ * import { Application } from "@nativescript/core";
223
+ * Application.displayedEvent
224
+ * ```
225
+ */
226
+ export const displayedEvent = Application.displayedEvent;
227
+ /**
228
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
229
+ * Use the `Application` class imported from "@nativescript/core" instead:
230
+ * ```ts
231
+ * import { Application } from "@nativescript/core";
232
+ * Application.exitEvent
233
+ * ```
234
+ */
235
+ export const exitEvent = Application.exitEvent;
236
+ /**
237
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
238
+ * Use the `Application` class imported from "@nativescript/core" instead:
239
+ * ```ts
240
+ * import { Application } from "@nativescript/core";
241
+ * Application.fontScaleChangedEvent
242
+ * ```
243
+ */
244
+ export const fontScaleChangedEvent = Application.fontScaleChangedEvent;
245
+ /**
246
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
247
+ * Use the `Application` class imported from "@nativescript/core" instead:
248
+ * ```ts
249
+ * import { Application } from "@nativescript/core";
250
+ * Application.launchEvent
251
+ * ```
252
+ */
253
+ export const launchEvent = Application.launchEvent;
254
+ /**
255
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
256
+ * Use the `Application` class imported from "@nativescript/core" instead:
257
+ * ```ts
258
+ * import { Application } from "@nativescript/core";
259
+ * Application.lowMemoryEvent
260
+ * ```
261
+ */
262
+ export const lowMemoryEvent = Application.lowMemoryEvent;
263
+ /**
264
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
265
+ * Use the `Application` class imported from "@nativescript/core" instead:
266
+ * ```ts
267
+ * import { Application } from "@nativescript/core";
268
+ * Application.resumeEvent
269
+ * ```
270
+ */
271
+ export const resumeEvent = Application.resumeEvent;
272
+ /**
273
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
274
+ * Use the `Application` class imported from "@nativescript/core" instead:
275
+ * ```ts
276
+ * import { Application } from "@nativescript/core";
277
+ * Application.orientationChangedEvent
278
+ * ```
279
+ */
280
+ export const orientationChangedEvent = Application.orientationChangedEvent;
281
+ /**
282
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
283
+ * Use the `Application` class imported from "@nativescript/core" instead:
284
+ * ```ts
285
+ * import { Application } from "@nativescript/core";
286
+ * Application.suspendEvent
287
+ * ```
288
+ */
289
+ export const suspendEvent = Application.suspendEvent;
290
+ /**
291
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
292
+ * Use the `Application` class imported from "@nativescript/core" instead:
293
+ * ```ts
294
+ * import { Application } from "@nativescript/core";
295
+ * Application.systemAppearanceChangedEvent
296
+ * ```
297
+ */
298
+ export const systemAppearanceChangedEvent = Application.systemAppearanceChangedEvent;
299
+ /**
300
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
301
+ * Use the `Application` class imported from "@nativescript/core" instead:
302
+ * ```ts
303
+ * import { Application } from "@nativescript/core";
304
+ * Application.backgroundEvent
305
+ * ```
306
+ */
307
+ export const backgroundEvent = Application.backgroundEvent;
308
+ /**
309
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
310
+ * Use the `Application` class imported from "@nativescript/core" instead:
311
+ * ```ts
312
+ * import { Application } from "@nativescript/core";
313
+ * Application.foregroundEvent
314
+ * ```
315
+ */
316
+ export const foregroundEvent = Application.foregroundEvent;
317
+ /**
318
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
319
+ * Use the `Application` class imported from "@nativescript/core" instead:
320
+ * ```ts
321
+ * import { Application } from "@nativescript/core";
322
+ * Application.inBackground
323
+ * ```
324
+ */
325
+ export const inBackground = Application.inBackground;
326
+ /**
327
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
328
+ * Use the `Application` class imported from "@nativescript/core" instead:
329
+ * ```ts
330
+ * import { Application } from "@nativescript/core";
331
+ * Application.suspended
332
+ * ```
333
+ */
334
+ export const suspended = Application.suspended;
335
+ /**
336
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
337
+ * Use the `Application` class imported from "@nativescript/core" instead:
338
+ * ```ts
339
+ * import { Application } from "@nativescript/core";
340
+ * Application.android
341
+ * ```
342
+ */
343
+ export const android = Application.android;
344
+ /**
345
+ * @deprecated Deep imports into the Application module are depreacted and will be removed in a future release.
346
+ * Use the `Application` class imported from "@nativescript/core" instead:
347
+ * ```ts
348
+ * import { Application } from "@nativescript/core";
349
+ * Application.ios
350
+ * ```
351
+ */
352
+ export const ios = Application.ios;
353
+ //# sourceMappingURL=application-shims.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application-shims.js","sourceRoot":"","sources":["../../../../packages/core/application/application-shims.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;AAE3D;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;AAE3E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;AAEvE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAW,CAAC,oBAAoB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;AAEvF;;;;;;;GAOG;AACH,MAAM,CAAC,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GAAG,WAAW,CAAC,cAAc,CAAC;AAEzD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC;AAEnD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,WAAW,CAAC,uBAAuB,CAAC;AAE3E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAC,YAAY,CAAC;AAErD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,WAAW,CAAC,4BAA4B,CAAC;AAErF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAC,eAAe,CAAC;AAE3D;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAC,eAAe,CAAC;AAE3D;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAC,YAAY,CAAC;AAErD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;AAE/C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;AAE3C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,WAAW,CAAC,GAAG,CAAC"}
@@ -0,0 +1,75 @@
1
+ import { View } from '../ui';
2
+ import { NavigationEntry } from '../ui/frame/frame-common';
3
+ import type { AndroidApplication as IAndroidApplication } from './application';
4
+ import { ApplicationCommon } from './application-common';
5
+ export declare class AndroidApplication extends ApplicationCommon implements IAndroidApplication {
6
+ static readonly activityCreatedEvent = "activityCreated";
7
+ static readonly activityDestroyedEvent = "activityDestroyed";
8
+ static readonly activityStartedEvent = "activityStarted";
9
+ static readonly activityPausedEvent = "activityPaused";
10
+ static readonly activityResumedEvent = "activityResumed";
11
+ static readonly activityStoppedEvent = "activityStopped";
12
+ static readonly saveActivityStateEvent = "saveActivityState";
13
+ static readonly activityResultEvent = "activityResult";
14
+ static readonly activityBackPressedEvent = "activityBackPressed";
15
+ static readonly activityNewIntentEvent = "activityNewIntent";
16
+ static readonly activityRequestPermissionsEvent = "activityRequestPermissions";
17
+ readonly activityCreatedEvent = "activityCreated";
18
+ readonly activityDestroyedEvent = "activityDestroyed";
19
+ readonly activityStartedEvent = "activityStarted";
20
+ readonly activityPausedEvent = "activityPaused";
21
+ readonly activityResumedEvent = "activityResumed";
22
+ readonly activityStoppedEvent = "activityStopped";
23
+ readonly saveActivityStateEvent = "saveActivityState";
24
+ readonly activityResultEvent = "activityResult";
25
+ readonly activityBackPressedEvent = "activityBackPressed";
26
+ readonly activityNewIntentEvent = "activityNewIntent";
27
+ readonly activityRequestPermissionsEvent = "activityRequestPermissions";
28
+ private _nativeApp;
29
+ private lifecycleCallbacks;
30
+ private componentCallbacks;
31
+ constructor();
32
+ init(nativeApp: android.app.Application): void;
33
+ private _registeredReceivers;
34
+ private _pendingReceiverRegistrations;
35
+ private _registerPendingReceivers;
36
+ onConfigurationChanged(configuration: android.content.res.Configuration): void;
37
+ getNativeApplication(): globalAndroid.app.Application;
38
+ get nativeApp(): android.app.Application;
39
+ run(entry?: string | NavigationEntry): void;
40
+ private _startActivity;
41
+ private _foregroundActivity;
42
+ get startActivity(): androidx.appcompat.app.AppCompatActivity;
43
+ get foregroundActivity(): androidx.appcompat.app.AppCompatActivity;
44
+ setStartActivity(value: androidx.appcompat.app.AppCompatActivity): void;
45
+ setForegroundActivity(value: androidx.appcompat.app.AppCompatActivity): void;
46
+ /**
47
+ * @deprecated Use `Application.suspended` instead.
48
+ */
49
+ get paused(): boolean;
50
+ /**
51
+ * @deprecated Use `Application.inBackground` instead.
52
+ */
53
+ get backgrounded(): boolean;
54
+ /**
55
+ * @deprecated Use `Utils.android.getApplicationContext()` instead.
56
+ */
57
+ get context(): globalAndroid.content.Context;
58
+ /**
59
+ * @deprecated Use `Utils.android.getPackageName()` instead.
60
+ */
61
+ get packageName(): string;
62
+ registerBroadcastReceiver(intentFilter: string, onReceiveCallback: (context: android.content.Context, intent: android.content.Intent) => void): void;
63
+ unregisterBroadcastReceiver(intentFilter: string): void;
64
+ getRegisteredBroadcastReceiver(intentFilter: string): android.content.BroadcastReceiver | undefined;
65
+ getRootView(): View;
66
+ resetRootView(entry?: NavigationEntry | string): void;
67
+ getSystemAppearance(): 'light' | 'dark';
68
+ private getSystemAppearanceValue;
69
+ getOrientation(): "portrait" | "landscape" | "unknown";
70
+ private getOrientationValue;
71
+ get android(): this;
72
+ }
73
+ export * from './application-common';
74
+ export declare const Application: AndroidApplication;
75
+ export declare const iOSApplication: any;