@polyvharmony/live-scenes-foundation 1.3.0 → 1.3.2-rc.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 (60) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/ResourceTable.txt +17 -17
  3. package/oh-package.json5 +1 -1
  4. package/package.json +1 -1
  5. package/src/main/ets/common/PLVBasicDataSource.d.ets +19 -19
  6. package/src/main/ets/common/PLVBasicDataSource.js +75 -75
  7. package/src/main/ets/common/PLVCallback.d.ets +20 -19
  8. package/src/main/ets/common/PLVCallback.js +78 -78
  9. package/src/main/ets/common/PLVCommonEnums.js +16 -16
  10. package/src/main/ets/common/PLVDeviceUtils.d.ets +4 -4
  11. package/src/main/ets/common/PLVDeviceUtils.js +9 -9
  12. package/src/main/ets/common/PLVHashMap.d.ets +2 -2
  13. package/src/main/ets/common/PLVHashMap.js +2 -2
  14. package/src/main/ets/common/PLVJSONUtils.d.ets +13 -13
  15. package/src/main/ets/common/PLVJSONUtils.js +46 -46
  16. package/src/main/ets/common/PLVNetUtils.d.ets +4 -4
  17. package/src/main/ets/common/PLVNetUtils.js +24 -24
  18. package/src/main/ets/common/PLVPreferencesUtils.d.ets +9 -9
  19. package/src/main/ets/common/PLVPreferencesUtils.js +16 -16
  20. package/src/main/ets/common/PLVScheduledTask.d.ets +1 -1
  21. package/src/main/ets/common/PLVScheduledTask.js +9 -9
  22. package/src/main/ets/common/PLVSimpleBuffer.d.ets +3 -3
  23. package/src/main/ets/common/PLVSimpleBuffer.js +8 -8
  24. package/src/main/ets/common/PLVSparseArray.d.ets +6 -6
  25. package/src/main/ets/common/PLVSparseArray.js +21 -21
  26. package/src/main/ets/common/PLVTextUtils.d.ets +8 -8
  27. package/src/main/ets/common/PLVTextUtils.js +44 -44
  28. package/src/main/ets/common/PLVTimeUtils.d.ets +1 -1
  29. package/src/main/ets/common/PLVTimeUtils.js +8 -8
  30. package/src/main/ets/common/PLVToastUtils.d.ets +4 -4
  31. package/src/main/ets/common/PLVToastUtils.js +7 -7
  32. package/src/main/ets/common/PLVUACreator.d.ets +1 -1
  33. package/src/main/ets/common/PLVUACreator.js +6 -6
  34. package/src/main/ets/common/PLVUtils.d.ets +25 -24
  35. package/src/main/ets/common/PLVUtils.js +141 -141
  36. package/src/main/ets/common/PLVWebUtils.d.ets +4 -4
  37. package/src/main/ets/common/PLVWebUtils.js +46 -47
  38. package/src/main/ets/common/ui/PLVNodeController.d.ets +11 -9
  39. package/src/main/ets/common/ui/PLVNodeController.js +48 -47
  40. package/src/main/ets/modules/log/PLVLogger.d.ets +11 -11
  41. package/src/main/ets/modules/log/PLVLogger.js +36 -36
  42. package/src/main/ets/modules/log/PLVXLogFilePrinter.d.ets +2 -2
  43. package/src/main/ets/modules/log/PLVXLogFilePrinter.js +14 -12
  44. package/src/main/ets/modules/net/PLVHttpData.d.ets +1 -1
  45. package/src/main/ets/modules/net/PLVHttpData.js +3 -3
  46. package/src/main/ets/modules/net/PLVHttpError.d.ets +2 -2
  47. package/src/main/ets/modules/net/PLVHttpError.js +5 -5
  48. package/src/main/ets/modules/net/PLVHttpRequest.d.ets +10 -9
  49. package/src/main/ets/modules/net/PLVHttpRequest.js +89 -88
  50. package/src/main/ets/modules/net/PLVRequestSetting.d.ets +3 -3
  51. package/src/main/ets/modules/net/PLVRequestSetting.js +14 -14
  52. package/src/main/ets/modules/socket/PLVSocketIO.d.ets +20 -20
  53. package/src/main/ets/modules/socket/PLVSocketIO.js +61 -61
  54. package/src/main/ets/modules/web/PLVFailureLayout.js +17 -18
  55. package/src/main/ets/modules/web/PLVLoadingLayout.js +12 -13
  56. package/src/main/ets/modules/web/PLVNewWindowLayout.js +17 -18
  57. package/src/main/ets/modules/web/PLVSimpleWeb.js +75 -79
  58. package/src/main/ets/modules/web/PLVWebController.d.ets +39 -39
  59. package/src/main/ets/modules/web/PLVWebController.js +106 -106
  60. package/src/main/module.json +1 -1
@@ -1,40 +1,39 @@
1
1
  if (!("finalizeConstruction" in ViewPU.prototype)) {
2
- Reflect.set(ViewPU.prototype, "finalizeConstruction", () => {
3
- });
2
+ Reflect.set(ViewPU.prototype, "finalizeConstruction", () => { });
4
3
  }
5
4
  import PLVCommonConstants from '../../common/PLVCommonConstants';
6
5
  export class PLVLoadingLayout extends ViewPU {
7
- constructor(parent, params, __localStorage, elmtId = -1, paramsLambda = undefined, extraInfo) {
8
- super(parent, __localStorage, elmtId, extraInfo);
9
- if (typeof paramsLambda === "function") {
10
- this.paramsGenerator_ = paramsLambda;
6
+ constructor(x18, y18, z18, a19 = -1, b19 = undefined, c19) {
7
+ super(x18, z18, a19, c19);
8
+ if (typeof b19 === "function") {
9
+ this.paramsGenerator_ = b19;
11
10
  }
12
- this.setInitiallyProvidedValue(params);
11
+ this.setInitiallyProvidedValue(y18);
13
12
  this.finalizeConstruction();
14
13
  }
15
- setInitiallyProvidedValue(params) {
14
+ setInitiallyProvidedValue(w18) {
16
15
  }
17
- updateStateVars(params) {
16
+ updateStateVars(v18) {
18
17
  }
19
- purgeVariableDependenciesOnElmtId(rmElmtId) {
18
+ purgeVariableDependenciesOnElmtId(u18) {
20
19
  }
21
20
  aboutToBeDeleted() {
22
21
  SubscriberManager.Get().delete(this.id__());
23
22
  this.aboutToBeDeletedInternal();
24
23
  }
25
24
  initialRender() {
26
- this.observeComponentCreation2((elmtId, isInitialRender) => {
25
+ this.observeComponentCreation2((s18, t18) => {
27
26
  Column.create();
28
27
  Column.height(PLVCommonConstants.FULL_PERCENT);
29
28
  Column.width(PLVCommonConstants.FULL_PERCENT);
30
29
  }, Column);
31
- this.observeComponentCreation2((elmtId, isInitialRender) => {
30
+ this.observeComponentCreation2((q18, r18) => {
32
31
  Column.create();
33
32
  Column.margin({ top: { "id": -1, "type": 10002, params: ["app.float.plv_web_loading_img_margin"], "bundleName": "__harDefaultBundleName__", "moduleName": "__harDefaultModuleName__" } });
34
33
  Column.width({ "id": -1, "type": 10002, params: ["app.float.plv_web_loading_img_size"], "bundleName": "__harDefaultBundleName__", "moduleName": "__harDefaultModuleName__" });
35
34
  Column.height({ "id": -1, "type": 10002, params: ["app.float.plv_web_loading_img_size"], "bundleName": "__harDefaultBundleName__", "moduleName": "__harDefaultModuleName__" });
36
35
  }, Column);
37
- this.observeComponentCreation2((elmtId, isInitialRender) => {
36
+ this.observeComponentCreation2((o18, p18) => {
38
37
  LoadingProgress.create();
39
38
  }, LoadingProgress);
40
39
  Column.pop();
@@ -1,47 +1,46 @@
1
1
  if (!("finalizeConstruction" in ViewPU.prototype)) {
2
- Reflect.set(ViewPU.prototype, "finalizeConstruction", () => {
3
- });
2
+ Reflect.set(ViewPU.prototype, "finalizeConstruction", () => { });
4
3
  }
5
4
  import webview from '@ohos.web.webview';
6
5
  import PLVLogger from '../log/PLVLogger';
7
6
  const TAG = "[PLVNewWindowLayout]";
8
7
  export class PLVNewWindowLayout extends ViewPU {
9
- constructor(parent, params, __localStorage, elmtId = -1, paramsLambda = undefined, extraInfo) {
10
- super(parent, __localStorage, elmtId, extraInfo);
11
- if (typeof paramsLambda === "function") {
12
- this.paramsGenerator_ = paramsLambda;
8
+ constructor(l19, m19, n19, o19 = -1, p19 = undefined, q19) {
9
+ super(l19, n19, o19, q19);
10
+ if (typeof p19 === "function") {
11
+ this.paramsGenerator_ = p19;
13
12
  }
14
13
  this.controller = undefined;
15
14
  this.webviewController = new webview.WebviewController();
16
- this.setInitiallyProvidedValue(params);
15
+ this.setInitiallyProvidedValue(m19);
17
16
  this.finalizeConstruction();
18
17
  }
19
- setInitiallyProvidedValue(params) {
20
- if (params.controller !== undefined) {
21
- this.controller = params.controller;
18
+ setInitiallyProvidedValue(k19) {
19
+ if (k19.controller !== undefined) {
20
+ this.controller = k19.controller;
22
21
  }
23
- if (params.webviewController !== undefined) {
24
- this.webviewController = params.webviewController;
22
+ if (k19.webviewController !== undefined) {
23
+ this.webviewController = k19.webviewController;
25
24
  }
26
25
  }
27
- updateStateVars(params) {
26
+ updateStateVars(j19) {
28
27
  }
29
- purgeVariableDependenciesOnElmtId(rmElmtId) {
28
+ purgeVariableDependenciesOnElmtId(i19) {
30
29
  }
31
30
  aboutToBeDeleted() {
32
31
  SubscriberManager.Get().delete(this.id__());
33
32
  this.aboutToBeDeletedInternal();
34
33
  }
35
- setController(ctr) {
36
- this.controller = ctr;
34
+ setController(h19) {
35
+ this.controller = h19;
37
36
  }
38
37
  aboutToAppear() {
39
38
  }
40
39
  initialRender() {
41
- this.observeComponentCreation2((elmtId, isInitialRender) => {
40
+ this.observeComponentCreation2((f19, g19) => {
42
41
  Column.create();
43
42
  }, Column);
44
- this.observeComponentCreation2((elmtId, isInitialRender) => {
43
+ this.observeComponentCreation2((d19, e19) => {
45
44
  Web.create({ src: "", controller: this.webviewController });
46
45
  Web.javaScriptAccess(true);
47
46
  Web.zoomAccess(true);
@@ -1,6 +1,5 @@
1
1
  if (!("finalizeConstruction" in ViewPU.prototype)) {
2
- Reflect.set(ViewPU.prototype, "finalizeConstruction", () => {
3
- });
2
+ Reflect.set(ViewPU.prototype, "finalizeConstruction", () => { });
4
3
  }
5
4
  import PLVCommonConstants from '../../common/PLVCommonConstants';
6
5
  import { PLVFullScreenStatus, PLVWebpageStatus } from '../../common/PLVCommonEnums';
@@ -11,62 +10,62 @@ import { PLVNewWindowLayout } from './PLVNewWindowLayout';
11
10
  import { PLVWebController } from './PLVWebController';
12
11
  export const TAG = "[PLVSimpleWeb]";
13
12
  export class PLVSimpleWeb extends ViewPU {
14
- constructor(parent, params, __localStorage, elmtId = -1, paramsLambda = undefined, extraInfo) {
15
- super(parent, __localStorage, elmtId, extraInfo);
16
- if (typeof paramsLambda === "function") {
17
- this.paramsGenerator_ = paramsLambda;
13
+ constructor(b21, c21, d21, e21 = -1, f21 = undefined, g21) {
14
+ super(b21, d21, e21, g21);
15
+ if (typeof f21 === "function") {
16
+ this.paramsGenerator_ = f21;
18
17
  }
19
- this.a2 = new ObservedPropertySimplePU(PLVWebpageStatus.INIT, this, "webStatus");
18
+ this.__webStatus = new ObservedPropertySimplePU(PLVWebpageStatus.INIT, this, "webStatus");
20
19
  this.controller = new PLVWebController();
21
20
  this.src = undefined;
22
21
  this.incognitoMode = undefined;
23
22
  this.showLoading = undefined;
24
- this.setInitiallyProvidedValue(params);
23
+ this.setInitiallyProvidedValue(c21);
25
24
  this.finalizeConstruction();
26
25
  }
27
- setInitiallyProvidedValue(params) {
28
- if (params.webStatus !== undefined) {
29
- this.webStatus = params.webStatus;
26
+ setInitiallyProvidedValue(a21) {
27
+ if (a21.webStatus !== undefined) {
28
+ this.webStatus = a21.webStatus;
30
29
  }
31
- if (params.controller !== undefined) {
32
- this.controller = params.controller;
30
+ if (a21.controller !== undefined) {
31
+ this.controller = a21.controller;
33
32
  }
34
- if (params.src !== undefined) {
35
- this.src = params.src;
33
+ if (a21.src !== undefined) {
34
+ this.src = a21.src;
36
35
  }
37
- if (params.incognitoMode !== undefined) {
38
- this.incognitoMode = params.incognitoMode;
36
+ if (a21.incognitoMode !== undefined) {
37
+ this.incognitoMode = a21.incognitoMode;
39
38
  }
40
- if (params.showLoading !== undefined) {
41
- this.showLoading = params.showLoading;
39
+ if (a21.showLoading !== undefined) {
40
+ this.showLoading = a21.showLoading;
42
41
  }
43
42
  }
44
- updateStateVars(params) {
43
+ updateStateVars(z20) {
45
44
  }
46
- purgeVariableDependenciesOnElmtId(rmElmtId) {
47
- this.a2.purgeDependencyOnElmtId(rmElmtId);
45
+ purgeVariableDependenciesOnElmtId(y20) {
46
+ this.__webStatus.purgeDependencyOnElmtId(y20);
48
47
  }
49
48
  aboutToBeDeleted() {
50
- this.a2.aboutToBeDeleted();
49
+ this.__webStatus.aboutToBeDeleted();
51
50
  SubscriberManager.Get().delete(this.id__());
52
51
  this.aboutToBeDeletedInternal();
53
52
  }
54
53
  get webStatus() {
55
- return this.a2.get();
54
+ return this.__webStatus.get();
56
55
  }
57
- set webStatus(newValue) {
58
- this.a2.set(newValue);
56
+ set webStatus(x20) {
57
+ this.__webStatus.set(x20);
59
58
  }
60
59
  aboutToAppear() {
61
60
  PLVLogger.info(TAG, `load url: ${this.src}`);
62
61
  }
63
62
  initialRender() {
64
- this.observeComponentCreation2((elmtId, isInitialRender) => {
63
+ this.observeComponentCreation2((v20, w20) => {
65
64
  Stack.create();
66
65
  Stack.width(PLVCommonConstants.FULL_PERCENT);
67
66
  Stack.height(PLVCommonConstants.FULL_PERCENT);
68
67
  }, Stack);
69
- this.observeComponentCreation2((elmtId, isInitialRender) => {
68
+ this.observeComponentCreation2((h20, i20) => {
70
69
  Web.create({
71
70
  controller: this.controller,
72
71
  src: this.src,
@@ -91,45 +90,44 @@ export class PLVSimpleWeb extends ViewPU {
91
90
  this.controller.handleControllerAttached();
92
91
  this.controller._onControllerAttached?.();
93
92
  });
94
- Web.onInterceptRequest((event) => {
93
+ Web.onInterceptRequest((u20) => {
95
94
  if (this.controller._onInterceptRequest) {
96
- return this.controller._onInterceptRequest?.(event.request);
95
+ return this.controller._onInterceptRequest?.(u20.request);
97
96
  }
98
97
  return null;
99
98
  });
100
- Web.onLoadIntercept((event) => {
101
- let result = false;
99
+ Web.onLoadIntercept((s20) => {
100
+ let t20 = false;
102
101
  if (this.controller._onLoadIntercept) {
103
- result = this.controller._onLoadIntercept?.(event.data);
102
+ t20 = this.controller._onLoadIntercept?.(s20.data);
104
103
  }
105
- result = result || this.controller.handleIsLoadIntercept(event.data);
106
- return result;
104
+ t20 = t20 || this.controller.handleIsLoadIntercept(s20.data);
105
+ return t20;
107
106
  });
108
- Web.onWindowNew((event) => {
109
- if (this.controller._onWindowNew?.(event)) {
107
+ Web.onWindowNew((o20) => {
108
+ if (this.controller._onWindowNew?.(o20)) {
110
109
  return;
111
110
  }
112
- this.controller.handleWindowNew(event, (j8) => {
111
+ this.controller.handleWindowNew(o20, (p20) => {
113
112
  return new CustomDialogController({
114
113
  builder: () => {
115
- let jsDialog = new PLVNewWindowLayout(this, { webviewController: j8 }, undefined, -1, () => {
116
- }, { page: "foundation/src/main/ets/modules/web/PLVSimpleWeb.ets", line: 72, b2: 24 });
117
- jsDialog.setController();
118
- ViewPU.create(jsDialog);
119
- let paramsLambda = () => {
114
+ let q20 = new PLVNewWindowLayout(this, { webviewController: p20 }, undefined, -1, () => { }, { page: "foundation/src/main/ets/modules/web/PLVSimpleWeb.ets", line: 72, col: 24 });
115
+ q20.setController();
116
+ ViewPU.create(q20);
117
+ let r20 = () => {
120
118
  return {
121
- webviewController: j8
119
+ webviewController: p20
122
120
  };
123
121
  };
124
- jsDialog.paramsGenerator_ = paramsLambda;
122
+ q20.paramsGenerator_ = r20;
125
123
  },
126
124
  cornerRadius: 0
127
125
  }, this);
128
126
  });
129
127
  });
130
- Web.onShowFileSelector((event) => {
128
+ Web.onShowFileSelector((n20) => {
131
129
  if (this.controller._onShowFileSelector) {
132
- return this.controller._onShowFileSelector?.(event);
130
+ return this.controller._onShowFileSelector?.(n20);
133
131
  }
134
132
  return true;
135
133
  });
@@ -149,50 +147,49 @@ export class PLVSimpleWeb extends ViewPU {
149
147
  }
150
148
  this.controller.handleFullScreenEnter();
151
149
  });
152
- Web.onProgressChange((event) => {
153
- PLVLogger.info(TAG, 'onProgressChange:' + event?.newProgress);
154
- this.controller._onProgressChange?.(event);
150
+ Web.onProgressChange((m20) => {
151
+ PLVLogger.info(TAG, 'onProgressChange:' + m20?.newProgress);
152
+ this.controller._onProgressChange?.(m20);
155
153
  });
156
- Web.onPageBegin((event) => {
154
+ Web.onPageBegin((l20) => {
157
155
  PLVLogger.info(TAG, 'onPageBegin');
158
- this.controller._onPageBegin?.(event);
156
+ this.controller._onPageBegin?.(l20);
159
157
  });
160
- Web.onErrorReceive((event) => {
161
- PLVLogger.info(TAG, "onErrorReceive:" + `{info:${event?.error.getErrorInfo()},code:${event?.error.getErrorCode()}}`);
158
+ Web.onErrorReceive((k20) => {
159
+ PLVLogger.info(TAG, "onErrorReceive:" + `{info:${k20?.error.getErrorInfo()},code:${k20?.error.getErrorCode()}}`);
162
160
  this.controller.handleErrorReceive();
163
161
  this.webStatus = PLVWebpageStatus.FINISHED;
164
- this.controller._onErrorReceive?.(event);
162
+ this.controller._onErrorReceive?.(k20);
165
163
  });
166
- Web.onPageEnd((event) => {
164
+ Web.onPageEnd((j20) => {
167
165
  PLVLogger.info(TAG, 'onPageEnd');
168
- this.controller.handlePageEnd(event);
166
+ this.controller.handlePageEnd(j20);
169
167
  if (this.webStatus != PLVWebpageStatus.ERROR) {
170
168
  this.webStatus = PLVWebpageStatus.FINISHED;
171
- this.controller._onPageEnd?.(event);
169
+ this.controller._onPageEnd?.(j20);
172
170
  }
173
171
  });
174
172
  }, Web);
175
- this.observeComponentCreation2((elmtId, isInitialRender) => {
173
+ this.observeComponentCreation2((z19, a20) => {
176
174
  If.create();
177
175
  if (this.webStatus === PLVWebpageStatus.INIT && this.showLoading) {
178
176
  this.ifElseBranchUpdateFunction(0, () => {
179
- this.observeComponentCreation2((elmtId, isInitialRender) => {
177
+ this.observeComponentCreation2((f20, g20) => {
180
178
  Column.create();
181
179
  Column.backgroundColor(Color.White);
182
180
  }, Column);
183
181
  {
184
- this.observeComponentCreation2((elmtId, isInitialRender) => {
185
- if (isInitialRender) {
186
- let componentCall = new PLVLoadingLayout(this, {}, undefined, elmtId, () => {
187
- }, { page: "foundation/src/main/ets/modules/web/PLVSimpleWeb.ets", line: 124, b2: 11 });
188
- ViewPU.create(componentCall);
189
- let paramsLambda = () => {
182
+ this.observeComponentCreation2((b20, c20) => {
183
+ if (c20) {
184
+ let d20 = new PLVLoadingLayout(this, {}, undefined, b20, () => { }, { page: "foundation/src/main/ets/modules/web/PLVSimpleWeb.ets", line: 124, col: 11 });
185
+ ViewPU.create(d20);
186
+ let e20 = () => {
190
187
  return {};
191
188
  };
192
- componentCall.paramsGenerator_ = paramsLambda;
189
+ d20.paramsGenerator_ = e20;
193
190
  }
194
191
  else {
195
- this.updateStateVarsOfChildByElmtId(elmtId, {});
192
+ this.updateStateVarsOfChildByElmtId(b20, {});
196
193
  }
197
194
  }, { name: "PLVLoadingLayout" });
198
195
  }
@@ -205,11 +202,11 @@ export class PLVSimpleWeb extends ViewPU {
205
202
  }
206
203
  }, If);
207
204
  If.pop();
208
- this.observeComponentCreation2((elmtId, isInitialRender) => {
205
+ this.observeComponentCreation2((r19, s19) => {
209
206
  If.create();
210
207
  if (this.webStatus === PLVWebpageStatus.ERROR && this.showLoading) {
211
208
  this.ifElseBranchUpdateFunction(0, () => {
212
- this.observeComponentCreation2((elmtId, isInitialRender) => {
209
+ this.observeComponentCreation2((x19, y19) => {
213
210
  Column.create();
214
211
  Column.justifyContent(FlexAlign.Center);
215
212
  Column.alignItems(HorizontalAlign.Center);
@@ -218,17 +215,16 @@ export class PLVSimpleWeb extends ViewPU {
218
215
  Column.height(PLVCommonConstants.FULL_PERCENT);
219
216
  }, Column);
220
217
  {
221
- this.observeComponentCreation2((elmtId, isInitialRender) => {
222
- if (isInitialRender) {
223
- let componentCall = new PLVFailureLayout(this, {
218
+ this.observeComponentCreation2((t19, u19) => {
219
+ if (u19) {
220
+ let v19 = new PLVFailureLayout(this, {
224
221
  handleReload: () => {
225
222
  this.webStatus = PLVWebpageStatus.INIT;
226
223
  this.controller?.refresh();
227
224
  }
228
- }, undefined, elmtId, () => {
229
- }, { page: "foundation/src/main/ets/modules/web/PLVSimpleWeb.ets", line: 131, b2: 11 });
230
- ViewPU.create(componentCall);
231
- let paramsLambda = () => {
225
+ }, undefined, t19, () => { }, { page: "foundation/src/main/ets/modules/web/PLVSimpleWeb.ets", line: 131, col: 11 });
226
+ ViewPU.create(v19);
227
+ let w19 = () => {
232
228
  return {
233
229
  handleReload: () => {
234
230
  this.webStatus = PLVWebpageStatus.INIT;
@@ -236,10 +232,10 @@ export class PLVSimpleWeb extends ViewPU {
236
232
  }
237
233
  };
238
234
  };
239
- componentCall.paramsGenerator_ = paramsLambda;
235
+ v19.paramsGenerator_ = w19;
240
236
  }
241
237
  else {
242
- this.updateStateVarsOfChildByElmtId(elmtId, {});
238
+ this.updateStateVarsOfChildByElmtId(t19, {});
243
239
  }
244
240
  }, { name: "PLVFailureLayout" });
245
241
  }
@@ -1,7 +1,7 @@
1
- import { webview } from '@kit.ArkWeb';
1
+ import webview from "@ohos.web.webview";
2
2
  import { PLVCallback, PLVCallback2 } from '../../common/PLVCallback';
3
3
  import { PLVFullScreenStatus, PLVWebpageStatus } from '../../common/PLVCommonEnums';
4
- import { common } from '@kit.AbilityKit';
4
+ import common from "@ohos.app.ability.common";
5
5
  export declare class PLVWebController extends webview.WebviewController {
6
6
  static importSDKModuleContext: common.UIAbilityContext;
7
7
  _webStatus: PLVWebpageStatus;
@@ -41,48 +41,48 @@ export declare class PLVWebController extends webview.WebviewController {
41
41
  _overScrollMode: OverScrollMode;
42
42
  private dialogController;
43
43
  private jsBridge;
44
- constructor(webTag?: string);
44
+ constructor(m23?: string);
45
45
  accessBackward(): boolean;
46
46
  backward(): void;
47
- darkMode(darkMode: WebDarkMode): PLVWebController;
48
- forceDarkAccess(forceDarkAccess: boolean): PLVWebController;
49
- domStorageAccess(domStorageAccess: boolean): PLVWebController;
50
- zoomAccess(zoomAccess: boolean): PLVWebController;
51
- fileAccess(fileAccess: boolean): PLVWebController;
52
- multiWindowAccess(multiWindowAccess: boolean): PLVWebController;
53
- allowWindowOpenMethod(allowWindowOpenMethod: boolean): PLVWebController;
54
- javaScriptAccess(javaScriptAccess: boolean): PLVWebController;
55
- mixMode(mixedMode: MixedMode): PLVWebController;
56
- cacheMode(cacheMode: CacheMode): PLVWebController;
57
- onControllerAttached(callback: PLVCallback<void, void>): PLVWebController;
58
- addOnControllerAttached(callback: PLVCallback<void, void>): PLVWebController;
59
- onInterceptRequest(callback: PLVCallback<WebResourceRequest, WebResourceResponse>): PLVWebController;
60
- onLoadIntercept(callback: PLVCallback<WebResourceRequest, boolean>): PLVWebController;
61
- onWindowNew(callback: PLVCallback<OnWindowNewEvent, boolean>): PLVWebController;
62
- onShowFileSelector(callback: PLVCallback<OnShowFileSelectorEvent, boolean>): PLVWebController;
63
- onFullScreenEnter(callback: PLVCallback<void, boolean>): PLVWebController;
64
- onFullScreenExit(callback: PLVCallback<void, boolean>): PLVWebController;
65
- onProgressChange(callback: PLVCallback<OnProgressChangeEvent, void>): PLVWebController;
66
- onPageBegin(callback: PLVCallback<OnPageBeginEvent, void>): PLVWebController;
67
- onPageEnd(callback: PLVCallback<OnPageEndEvent, void>): PLVWebController;
68
- addOnPageEnd(callback: PLVCallback<OnPageEndEvent, void>): PLVWebController;
69
- onErrorReceive(callback: PLVCallback<OnErrorReceiveEvent, void>): PLVWebController;
70
- backgroundColor(backgroundColor: ResourceColor): this;
71
- verticalScrollBarAccess(verticalScrollBarAccess: boolean): this;
72
- nestedScrollOptions(t8: NestedScrollOptions): this;
73
- overScrollMode(overScrollMode: OverScrollMode): void;
74
- userAgent(userAgent?: string): this;
75
- addOnReloaded(callback: PLVCallback): this;
76
- registerHandler(s8: string, handle: PLVCallback2<string, PLVCallback<string>>): this;
77
- callHandle(q8: string, data: string, r8: PLVCallback<string>): this;
78
- loadHtmlData(data?: string): this;
79
- loadUrlCatch(url: string | Resource): void;
47
+ darkMode(k23: WebDarkMode): PLVWebController;
48
+ forceDarkAccess(j23: boolean): PLVWebController;
49
+ domStorageAccess(i23: boolean): PLVWebController;
50
+ zoomAccess(h23: boolean): PLVWebController;
51
+ fileAccess(g23: boolean): PLVWebController;
52
+ multiWindowAccess(f23: boolean): PLVWebController;
53
+ allowWindowOpenMethod(e23: boolean): PLVWebController;
54
+ javaScriptAccess(d23: boolean): PLVWebController;
55
+ mixMode(c23: MixedMode): PLVWebController;
56
+ cacheMode(b23: CacheMode): PLVWebController;
57
+ onControllerAttached(a23: PLVCallback<void, void>): PLVWebController;
58
+ addOnControllerAttached(z22: PLVCallback<void, void>): PLVWebController;
59
+ onInterceptRequest(y22: PLVCallback<WebResourceRequest, WebResourceResponse>): PLVWebController;
60
+ onLoadIntercept(x22: PLVCallback<WebResourceRequest, boolean>): PLVWebController;
61
+ onWindowNew(w22: PLVCallback<OnWindowNewEvent, boolean>): PLVWebController;
62
+ onShowFileSelector(v22: PLVCallback<OnShowFileSelectorEvent, boolean>): PLVWebController;
63
+ onFullScreenEnter(u22: PLVCallback<void, boolean>): PLVWebController;
64
+ onFullScreenExit(t22: PLVCallback<void, boolean>): PLVWebController;
65
+ onProgressChange(s22: PLVCallback<OnProgressChangeEvent, void>): PLVWebController;
66
+ onPageBegin(r22: PLVCallback<OnPageBeginEvent, void>): PLVWebController;
67
+ onPageEnd(q22: PLVCallback<OnPageEndEvent, void>): PLVWebController;
68
+ addOnPageEnd(p22: PLVCallback<OnPageEndEvent, void>): PLVWebController;
69
+ onErrorReceive(o22: PLVCallback<OnErrorReceiveEvent, void>): PLVWebController;
70
+ backgroundColor(n22: ResourceColor): this;
71
+ verticalScrollBarAccess(m22: boolean): this;
72
+ nestedScrollOptions(l22: NestedScrollOptions): this;
73
+ overScrollMode(k22: OverScrollMode): void;
74
+ userAgent(j22?: string): this;
75
+ addOnReloaded(i22: PLVCallback): this;
76
+ registerHandler(g22: string, h22: PLVCallback2<string, PLVCallback<string>>): this;
77
+ callHandle(d22: string, e22: string, f22: PLVCallback<string>): this;
78
+ loadHtmlData(a22?: string): this;
79
+ loadUrlCatch(w21: string | Resource): void;
80
80
  handleControllerAttached(): void;
81
81
  handleFullScreenExit(): void;
82
82
  handleFullScreenEnter(): void;
83
- handleWindowNew(event: OnWindowNewEvent, builder: (webviewController: WebviewController) => CustomDialogController): void;
84
- handleIsLoadIntercept(intercept: WebResourceRequest | undefined): boolean;
85
- handlePageEnd(event: OnPageEndEvent): void;
83
+ handleWindowNew(s21: OnWindowNewEvent, t21: (webviewController: WebviewController) => CustomDialogController): void;
84
+ handleIsLoadIntercept(q21: WebResourceRequest | undefined): boolean;
85
+ handlePageEnd(n21: OnPageEndEvent): void;
86
86
  handleErrorReceive(): void;
87
87
  private getVideoWHEnterFullScreen;
88
88
  }