@polyvharmony/live-scenes-foundation 1.3.2 → 1.3.4
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/CHANGELOG.md +50 -0
- package/Index.d.ets +2 -0
- package/ets/modules.abc +0 -0
- package/libs/plvsocket.har +0 -0
- package/oh-package.json5 +1 -1
- package/package.json +1 -1
- package/src/main/ets/common/IPLVBackwardInterface.d.ets +2 -0
- package/src/main/ets/common/PLVBasicDataSource.d.ets +2 -0
- package/src/main/ets/common/PLVCallback.d.ets +10 -8
- package/src/main/ets/common/PLVCommonConstants.d.ets +2 -0
- package/src/main/ets/common/PLVCommonEnums.d.ets +2 -0
- package/src/main/ets/common/PLVDeviceUtils.d.ets +4 -2
- package/src/main/ets/common/PLVHashMap.d.ets +3 -1
- package/src/main/ets/common/PLVJSONUtils.d.ets +14 -12
- package/src/main/ets/common/PLVNetUtils.d.ets +6 -4
- package/src/main/ets/common/PLVPreferencesUtils.d.ets +10 -8
- package/src/main/ets/common/PLVScheduledTask.d.ets +3 -1
- package/src/main/ets/common/PLVSimpleBuffer.d.ets +5 -3
- package/src/main/ets/common/PLVSparseArray.d.ets +8 -6
- package/src/main/ets/common/PLVTextUtils.d.ets +10 -8
- package/src/main/ets/common/PLVTimeUtils.d.ets +3 -1
- package/src/main/ets/common/PLVToastUtils.d.ets +4 -2
- package/src/main/ets/common/PLVType.d.ets +2 -0
- package/src/main/ets/common/PLVUACreator.d.ets +3 -1
- package/src/main/ets/common/PLVUtils.d.ets +24 -22
- package/src/main/ets/common/PLVWebUtils.d.ets +6 -4
- package/src/main/ets/common/ui/PLVNodeController.d.ets +10 -8
- package/src/main/ets/modules/log/PLVLogger.d.ets +10 -8
- package/src/main/ets/modules/log/PLVXLogFilePrinter.d.ets +4 -2
- package/src/main/ets/modules/log/PLVXLogWorker.d.ets +2 -0
- package/src/main/ets/modules/net/PLVApiConstants.d.ets +2 -0
- package/src/main/ets/modules/net/PLVHttpData.d.ets +3 -1
- package/src/main/ets/modules/net/PLVHttpError.d.ets +4 -2
- package/src/main/ets/modules/net/PLVHttpRequest.d.ets +10 -8
- package/src/main/ets/modules/net/PLVRequestSetting.d.ets +5 -3
- package/src/main/ets/modules/socket/PLVSocketIO.d.ets +24 -21
- package/src/main/ets/modules/web/PLVFailureLayout.d.ets +2 -0
- package/src/main/ets/modules/web/PLVLoadingLayout.d.ets +2 -0
- package/src/main/ets/modules/web/PLVNewWindowLayout.d.ets +2 -0
- package/src/main/ets/modules/web/PLVSimpleWeb.d.ets +2 -0
- package/src/main/ets/modules/web/PLVWebController.d.ets +39 -37
- package/src/main/ets/modules/web/PLVWebModel.d.ets +2 -0
- package/src/main/module.json +1 -1
- package/Index.js +0 -30
- package/src/main/ets/common/IPLVBackwardInterface.js +0 -1
- package/src/main/ets/common/PLVBasicDataSource.js +0 -172
- package/src/main/ets/common/PLVCallback.js +0 -186
- package/src/main/ets/common/PLVCommonConstants.js +0 -11
- package/src/main/ets/common/PLVCommonEnums.js +0 -22
- package/src/main/ets/common/PLVDeviceUtils.js +0 -36
- package/src/main/ets/common/PLVHashMap.js +0 -7
- package/src/main/ets/common/PLVJSONUtils.js +0 -103
- package/src/main/ets/common/PLVNetUtils.js +0 -35
- package/src/main/ets/common/PLVPreferencesUtils.js +0 -30
- package/src/main/ets/common/PLVScheduledTask.js +0 -44
- package/src/main/ets/common/PLVSimpleBuffer.js +0 -30
- package/src/main/ets/common/PLVSparseArray.js +0 -44
- package/src/main/ets/common/PLVTextUtils.js +0 -79
- package/src/main/ets/common/PLVTimeUtils.js +0 -14
- package/src/main/ets/common/PLVToastUtils.js +0 -17
- package/src/main/ets/common/PLVType.js +0 -1
- package/src/main/ets/common/PLVUACreator.js +0 -11
- package/src/main/ets/common/PLVUtils.js +0 -241
- package/src/main/ets/common/PLVWebUtils.js +0 -78
- package/src/main/ets/common/ui/PLVNodeController.js +0 -104
- package/src/main/ets/modules/log/PLVLogger.js +0 -67
- package/src/main/ets/modules/log/PLVXLogFilePrinter.js +0 -39
- package/src/main/ets/modules/log/PLVXLogWorker.js +0 -4
- package/src/main/ets/modules/net/PLVApiConstants.js +0 -7
- package/src/main/ets/modules/net/PLVHttpData.js +0 -8
- package/src/main/ets/modules/net/PLVHttpError.js +0 -13
- package/src/main/ets/modules/net/PLVHttpRequest.js +0 -148
- package/src/main/ets/modules/net/PLVRequestSetting.js +0 -33
- package/src/main/ets/modules/socket/PLVSocketIO.js +0 -181
- package/src/main/ets/modules/web/PLVFailureLayout.js +0 -76
- package/src/main/ets/modules/web/PLVLoadingLayout.js +0 -45
- package/src/main/ets/modules/web/PLVNewWindowLayout.js +0 -61
- package/src/main/ets/modules/web/PLVSimpleWeb.js +0 -256
- package/src/main/ets/modules/web/PLVWebController.js +0 -283
- package/src/main/ets/modules/web/PLVWebModel.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,53 @@
|
|
|
1
|
+
## [v1.3.4] - 2025-12-26
|
|
2
|
+
|
|
3
|
+
### 【观看端场景】
|
|
4
|
+
|
|
5
|
+
修复优化:
|
|
6
|
+
|
|
7
|
+
1. 聊天室引用消息显示ui优化 [Demo]
|
|
8
|
+
2. 优化httpdns解析功能 [Demo、SDK]
|
|
9
|
+
|
|
10
|
+
### 【开播端场景】
|
|
11
|
+
|
|
12
|
+
修复优化:
|
|
13
|
+
|
|
14
|
+
1. 聊天室引用消息显示ui优化 [Demo]
|
|
15
|
+
2. 优化httpdns解析功能 [Demo、SDK]
|
|
16
|
+
|
|
17
|
+
### 【SDK】
|
|
18
|
+
|
|
19
|
+
新增功能:
|
|
20
|
+
|
|
21
|
+
1. 聊天室socket支持https [SDK]
|
|
22
|
+
|
|
23
|
+
## [v1.3.3] - 2025-12-05
|
|
24
|
+
|
|
25
|
+
### 【观看端场景】
|
|
26
|
+
|
|
27
|
+
新增功能:
|
|
28
|
+
|
|
29
|
+
1. 直播观看支持连麦 [Demo、SDK]
|
|
30
|
+
2. 直播观看支持投屏 [Demo、SDK]
|
|
31
|
+
|
|
32
|
+
修复优化:
|
|
33
|
+
|
|
34
|
+
1. 修复聊天回放消息不对应时间的问题 [Demo、SDK]
|
|
35
|
+
2. 修复切换语言后更多菜单中举报投诉消失的问题 [SDK]
|
|
36
|
+
3. 优化商品库弹起输入法时ui表现 [Demo]
|
|
37
|
+
|
|
38
|
+
### 【开播端场景】
|
|
39
|
+
|
|
40
|
+
修复优化:
|
|
41
|
+
|
|
42
|
+
1. 优化手机开播单人主讲画面ui表现 [Demo]
|
|
43
|
+
2. 优化手机开播分享功能ui表现 [Demo]
|
|
44
|
+
|
|
45
|
+
### 【SDK】
|
|
46
|
+
|
|
47
|
+
新增功能:
|
|
48
|
+
|
|
49
|
+
1. 支持x86_64模拟器架构 [SDK]
|
|
50
|
+
|
|
1
51
|
## [v1.3.2] - 2025-11-14
|
|
2
52
|
|
|
3
53
|
### 【观看端场景】
|
package/Index.d.ets
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// @keepTs
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
export { PLVNodeControllerManager, PLVNodeController, NodeControllerConfig } from './src/main/ets/common/ui/PLVNodeController';
|
|
2
4
|
export { IPLVBackwardInterface } from './src/main/ets/common/IPLVBackwardInterface';
|
|
3
5
|
export { default as PLVLazyDataSource } from './src/main/ets/common/PLVBasicDataSource';
|
package/ets/modules.abc
ADDED
|
Binary file
|
package/libs/plvsocket.har
CHANGED
|
Binary file
|
package/oh-package.json5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@polyvharmony/live-scenes-foundation","version":"1.3.
|
|
1
|
+
{"name":"@polyvharmony/live-scenes-foundation","version":"1.3.4","description":"polyv live-scenes-foundation","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":{"byteCodeHar":true,"sourceRoots":["./src/main"],"debug":false,"dependencyPkgVersion":{"socket":"1.0.3","jsbridge":"1.0.0","@ohos/axios":"2.2.4","class-transformer":"0.5.1","@pura/harmony-utils":"1.1.0","@ohos/crypto-js":"2.0.4","@ohos-port/xlog":"1.2.0"},"declarationEntry":["@normalized:N&&&@polyvharmony/live-scenes-foundation/src/main/ets/modules/log/PLVXLogWorker&1.3.4"],"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.
|
|
1
|
+
{"name":"@polyvharmony/live-scenes-foundation","version":"1.3.4","description":"polyv live-scenes-foundation","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":{"byteCodeHar":true,"sourceRoots":["./src/main"],"debug":false,"dependencyPkgVersion":{"socket":"1.0.3","jsbridge":"1.0.0","@ohos/axios":"2.2.4","class-transformer":"0.5.1","@pura/harmony-utils":"1.1.0","@ohos/crypto-js":"2.0.4","@ohos-port/xlog":"1.2.0"},"declarationEntry":["@normalized:N&&&@polyvharmony/live-scenes-foundation/src/main/ets/modules/log/PLVXLogWorker&1.3.4"],"useNormalizedOHMUrl":true},"compatibleSdkVersionStage":"beta1","compatibleSdkVersion":12,"compatibleSdkType":"HarmonyOS","obfuscated":true}
|
|
@@ -1,33 +1,35 @@
|
|
|
1
|
+
// @keepTs
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
import mediaquery from "@ohos.mediaquery";
|
|
2
4
|
import window from "@ohos.window";
|
|
3
5
|
export type PLVCallback<T = void, R = void> = (data: T) => R;
|
|
4
6
|
export type PLVCallback2<T1 = void, T2 = void, R = void> = (data1: T1, data2: T2) => R;
|
|
5
7
|
@Builder
|
|
6
|
-
export declare function PLVCustomBuilder<
|
|
8
|
+
export declare function PLVCustomBuilder<w2 = void>(x2: w2): void;
|
|
7
9
|
export declare class PLVMediaQueryListener {
|
|
8
10
|
listener: mediaquery.MediaQueryListener | undefined;
|
|
9
11
|
callback: PLVCallback<mediaquery.MediaQueryResult> | undefined;
|
|
10
|
-
constructor(
|
|
12
|
+
constructor(u2: mediaquery.MediaQueryListener, v2: PLVCallback<mediaquery.MediaQueryResult>);
|
|
11
13
|
off(): void;
|
|
12
14
|
}
|
|
13
15
|
export declare class PLVAvoidAreaChangeListener {
|
|
14
16
|
windowClass: window.Window | undefined;
|
|
15
17
|
callback: PLVCallback<window.AvoidAreaOptions> | undefined;
|
|
16
|
-
constructor(
|
|
18
|
+
constructor(s2: window.Window, t2: PLVCallback<window.AvoidAreaOptions>);
|
|
17
19
|
off(): void;
|
|
18
20
|
}
|
|
19
21
|
export declare class PLVStateData<T> {
|
|
20
22
|
data?: T;
|
|
21
|
-
constructor(
|
|
23
|
+
constructor(q2?: T);
|
|
22
24
|
copy(): PLVStateData<T>;
|
|
23
|
-
copyValue(
|
|
25
|
+
copyValue(p2?: T): PLVStateData<T>;
|
|
24
26
|
}
|
|
25
27
|
export declare class PLVStatefulData<T> extends PLVStateData<T> {
|
|
26
28
|
isSuccess?: boolean;
|
|
27
29
|
error?: Error;
|
|
28
|
-
constructor(
|
|
29
|
-
static success<
|
|
30
|
-
static error<
|
|
30
|
+
constructor(m2?: T, n2?: boolean, o2?: Error);
|
|
31
|
+
static success<k2>(l2?: k2): PLVStatefulData<k2>;
|
|
32
|
+
static error<i2>(j2?: Error): PLVStatefulData<i2>;
|
|
31
33
|
}
|
|
32
34
|
export declare class PLVDisposable {
|
|
33
35
|
private _dispose;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// @keepTs
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
import ConfigurationConstant from "@ohos.app.ability.ConfigurationConstant";
|
|
2
4
|
import window from "@ohos.window";
|
|
3
5
|
export declare class PLVDeviceUtils {
|
|
@@ -6,6 +8,6 @@ export declare class PLVDeviceUtils {
|
|
|
6
8
|
static getWidth(): number;
|
|
7
9
|
static getHeight(): number;
|
|
8
10
|
static getMinDisplaySide(): number;
|
|
9
|
-
static setColorMode(
|
|
10
|
-
static setWindowSystemBarProperties(
|
|
11
|
+
static setColorMode(e3: ConfigurationConstant.ColorMode): void;
|
|
12
|
+
static setWindowSystemBarProperties(a3?: window.SystemBarProperties): void;
|
|
11
13
|
}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
+
// @keepTs
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
import { ClassConstructor } from 'class-transformer';
|
|
2
4
|
import { PLVHttpData } from '../modules/net/PLVHttpData';
|
|
3
5
|
import { PLVJSONObject } from './PLVType';
|
|
4
6
|
export default class PLVJSONUtils {
|
|
5
|
-
static safeStringify(
|
|
6
|
-
static safeParse(
|
|
7
|
-
static json2Bean<
|
|
8
|
-
static bean2Json(
|
|
9
|
-
static bean2Bean<
|
|
10
|
-
static httpData2Bean<
|
|
11
|
-
static json2Map(
|
|
12
|
-
static object2Map(
|
|
13
|
-
static map2json(
|
|
14
|
-
static map2jsonStr(
|
|
15
|
-
static toUnescapedData(
|
|
16
|
-
static toFillData<
|
|
7
|
+
static safeStringify(m4?: Object, n4?: (this: object, key: string, value: object) => object | undefined): string;
|
|
8
|
+
static safeParse(k4?: string): object | undefined;
|
|
9
|
+
static json2Bean<g4>(h4: ClassConstructor<g4>, i4: string): g4 | undefined;
|
|
10
|
+
static bean2Json(e4: Object | Array<Object | String | Number | Boolean> | null | undefined): string;
|
|
11
|
+
static bean2Bean<z3, a4>(b4: z3, c4: a4): z3 | undefined;
|
|
12
|
+
static httpData2Bean<u3>(v3: u3, w3: PLVHttpData<u3>): u3 | undefined;
|
|
13
|
+
static json2Map(t3: string): Map<string, Object>;
|
|
14
|
+
static object2Map(s3: PLVJSONObject): Map<string, Object | undefined>;
|
|
15
|
+
static map2json(o3: Map<string, Object | undefined>): Record<string, Object>;
|
|
16
|
+
static map2jsonStr(m3: Map<string, Object>, n3?: (this: object, key: string, value: object) => object | undefined): string;
|
|
17
|
+
static toUnescapedData(l3: string): string;
|
|
18
|
+
static toFillData<h3 extends FillData>(i3: ClassConstructor<h3> | h3, j3: string | Object | undefined): h3 | undefined;
|
|
17
19
|
}
|
|
18
20
|
interface FillData {
|
|
19
21
|
fill(): void;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
// @keepTs
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
export declare class PLVNetUtils {
|
|
2
|
-
static replaceUrl(
|
|
3
|
-
static formatUrl(
|
|
4
|
-
static formatParams(
|
|
5
|
-
static appendParams(
|
|
4
|
+
static replaceUrl(a5: string, b5: Map<string, string | undefined>): string;
|
|
5
|
+
static formatUrl(y4: string, z4: Record<string, string | undefined>): string;
|
|
6
|
+
static formatParams(s4?: Record<string, string>, t4?: boolean): string;
|
|
7
|
+
static appendParams(p4: string, q4?: Record<string, string>): string;
|
|
6
8
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// @keepTs
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
import preferences from "@ohos.data.preferences";
|
|
2
4
|
export declare class PLVPreferencesUtils {
|
|
3
5
|
private constructor();
|
|
@@ -7,7 +9,7 @@ export declare class PLVPreferencesUtils {
|
|
|
7
9
|
* @param value
|
|
8
10
|
* @param preferenceName
|
|
9
11
|
*/
|
|
10
|
-
static put(
|
|
12
|
+
static put(w5: string, x5: preferences.ValueType, y5?: string): Promise<void>;
|
|
11
13
|
/**
|
|
12
14
|
* 获取缓存值
|
|
13
15
|
* @param key
|
|
@@ -15,44 +17,44 @@ export declare class PLVPreferencesUtils {
|
|
|
15
17
|
* @param preferenceName
|
|
16
18
|
* @returns
|
|
17
19
|
*/
|
|
18
|
-
static get(
|
|
20
|
+
static get(t5: string, u5: preferences.ValueType, v5?: string): Promise<preferences.ValueType>;
|
|
19
21
|
/**
|
|
20
22
|
* 获取string类型的缓存值
|
|
21
23
|
* @param key
|
|
22
24
|
* @returns
|
|
23
25
|
*/
|
|
24
|
-
static getString(
|
|
26
|
+
static getString(r5: string, s5?: string): Promise<string>;
|
|
25
27
|
/**
|
|
26
28
|
* 获取number类型的缓存值
|
|
27
29
|
* @param key
|
|
28
30
|
* @returns
|
|
29
31
|
*/
|
|
30
|
-
static getNumber(
|
|
32
|
+
static getNumber(o5: string, p5?: string, q5?: number): Promise<number>;
|
|
31
33
|
/**
|
|
32
34
|
* 获取boolean类型的缓存值
|
|
33
35
|
* @param key
|
|
34
36
|
* @param preferenceName
|
|
35
37
|
* @returns
|
|
36
38
|
*/
|
|
37
|
-
static getBoolean(
|
|
39
|
+
static getBoolean(m5: string, n5?: string): Promise<boolean>;
|
|
38
40
|
/**
|
|
39
41
|
* 检查缓存的Preferences实例中是否包含名为给定Key的存储键值对
|
|
40
42
|
* @param key
|
|
41
43
|
* @param preferenceName
|
|
42
44
|
* @returns
|
|
43
45
|
*/
|
|
44
|
-
static has(
|
|
46
|
+
static has(k5: string, l5?: string): Promise<boolean>;
|
|
45
47
|
/**
|
|
46
48
|
* 删除缓存值
|
|
47
49
|
* @param key
|
|
48
50
|
* @param preferenceName
|
|
49
51
|
* @returns
|
|
50
52
|
*/
|
|
51
|
-
static delete(
|
|
53
|
+
static delete(i5: string, j5?: string): Promise<void>;
|
|
52
54
|
/**
|
|
53
55
|
* 清空缓存
|
|
54
56
|
* @param preferenceName
|
|
55
57
|
* @returns
|
|
56
58
|
*/
|
|
57
|
-
static clear(
|
|
59
|
+
static clear(h5?: string): Promise<void>;
|
|
58
60
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// @keepTs
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
export declare class PLVScheduledTask {
|
|
2
4
|
callback: Function;
|
|
3
5
|
delay: number;
|
|
@@ -5,7 +7,7 @@ export declare class PLVScheduledTask {
|
|
|
5
7
|
timerId?: number;
|
|
6
8
|
nextExecutionTime: number;
|
|
7
9
|
isRunning: boolean;
|
|
8
|
-
constructor(
|
|
10
|
+
constructor(c6: Function, d6: number, e6?: number);
|
|
9
11
|
start(): void;
|
|
10
12
|
scheduleNextExecution(): Promise<void>;
|
|
11
13
|
cancel(): void;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
// @keepTs
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
import { PLVCallback } from './PLVCallback';
|
|
2
4
|
export declare class PLVSimpleBuffer<T> {
|
|
3
5
|
private buffer;
|
|
4
6
|
private intervalId?;
|
|
5
7
|
private timespan;
|
|
6
8
|
private isRelease;
|
|
7
|
-
constructor(
|
|
8
|
-
observe(
|
|
9
|
+
constructor(h6?: number);
|
|
10
|
+
observe(g6?: PLVCallback<T[]>): void;
|
|
9
11
|
release(): void;
|
|
10
|
-
push(
|
|
12
|
+
push(f6: T): void;
|
|
11
13
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
// @keepTs
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
export declare class PLVSparseArray<V> {
|
|
2
4
|
private entries;
|
|
3
|
-
set(
|
|
4
|
-
get(
|
|
5
|
-
delete(
|
|
5
|
+
set(v6: number, w6: V): void;
|
|
6
|
+
get(s6: number): V | undefined;
|
|
7
|
+
delete(q6: number): void;
|
|
6
8
|
size(): number;
|
|
7
|
-
forEach(
|
|
8
|
-
forEachReverse(
|
|
9
|
-
someReverse(
|
|
9
|
+
forEach(o6: (key: number, value: V) => void): void;
|
|
10
|
+
forEachReverse(l6: (key: number, value: V) => void): void;
|
|
11
|
+
someReverse(i6: (key: number, value: V) => boolean): boolean;
|
|
10
12
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
// @keepTs
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
export declare class PLVTextUtils {
|
|
2
|
-
static checkValidDataLength(...
|
|
3
|
-
static parseString(
|
|
4
|
-
static convertSpecialString(
|
|
5
|
-
static toString(
|
|
6
|
-
static toWString(
|
|
7
|
-
static toKString(
|
|
8
|
-
static fixPic(
|
|
9
|
-
static isNumberZero(
|
|
4
|
+
static checkValidDataLength(...o7: string[]): boolean;
|
|
5
|
+
static parseString(g7?: string): string[];
|
|
6
|
+
static convertSpecialString(f7?: string): string;
|
|
7
|
+
static toString(e7?: number): string | undefined;
|
|
8
|
+
static toWString(d7?: number): string | undefined;
|
|
9
|
+
static toKString(c7?: number): string | undefined;
|
|
10
|
+
static fixPic(b7?: string): string;
|
|
11
|
+
static isNumberZero(z6?: string): boolean;
|
|
10
12
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
// @keepTs
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
export declare class PLVTimeUtils {
|
|
2
4
|
/**
|
|
3
5
|
* 以友好的方式显示视频时间
|
|
4
6
|
* @param millisecond
|
|
5
7
|
* @param fit 小时是否适配"00"
|
|
6
8
|
*/
|
|
7
|
-
static generateTime(
|
|
9
|
+
static generateTime(q7: number, r7: boolean): string;
|
|
8
10
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
// @keepTs
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
export declare class PLVToastUtils {
|
|
2
|
-
shortShow(
|
|
3
|
-
longShow(
|
|
4
|
+
shortShow(z7: string | Resource): void;
|
|
5
|
+
longShow(y7: string | Resource): void;
|
|
4
6
|
private show;
|
|
5
7
|
}
|
|
6
8
|
declare const _default: PLVToastUtils;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// @keepTs
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
import { PLVAvoidAreaChangeListener, PLVCallback, PLVCallback2, PLVDisposable, PLVMediaQueryListener } from './PLVCallback';
|
|
2
4
|
import common from "@ohos.app.ability.common";
|
|
3
5
|
import mediaquery from "@ohos.mediaquery";
|
|
@@ -6,28 +8,28 @@ import { PLVReject, PLVResolve } from './PLVType';
|
|
|
6
8
|
export default class PLVUtils {
|
|
7
9
|
private static readonly TIMES;
|
|
8
10
|
private constructor();
|
|
9
|
-
static init(
|
|
10
|
-
static getClassTag(
|
|
11
|
-
static retryWhen<
|
|
12
|
-
static disposablePromise<
|
|
13
|
-
static safePromise<
|
|
14
|
-
static retryPromise<
|
|
15
|
-
static delay(
|
|
16
|
-
static validCallback(
|
|
11
|
+
static init(h11: common.UIAbilityContext, i11: window.WindowStage): void;
|
|
12
|
+
static getClassTag(e11?: string | Object, f11?: boolean): string | undefined;
|
|
13
|
+
static retryWhen<z10 = void>(a11: PLVCallback<void, z10>, b11: PLVCallback<void, z10>): Promise<Awaited<z10>>;
|
|
14
|
+
static disposablePromise<v10>(w10: Promise<v10>, x10?: PLVDisposable): Promise<v10>;
|
|
15
|
+
static safePromise<o10 = void>(p10: PLVCallback2<PLVResolve<o10>, PLVReject, void>, q10?: PLVDisposable): Promise<o10>;
|
|
16
|
+
static retryPromise<f10>(g10: number, h10: number, i10: Promise<f10>, j10?: PLVDisposable): Promise<f10>;
|
|
17
|
+
static delay(d10?: number): Promise<void>;
|
|
18
|
+
static validCallback(c10: string): boolean;
|
|
17
19
|
static getPid(): string;
|
|
18
20
|
static getDeviceId(): string;
|
|
19
|
-
static undefinedToValue<
|
|
20
|
-
static copyText(
|
|
21
|
-
static listenerOrientation(
|
|
22
|
-
static listenerAvoidAreaChange(
|
|
23
|
-
static changeOrientation(
|
|
24
|
-
static isLandscape(
|
|
25
|
-
static setWindowFullScreen(
|
|
26
|
-
static setWindowSystemBarProperties(
|
|
27
|
-
static startScan(
|
|
28
|
-
static getVideoRectJS(
|
|
29
|
-
static getExitFullScreenJS(
|
|
30
|
-
static colorResourceToHex(
|
|
31
|
-
static colorIntToHex(
|
|
32
|
-
static debounce(
|
|
21
|
+
static undefinedToValue<w9>(x9: w9, y9: PLVCallback<w9, void>, z9?: number): undefined;
|
|
22
|
+
static copyText(v9: string): Promise<void>;
|
|
23
|
+
static listenerOrientation(t9: PLVCallback<mediaquery.MediaQueryResult>): PLVMediaQueryListener;
|
|
24
|
+
static listenerAvoidAreaChange(q9: PLVCallback<window.AvoidAreaOptions>): PLVAvoidAreaChangeListener;
|
|
25
|
+
static changeOrientation(j9: boolean, k9?: Object, l9?: window.Window): void;
|
|
26
|
+
static isLandscape(h9?: Object): boolean;
|
|
27
|
+
static setWindowFullScreen(w8?: boolean, x8?: boolean, y8?: Object, z8?: window.Window): Promise<Object[]>;
|
|
28
|
+
static setWindowSystemBarProperties(v8?: window.SystemBarProperties): void;
|
|
29
|
+
static startScan(p8?: Object): Promise<string>;
|
|
30
|
+
static getVideoRectJS(n8: boolean): string;
|
|
31
|
+
static getExitFullScreenJS(l8: boolean): string;
|
|
32
|
+
static colorResourceToHex(k8: Resource): string;
|
|
33
|
+
static colorIntToHex(h8: number, i8?: boolean): string;
|
|
34
|
+
static debounce(d8: Function, e8?: number, f8?: string): void;
|
|
33
35
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
// @keepTs
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
export declare class PLVWebUtils {
|
|
2
|
-
static toWebViewContent(
|
|
3
|
-
static toRGBA(
|
|
4
|
-
static cleanHTML(
|
|
5
|
-
static openWebLink(
|
|
4
|
+
static toWebViewContent(x11?: string, y11?: string): string;
|
|
5
|
+
static toRGBA(s11: string): string;
|
|
6
|
+
static cleanHTML(o11: string): string;
|
|
7
|
+
static openWebLink(j11?: string, k11?: object): void;
|
|
6
8
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// @keepTs
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
import { BuilderNode as BuilderNode } from "@ohos.arkui.node";
|
|
2
4
|
import { NodeController as NodeController } from "@ohos.arkui.node";
|
|
3
5
|
import { UIContext as UIContext } from "@ohos.arkui.UIContext";
|
|
@@ -6,9 +8,9 @@ export declare class PLVNodeControllerManager {
|
|
|
6
8
|
private static controllerManagers;
|
|
7
9
|
private controllers;
|
|
8
10
|
private constructor();
|
|
9
|
-
static get(
|
|
10
|
-
static delete(
|
|
11
|
-
getOrCreate(
|
|
11
|
+
static get(s12?: number): PLVNodeControllerManager;
|
|
12
|
+
static delete(r12: number): void;
|
|
13
|
+
getOrCreate(o12: string | NodeControllerConfig): PLVNodeController;
|
|
12
14
|
private destroy;
|
|
13
15
|
}
|
|
14
16
|
export declare class PLVNodeController extends NodeController {
|
|
@@ -24,12 +26,12 @@ export declare class PLVNodeController extends NodeController {
|
|
|
24
26
|
isShowPromise: PLVPromiseValue<boolean>;
|
|
25
27
|
private uiContext;
|
|
26
28
|
private environmentCallback?;
|
|
27
|
-
constructor(
|
|
28
|
-
makeNode(
|
|
29
|
-
fill(
|
|
29
|
+
constructor(l12: NodeControllerConfig);
|
|
30
|
+
makeNode(k12: UIContext): FrameNode | null;
|
|
31
|
+
fill(i12: WrappedBuilder<[
|
|
30
32
|
ESObject
|
|
31
|
-
]>,
|
|
32
|
-
show(
|
|
33
|
+
]>, j12: ESObject): PLVNodeController;
|
|
34
|
+
show(h12?: boolean): void;
|
|
33
35
|
destroy(): void;
|
|
34
36
|
private onEnvironment;
|
|
35
37
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// @keepTs
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
import { PLVPrintLogLevel } from '../../common/PLVCommonEnums';
|
|
2
4
|
import common from "@ohos.app.ability.common";
|
|
3
5
|
export declare class PLVLogger {
|
|
@@ -5,14 +7,14 @@ export declare class PLVLogger {
|
|
|
5
7
|
private tag;
|
|
6
8
|
private format;
|
|
7
9
|
private filePrinter?;
|
|
8
|
-
init(
|
|
9
|
-
level(
|
|
10
|
-
debug(
|
|
11
|
-
info(
|
|
12
|
-
warn(
|
|
13
|
-
error(
|
|
14
|
-
printWarn(
|
|
15
|
-
printError(
|
|
10
|
+
init(y13: common.UIAbilityContext): void;
|
|
11
|
+
level(x13: PLVPrintLogLevel): void;
|
|
12
|
+
debug(t13: string, u13: string, v13?: boolean): void;
|
|
13
|
+
info(p13: string, q13: string, r13?: boolean): void;
|
|
14
|
+
warn(l13: string, m13: string, n13?: boolean): void;
|
|
15
|
+
error(h13: string, i13: string, j13?: boolean): void;
|
|
16
|
+
printWarn(d13: string, e13: string, f13: Error): string;
|
|
17
|
+
printError(z12: string, a13: string, b13: Error): string;
|
|
16
18
|
private generateErrorMsg;
|
|
17
19
|
private intercept;
|
|
18
20
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
// @keepTs
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
import worker from '@ohos.worker';
|
|
2
4
|
import { FilePrinter } from '@ohos-port/xlog';
|
|
3
5
|
import { Printer } from '@ohos-port/xlog/src/main/ets/printer/Printer';
|
|
4
6
|
export declare class PLVXLogFilePrinter extends Printer {
|
|
5
7
|
builder: FilePrinter.Builder;
|
|
6
8
|
workerInstance?: worker.ThreadWorker;
|
|
7
|
-
constructor(
|
|
8
|
-
println(
|
|
9
|
+
constructor(f14: FilePrinter.Builder);
|
|
10
|
+
println(b14: number, c14: string, d14: string): void;
|
|
9
11
|
}
|
|
10
12
|
export declare class PLVXLogBuilder extends FilePrinter.Builder {
|
|
11
13
|
build(): FilePrinter;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
// @keepTs
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
import { PLVResponse } from '../../common/PLVType';
|
|
2
4
|
export declare class PLVHttpData<T> {
|
|
3
5
|
code?: number;
|
|
4
6
|
status?: string;
|
|
5
7
|
message?: string;
|
|
6
8
|
data?: T;
|
|
7
|
-
static fill<
|
|
9
|
+
static fill<m14>(n14: m14, o14: PLVResponse<m14>): void;
|
|
8
10
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
// @keepTs
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
import { AxiosError } from '@ohos/axios';
|
|
2
4
|
export declare class PLVHttpError extends AxiosError {
|
|
3
|
-
constructor(
|
|
4
|
-
log(
|
|
5
|
+
constructor(r14: AxiosError);
|
|
6
|
+
log(p14: string, q14: string): this;
|
|
5
7
|
}
|