@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
package/CHANGELOG.md CHANGED
@@ -1,3 +1,32 @@
1
+ ## [v1.3.2-rc.1] - 2025-11-14
2
+
3
+ ### 【观看端场景】
4
+
5
+ 新增功能:
6
+
7
+ 1. 聊天室输入框响应聊天室的关闭状态 [Demo]
8
+ 2. 聊天室新增头像显示 [Demo]
9
+ 3. 回放新增聊天重放功能 [Demo、SDK]
10
+ 4. 支持防录屏水印 [Demo]
11
+ 5. 支持防录屏跑马灯 [Demo]
12
+
13
+ ## [v1.3.1] - 2025-10-23
14
+
15
+ ### 【观看端场景】
16
+
17
+ 新增功能:
18
+ 1. 新增TRTC频道支持 [Demo、SDK]
19
+
20
+ 修复优化:
21
+ 1. 底层播放器升级优化 [SDK]
22
+ 2. 修复聊天室tab位置没有对应后台配置放在最前面的问题 [Demo、SDK]
23
+ 3. 修复图片表情消息没有正常显示 [Demo]
24
+
25
+ ### 【开播端场景】
26
+
27
+ 新增功能:
28
+ 1. 新增TRTC频道支持 [Demo、SDK]
29
+
1
30
  ## [v1.3.0] - 2025-08-29
2
31
 
3
32
  ### 【观看端场景】
package/ResourceTable.txt CHANGED
@@ -1,17 +1,17 @@
1
- string lib_name 0x02000010
2
- string page_show 0x0200000e
3
- string plv_web_load_failed 0x02000000
4
- string plv_web_reload 0x02000001
5
- color plv_web_main_red_color 0x02000002
6
- color plv_web_reload_title_color 0x02000003
7
- float page_text_font_size 0x0200000f
8
- float plv_web_failure_img_size 0x02000004
9
- float plv_web_large_border_radius 0x02000005
10
- float plv_web_loading_img_margin 0x02000006
11
- float plv_web_loading_img_size 0x02000007
12
- float plv_web_normal_text_size1 0x02000008
13
- float plv_web_reload_btn_height 0x02000009
14
- float plv_web_reload_btn_width 0x0200000a
15
- float plv_web_sm_padding_margin 0x0200000b
16
- float plv_web_small_text_size 0x0200000c
17
- media plv_web_ic_failure 0x0200000d
1
+ string lib_name 0x03000010
2
+ string page_show 0x0300000e
3
+ string plv_web_load_failed 0x03000000
4
+ string plv_web_reload 0x03000001
5
+ color plv_web_main_red_color 0x03000002
6
+ color plv_web_reload_title_color 0x03000003
7
+ float page_text_font_size 0x0300000f
8
+ float plv_web_failure_img_size 0x03000004
9
+ float plv_web_large_border_radius 0x03000005
10
+ float plv_web_loading_img_margin 0x03000006
11
+ float plv_web_loading_img_size 0x03000007
12
+ float plv_web_normal_text_size1 0x03000008
13
+ float plv_web_reload_btn_height 0x03000009
14
+ float plv_web_reload_btn_width 0x0300000a
15
+ float plv_web_sm_padding_margin 0x0300000b
16
+ float plv_web_small_text_size 0x0300000c
17
+ media plv_web_ic_failure 0x0300000d
package/oh-package.json5 CHANGED
@@ -1 +1 @@
1
- {"name":"@polyvharmony/live-scenes-foundation","version":"1.3.0","description":"polyv live-scenes-foundation","main":"Index.js","author":"POLYV","license":"MIT","dependencies":{"socket":"file:./libs/plvsocket.har","jsbridge":"file:./libs/plvjsbridge.har","@ohos/axios":"2.2.4","class-transformer":"file:./libs/plvclasstransformer.har","@pura/harmony-utils":"1.1.0","@ohos/crypto-js":"2.0.4","@ohos-port/xlog":"1.2.0"},"types":"Index.d.ets","artifactType":"obfuscation","metadata":{"workers":["./src/main/ets/modules/log/PLVXLogWorker.js"],"sourceRoots":["./src/main"],"debug":false,"useNormalizedOHMUrl":true},"compatibleSdkVersion":12,"compatibleSdkType":"HarmonyOS","obfuscated":true}
1
+ {"name":"@polyvharmony/live-scenes-foundation","version":"1.3.2-rc.1","description":"polyv live-scenes-foundation","main":"Index.js","author":"POLYV","license":"MIT","dependencies":{"socket":"file:./libs/plvsocket.har","jsbridge":"file:./libs/plvjsbridge.har","@ohos/axios":"2.2.4","class-transformer":"file:./libs/plvclasstransformer.har","@pura/harmony-utils":"1.1.0","@ohos/crypto-js":"2.0.4","@ohos-port/xlog":"1.2.0"},"types":"Index.d.ets","artifactType":"obfuscation","metadata":{"workers":["./src/main/ets/modules/log/PLVXLogWorker.js"],"sourceRoots":["./src/main"],"debug":false,"useNormalizedOHMUrl":true},"compatibleSdkVersionStage":"beta1","compatibleSdkVersion":12,"compatibleSdkType":"HarmonyOS","obfuscated":true}
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@polyvharmony/live-scenes-foundation","version":"1.3.0","description":"polyv live-scenes-foundation","main":"Index.js","author":"POLYV","license":"MIT","dependencies":{"socket":"file:./libs/plvsocket.har","jsbridge":"file:./libs/plvjsbridge.har","@ohos/axios":"2.2.4","class-transformer":"file:./libs/plvclasstransformer.har","@pura/harmony-utils":"1.1.0","@ohos/crypto-js":"2.0.4","@ohos-port/xlog":"1.2.0"},"types":"Index.d.ets","artifactType":"obfuscation","metadata":{"workers":["./src/main/ets/modules/log/PLVXLogWorker.js"],"sourceRoots":["./src/main"],"debug":false,"useNormalizedOHMUrl":true},"compatibleSdkVersion":12,"compatibleSdkType":"HarmonyOS","obfuscated":true}
1
+ {"name":"@polyvharmony/live-scenes-foundation","version":"1.3.2-rc.1","description":"polyv live-scenes-foundation","main":"Index.js","author":"POLYV","license":"MIT","dependencies":{"socket":"file:./libs/plvsocket.har","jsbridge":"file:./libs/plvjsbridge.har","@ohos/axios":"2.2.4","class-transformer":"file:./libs/plvclasstransformer.har","@pura/harmony-utils":"1.1.0","@ohos/crypto-js":"2.0.4","@ohos-port/xlog":"1.2.0"},"types":"Index.d.ets","artifactType":"obfuscation","metadata":{"workers":["./src/main/ets/modules/log/PLVXLogWorker.js"],"sourceRoots":["./src/main"],"debug":false,"useNormalizedOHMUrl":true},"compatibleSdkVersionStage":"beta1","compatibleSdkVersion":12,"compatibleSdkType":"HarmonyOS","obfuscated":true}
@@ -1,29 +1,29 @@
1
- declare class j1<T> implements IDataSource {
2
- l1: DataChangeListener[];
1
+ declare class PLVBasicDataSource<T> implements IDataSource {
2
+ listeners: DataChangeListener[];
3
3
  totalCount(): number;
4
- getData(index: number): T | undefined;
5
- registerDataChangeListener(listener: DataChangeListener): void;
6
- unregisterDataChangeListener(listener: DataChangeListener): void;
7
- m1(): void;
8
- n1(index: number): void;
9
- o1(index: number): void;
10
- q1(index: number): void;
11
- s1(from: number, to: number): void;
12
- t1(dataOperations: DataOperation[]): void;
4
+ getData(h1: number): T | undefined;
5
+ registerDataChangeListener(g1: DataChangeListener): void;
6
+ unregisterDataChangeListener(e1: DataChangeListener): void;
7
+ notifyDataReload(): void;
8
+ notifyDataAdd(b1: number): void;
9
+ notifyDataChange(z: number): void;
10
+ notifyDataDelete(x: number): void;
11
+ notifyDataMove(u: number, v: number): void;
12
+ notifyDatasetChange(s: DataOperation[]): void;
13
13
  }
14
- export default class PLVLazyDataSource<T> extends j1<T> {
14
+ export default class PLVLazyDataSource<T> extends PLVBasicDataSource<T> {
15
15
  dataArray: T[];
16
16
  _bindSource?: PLVLazyDataSource<T>;
17
17
  _beBindSource?: PLVLazyDataSource<T>;
18
- bindSource(source: PLVLazyDataSource<T>): void;
18
+ bindSource(r: PLVLazyDataSource<T>): void;
19
19
  unbindSource(): void;
20
20
  totalCount(): number;
21
- getData(index: number): T;
22
- addData(index: number, ...data: T[]): void;
23
- pushData(...data: T[]): void;
24
- deleteData(index: number): void;
25
- moveData(from: number, to: number): void;
26
- changeData(index: number, data: T): void;
21
+ getData(q: number): T;
22
+ addData(n: number, ...o: T[]): void;
23
+ pushData(...k: T[]): void;
24
+ deleteData(i: number): void;
25
+ moveData(e: number, f: number): void;
26
+ changeData(b: number, c: T): void;
27
27
  clearData(): void;
28
28
  reloadData(): void;
29
29
  }
@@ -1,68 +1,68 @@
1
1
  import PLVLogger from '../modules/log/PLVLogger';
2
2
  const TAG = '[PLVLazyDataSource]';
3
- class j1 {
3
+ class PLVBasicDataSource {
4
4
  constructor() {
5
- this.l1 = [];
5
+ this.listeners = [];
6
6
  }
7
7
  totalCount() {
8
8
  return 0;
9
9
  }
10
- getData(index) {
10
+ getData(h1) {
11
11
  return undefined;
12
12
  }
13
- registerDataChangeListener(listener) {
14
- if (this.l1.indexOf(listener) < 0) {
13
+ registerDataChangeListener(g1) {
14
+ if (this.listeners.indexOf(g1) < 0) {
15
15
  PLVLogger.info(TAG, 'registerDataChangeListener');
16
- this.l1.push(listener);
16
+ this.listeners.push(g1);
17
17
  }
18
18
  }
19
- unregisterDataChangeListener(listener) {
20
- const pos = this.l1.indexOf(listener);
21
- if (pos >= 0) {
19
+ unregisterDataChangeListener(e1) {
20
+ const f1 = this.listeners.indexOf(e1);
21
+ if (f1 >= 0) {
22
22
  PLVLogger.info(TAG, 'unregisterDataChangeListener');
23
- this.l1.splice(pos, 1);
23
+ this.listeners.splice(f1, 1);
24
24
  }
25
25
  }
26
- m1() {
27
- this.l1.forEach(listener => {
28
- listener.onDataReloaded();
26
+ notifyDataReload() {
27
+ this.listeners.forEach(d1 => {
28
+ d1.onDataReloaded();
29
29
  });
30
30
  }
31
- n1(index) {
32
- this.l1.forEach(listener => {
33
- listener.onDataAdd(index);
31
+ notifyDataAdd(b1) {
32
+ this.listeners.forEach(c1 => {
33
+ c1.onDataAdd(b1);
34
34
  });
35
35
  }
36
- o1(index) {
37
- this.l1.forEach(listener => {
38
- listener.onDataChange(index);
36
+ notifyDataChange(z) {
37
+ this.listeners.forEach(a1 => {
38
+ a1.onDataChange(z);
39
39
  });
40
40
  }
41
- q1(index) {
42
- this.l1.forEach(listener => {
43
- listener.onDataDelete(index);
41
+ notifyDataDelete(x) {
42
+ this.listeners.forEach(y => {
43
+ y.onDataDelete(x);
44
44
  });
45
45
  }
46
- s1(from, to) {
47
- this.l1.forEach(listener => {
48
- listener.onDataMove(from, to);
46
+ notifyDataMove(u, v) {
47
+ this.listeners.forEach(w => {
48
+ w.onDataMove(u, v);
49
49
  });
50
50
  }
51
- t1(dataOperations) {
52
- this.l1.forEach(listener => {
53
- listener.onDatasetChange(dataOperations);
51
+ notifyDatasetChange(s) {
52
+ this.listeners.forEach(t => {
53
+ t.onDatasetChange(s);
54
54
  });
55
55
  }
56
56
  }
57
- export default class PLVLazyDataSource extends j1 {
57
+ export default class PLVLazyDataSource extends PLVBasicDataSource {
58
58
  constructor() {
59
59
  super(...arguments);
60
60
  this.dataArray = [];
61
61
  }
62
- bindSource(source) {
63
- source._bindSource = this;
64
- this._beBindSource = source;
65
- this.dataArray = source.dataArray;
62
+ bindSource(r) {
63
+ r._bindSource = this;
64
+ this._beBindSource = r;
65
+ this.dataArray = r.dataArray;
66
66
  }
67
67
  unbindSource() {
68
68
  if (this._beBindSource) {
@@ -72,86 +72,86 @@ export default class PLVLazyDataSource extends j1 {
72
72
  totalCount() {
73
73
  return this.dataArray.length;
74
74
  }
75
- getData(index) {
76
- return this.dataArray[index];
75
+ getData(q) {
76
+ return this.dataArray[q];
77
77
  }
78
- addData(index, ...data) {
79
- if (data.length === 0) {
78
+ addData(n, ...o) {
79
+ if (o.length === 0) {
80
80
  return;
81
81
  }
82
- this.dataArray.splice(index, 0, ...data);
83
- const operation = [{
82
+ this.dataArray.splice(n, 0, ...o);
83
+ const p = [{
84
84
  type: DataOperationType.ADD,
85
- index: index,
86
- count: data.length
85
+ index: n,
86
+ count: o.length
87
87
  }];
88
88
  if (this._bindSource) {
89
- this._bindSource.t1(operation);
89
+ this._bindSource.notifyDatasetChange(p);
90
90
  }
91
91
  else {
92
- this.t1(operation);
92
+ this.notifyDatasetChange(p);
93
93
  }
94
94
  }
95
- pushData(...data) {
96
- if (data.length === 0) {
95
+ pushData(...k) {
96
+ if (k.length === 0) {
97
97
  return;
98
98
  }
99
- const index = this.totalCount();
100
- this.dataArray.push(...data);
101
- const operation = [{
99
+ const l = this.totalCount();
100
+ this.dataArray.push(...k);
101
+ const m = [{
102
102
  type: DataOperationType.ADD,
103
- index: index,
104
- count: data.length
103
+ index: l,
104
+ count: k.length
105
105
  }];
106
106
  if (this._bindSource) {
107
- this._bindSource.t1(operation);
107
+ this._bindSource.notifyDatasetChange(m);
108
108
  }
109
109
  else {
110
- this.t1(operation);
110
+ this.notifyDatasetChange(m);
111
111
  }
112
112
  }
113
- deleteData(index) {
114
- this.dataArray.splice(index, 1);
115
- const operation = [{
113
+ deleteData(i) {
114
+ this.dataArray.splice(i, 1);
115
+ const j = [{
116
116
  type: DataOperationType.DELETE,
117
- index: index,
117
+ index: i,
118
118
  count: 1
119
119
  }];
120
120
  if (this._bindSource) {
121
- this._bindSource.t1(operation);
121
+ this._bindSource.notifyDatasetChange(j);
122
122
  }
123
123
  else {
124
- this.t1(operation);
124
+ this.notifyDatasetChange(j);
125
125
  }
126
126
  }
127
- moveData(from, to) {
128
- const k1 = this.dataArray[from];
129
- this.dataArray[from] = this.dataArray[to];
130
- this.dataArray[to] = k1;
131
- const operation = [{
127
+ moveData(e, f) {
128
+ const g = this.dataArray[e];
129
+ this.dataArray[e] = this.dataArray[f];
130
+ this.dataArray[f] = g;
131
+ const h = [{
132
132
  type: DataOperationType.MOVE,
133
133
  index: {
134
- from: from, to: to
134
+ from: e, to: f
135
135
  }
136
136
  }];
137
137
  if (this._bindSource) {
138
- this._bindSource.t1(operation);
138
+ this._bindSource.notifyDatasetChange(h);
139
139
  }
140
140
  else {
141
- this.t1(operation);
141
+ this.notifyDatasetChange(h);
142
142
  }
143
143
  }
144
- changeData(index, data) {
145
- this.dataArray.splice(index, 1, data);
146
- const operation = [{
144
+ changeData(b, c) {
145
+ this.dataArray.splice(b, 1, c);
146
+ const d = [{
147
147
  type: DataOperationType.CHANGE,
148
- index: index
148
+ index: b
149
149
  }];
150
150
  if (this._bindSource) {
151
- this._bindSource.t1(operation);
151
+ this._bindSource.notifyDatasetChange(d);
152
152
  }
153
153
  else {
154
- this.t1(operation);
154
+ this.notifyDatasetChange(d);
155
155
  }
156
156
  }
157
157
  clearData() {
@@ -159,14 +159,14 @@ export default class PLVLazyDataSource extends j1 {
159
159
  this.reloadData();
160
160
  }
161
161
  reloadData() {
162
- const operation = [{
162
+ const a = [{
163
163
  type: DataOperationType.RELOAD
164
164
  }];
165
165
  if (this._bindSource) {
166
- this._bindSource.t1(operation);
166
+ this._bindSource.notifyDatasetChange(a);
167
167
  }
168
168
  else {
169
- this.t1(operation);
169
+ this.notifyDatasetChange(a);
170
170
  }
171
171
  }
172
172
  }
@@ -1,32 +1,33 @@
1
- import { mediaquery, window } from '@kit.ArkUI';
1
+ import mediaquery from "@ohos.mediaquery";
2
+ import window from "@ohos.window";
2
3
  export type PLVCallback<T = void, R = void> = (data: T) => R;
3
4
  export type PLVCallback2<T1 = void, T2 = void, R = void> = (data1: T1, data2: T2) => R;
4
5
  @Builder
5
- export declare function PLVCustomBuilder<T = void>(data: T): void;
6
+ export declare function PLVCustomBuilder<p23 = void>(u2: p23): void;
6
7
  export declare class PLVMediaQueryListener {
7
8
  listener: mediaquery.MediaQueryListener | undefined;
8
9
  callback: PLVCallback<mediaquery.MediaQueryResult> | undefined;
9
- constructor(listener: mediaquery.MediaQueryListener, callback: PLVCallback<mediaquery.MediaQueryResult>);
10
+ constructor(s2: mediaquery.MediaQueryListener, t2: PLVCallback<mediaquery.MediaQueryResult>);
10
11
  off(): void;
11
12
  }
12
13
  export declare class PLVAvoidAreaChangeListener {
13
14
  windowClass: window.Window | undefined;
14
15
  callback: PLVCallback<window.AvoidAreaOptions> | undefined;
15
- constructor(h2: window.Window, callback: PLVCallback<window.AvoidAreaOptions>);
16
+ constructor(q2: window.Window, r2: PLVCallback<window.AvoidAreaOptions>);
16
17
  off(): void;
17
18
  }
18
19
  export declare class PLVStateData<T> {
19
20
  data?: T;
20
- constructor(data?: T);
21
+ constructor(o2?: T);
21
22
  copy(): PLVStateData<T>;
22
- copyValue(data?: T): PLVStateData<T>;
23
+ copyValue(n2?: T): PLVStateData<T>;
23
24
  }
24
25
  export declare class PLVStatefulData<T> extends PLVStateData<T> {
25
26
  isSuccess?: boolean;
26
27
  error?: Error;
27
- constructor(data?: T, isSuccess?: boolean, error?: Error);
28
- static success<T>(data?: T): PLVStatefulData<T>;
29
- static error<T>(error?: Error): PLVStatefulData<T>;
28
+ constructor(k2?: T, l2?: boolean, m2?: Error);
29
+ static success<o23>(j2?: o23): PLVStatefulData<o23>;
30
+ static error<n23>(i2?: Error): PLVStatefulData<n23>;
30
31
  }
31
32
  export declare class PLVDisposable {
32
33
  private _dispose;
@@ -38,8 +39,8 @@ export declare class PLVPromiseValue<T> {
38
39
  private promise?;
39
40
  private resolve?;
40
41
  private callbacks;
41
- set(value: T): void;
42
- observe(callback: PLVCallback<T>): void;
42
+ set(g2: T): void;
43
+ observe(f2: PLVCallback<T>): void;
43
44
  get(): T | Promise<T>;
44
45
  clear(): void;
45
46
  }
@@ -47,15 +48,15 @@ export declare class PLVPromiseValue<T> {
47
48
  export declare class PLVLazyValue<T, P = void | undefined> {
48
49
  private _value?;
49
50
  private _callback;
50
- constructor(f2: PLVCallback<P | undefined, T>);
51
- get(param?: P): T;
51
+ constructor(c2: PLVCallback<P | undefined, T>);
52
+ get(b2?: P): T;
52
53
  }
53
54
  @Observed
54
55
  export declare class PLVAsyncLazyValue<T, P = void | undefined> {
55
56
  private _value?;
56
57
  private _callback;
57
- constructor(e2: PLVCallback2<P | undefined, PLVCallback<T>>);
58
- get(callback: PLVCallback<T>, param?: P): void;
58
+ constructor(a2: PLVCallback2<P | undefined, PLVCallback<T>>);
59
+ get(x1: PLVCallback<T>, y1?: P): void;
59
60
  }
60
61
  export interface IPLVEventEmitter<T extends string = string> {
61
62
  emit(event: T, ...args: Object[]): void;
@@ -69,9 +70,9 @@ export declare class PLVEventNotify<T extends string = string> implements IPLVEv
69
70
  private tag;
70
71
  private events;
71
72
  private emitLogToFile;
72
- constructor(c2?: string | Object, d2?: boolean);
73
- on(event: T, callback: Function, a2?: string | Object): void;
74
- off(event: T, callback?: Function, w1?: string | Object): void;
75
- emit(event: T, ...args: Object[]): void;
73
+ constructor(v1?: string | Object, w1?: boolean);
74
+ on(r1: T, s1: Function, t1?: string | Object): void;
75
+ off(m1: T, n1?: Function, o1?: string | Object): void;
76
+ emit(i1: T, ...j1: Object[]): void;
76
77
  clear(): void;
77
78
  }