@nativescript/core 8.5.3 → 8.5.4-alpha.0
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.
- package/accessibility/accessibility-css-helper.js +5 -6
- package/accessibility/accessibility-css-helper.js.map +1 -1
- package/accessibility/accessibility-service.android.js +24 -23
- package/accessibility/accessibility-service.android.js.map +1 -1
- package/accessibility/accessibility-service.ios.js +1 -1
- package/accessibility/accessibility-service.ios.js.map +1 -1
- package/accessibility/font-scale.android.js +1 -1
- package/accessibility/font-scale.android.js.map +1 -1
- package/accessibility/font-scale.ios.js +1 -1
- package/accessibility/font-scale.ios.js.map +1 -1
- package/accessibility/index.android.js +1 -1
- package/accessibility/index.android.js.map +1 -1
- package/accessibility/index.ios.js +1 -1
- package/accessibility/index.ios.js.map +1 -1
- package/application/application-common.d.ts +197 -41
- package/application/application-common.js +411 -151
- package/application/application-common.js.map +1 -1
- package/application/application-interfaces.d.ts +116 -28
- package/application/application-shims.d.ts +351 -0
- package/application/application-shims.js +353 -0
- package/application/application-shims.js.map +1 -0
- package/application/application.android.d.ts +64 -0
- package/application/application.android.js +434 -0
- package/application/application.android.js.map +1 -0
- package/application/application.d.ts +60 -0
- package/application/application.ios.d.ts +72 -0
- package/application/application.ios.js +375 -0
- package/application/application.ios.js.map +1 -0
- package/application/index.android.d.ts +2 -77
- package/application/index.android.js +2 -455
- package/application/index.android.js.map +1 -1
- package/application/index.d.ts +2 -759
- package/application/index.ios.d.ts +2 -65
- package/application/index.ios.js +2 -516
- package/application/index.ios.js.map +1 -1
- package/application-settings/index.android.js +2 -2
- package/application-settings/index.android.js.map +1 -1
- package/connectivity/index.android.js +4 -5
- package/connectivity/index.android.js.map +1 -1
- package/css/LICENSE +9 -0
- package/css/Readme.md +278 -0
- package/css-value/LICENSE +9 -0
- package/css-value/Readme.md +45 -0
- package/fetch/LICENSE +20 -0
- package/fetch/README.md +1 -0
- package/file-system/file-system-access.android.d.ts +18 -0
- package/file-system/file-system-access.android.js +205 -3
- package/file-system/file-system-access.android.js.map +1 -1
- package/file-system/file-system-access.d.ts +67 -0
- package/file-system/file-system-access.ios.d.ts +9 -0
- package/file-system/file-system-access.ios.js +106 -0
- package/file-system/file-system-access.ios.js.map +1 -1
- package/file-system/index.d.ts +60 -0
- package/file-system/index.js +197 -3
- package/file-system/index.js.map +1 -1
- package/image-source/index.android.js +2 -2
- package/image-source/index.android.js.map +1 -1
- package/index.d.ts +22 -139
- package/index.js +15 -156
- package/index.js.map +1 -1
- package/js-libs/easysax/LICENSE +20 -0
- package/js-libs/easysax/README.md +46 -0
- package/module-name-resolver/index.js +5 -5
- package/module-name-resolver/index.js.map +1 -1
- package/module-name-resolver/non-bundle-workflow-compat.js +2 -2
- package/module-name-resolver/non-bundle-workflow-compat.js.map +1 -1
- package/package.json +1 -1
- package/platform/index.android.js +5 -5
- package/platform/index.android.js.map +1 -1
- package/platforms/README.md +1 -0
- package/platforms/android/widgets-release.aar +0 -0
- package/platforms/ios/TNSWidgets.xcframework/Info.plist +7 -7
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +1 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +1 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +4 -4
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +1 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +4 -4
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +1 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +14 -3
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/ui/action-bar/index.android.js +5 -5
- package/ui/action-bar/index.android.js.map +1 -1
- package/ui/core/view/index.android.js +2 -2
- package/ui/core/view/index.android.js.map +1 -1
- package/ui/core/view/view-helper/index.ios.js +5 -6
- package/ui/core/view/view-helper/index.ios.js.map +1 -1
- package/ui/dialogs/index.ios.js +9 -3
- package/ui/dialogs/index.ios.js.map +1 -1
- package/ui/frame/activity.android.js +2 -2
- package/ui/frame/activity.android.js.map +1 -1
- package/ui/frame/index.android.d.ts +1 -1
- package/ui/frame/index.android.js +45 -82
- package/ui/frame/index.android.js.map +1 -1
- package/ui/frame/index.ios.js +2 -2
- package/ui/frame/index.ios.js.map +1 -1
- package/ui/styling/background.android.js +3 -5
- package/ui/styling/background.android.js.map +1 -1
- package/ui/styling/style-scope.js +5 -5
- package/ui/styling/style-scope.js.map +1 -1
- package/ui/tab-view/index.android.js +2 -2
- package/ui/tab-view/index.android.js.map +1 -1
- package/ui/transition/shared-transition-helper.ios.js +19 -19
- package/ui/transition/shared-transition-helper.ios.js.map +1 -1
- package/ui/transition/shared-transition.js +1 -2
- package/ui/transition/shared-transition.js.map +1 -1
- package/utils/android/index.d.ts +21 -0
- package/utils/android/index.js +157 -0
- package/utils/android/index.js.map +1 -0
- package/utils/index.android.d.ts +8 -3
- package/utils/index.android.js +15 -10
- package/utils/index.android.js.map +1 -1
- package/utils/index.d.ts +7 -7
- package/utils/index.ios.d.ts +8 -3
- package/utils/index.ios.js +13 -8
- package/utils/index.ios.js.map +1 -1
- package/utils/ios/index.d.ts +36 -0
- package/utils/ios/index.js +276 -0
- package/utils/ios/index.js.map +1 -0
- package/utils/layout-helper/index.android.js +3 -3
- package/utils/layout-helper/index.android.js.map +1 -1
- package/utils/mainthread-helper.android.js +2 -2
- package/utils/mainthread-helper.android.js.map +1 -1
- package/utils/native-helper.android.d.ts +8 -23
- package/utils/native-helper.android.js +10 -169
- package/utils/native-helper.android.js.map +1 -1
- package/utils/native-helper.d.ts +272 -255
- package/utils/native-helper.ios.d.ts +8 -38
- package/utils/native-helper.ios.js +10 -295
- package/utils/native-helper.ios.js.map +1 -1
- package/utils/platform-check.d.ts +4 -0
- package/utils/platform-check.js +21 -0
- 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,MAAM,YAAY,GAAG,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;AAEvE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;AAErE;;;;;;;GAOG;AACH,MAAM,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G;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,64 @@
|
|
|
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
|
+
readonly activityCreatedEvent = "activityCreated";
|
|
7
|
+
readonly activityDestroyedEvent = "activityDestroyed";
|
|
8
|
+
readonly activityStartedEvent = "activityStarted";
|
|
9
|
+
readonly activityPausedEvent = "activityPaused";
|
|
10
|
+
readonly activityResumedEvent = "activityResumed";
|
|
11
|
+
readonly activityStoppedEvent = "activityStopped";
|
|
12
|
+
readonly saveActivityStateEvent = "saveActivityState";
|
|
13
|
+
readonly activityResultEvent = "activityResult";
|
|
14
|
+
readonly activityBackPressedEvent = "activityBackPressed";
|
|
15
|
+
readonly activityNewIntentEvent = "activityNewIntent";
|
|
16
|
+
readonly activityRequestPermissionsEvent = "activityRequestPermissions";
|
|
17
|
+
private _nativeApp;
|
|
18
|
+
private lifecycleCallbacks;
|
|
19
|
+
private componentCallbacks;
|
|
20
|
+
constructor();
|
|
21
|
+
init(nativeApp: android.app.Application): void;
|
|
22
|
+
private _registeredReceivers;
|
|
23
|
+
private _pendingReceiverRegistrations;
|
|
24
|
+
private _registerPendingReceivers;
|
|
25
|
+
onConfigurationChanged(configuration: android.content.res.Configuration): void;
|
|
26
|
+
getNativeApplication(): globalAndroid.app.Application;
|
|
27
|
+
get nativeApp(): android.app.Application;
|
|
28
|
+
run(entry?: string | NavigationEntry): void;
|
|
29
|
+
private _startActivity;
|
|
30
|
+
private _foregroundActivity;
|
|
31
|
+
get startActivity(): androidx.appcompat.app.AppCompatActivity;
|
|
32
|
+
get foregroundActivity(): androidx.appcompat.app.AppCompatActivity;
|
|
33
|
+
setStartActivity(value: androidx.appcompat.app.AppCompatActivity): void;
|
|
34
|
+
setForegroundActivity(value: androidx.appcompat.app.AppCompatActivity): void;
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated Use `Application.suspended` instead.
|
|
37
|
+
*/
|
|
38
|
+
get paused(): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated Use `Application.inBackground` instead.
|
|
41
|
+
*/
|
|
42
|
+
get backgrounded(): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated Use `Utils.android.getApplicationContext()` instead.
|
|
45
|
+
*/
|
|
46
|
+
get context(): globalAndroid.content.Context;
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated Use `Utils.android.getPackageName()` instead.
|
|
49
|
+
*/
|
|
50
|
+
get packageName(): string;
|
|
51
|
+
registerBroadcastReceiver(intentFilter: string, onReceiveCallback: (context: android.content.Context, intent: android.content.Intent) => void): void;
|
|
52
|
+
unregisterBroadcastReceiver(intentFilter: string): void;
|
|
53
|
+
getRegisteredBroadcastReceiver(intentFilter: string): android.content.BroadcastReceiver | undefined;
|
|
54
|
+
getRootView(): View;
|
|
55
|
+
resetRootView(entry?: NavigationEntry | string): void;
|
|
56
|
+
getSystemAppearance(): 'light' | 'dark';
|
|
57
|
+
private getSystemAppearanceValue;
|
|
58
|
+
getOrientation(): "portrait" | "landscape" | "unknown";
|
|
59
|
+
private getOrientationValue;
|
|
60
|
+
get android(): this;
|
|
61
|
+
}
|
|
62
|
+
export * from './application-common';
|
|
63
|
+
export declare const Application: AndroidApplication;
|
|
64
|
+
export declare const iOSApplication: any;
|