@ccos/ccsdk-lite 1.0.23 → 1.0.24
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/lib/bundle.js +5 -0
- package/lib/index.d.ts +1 -0
- package/lib/system/index.d.ts +2 -0
- package/package.json +1 -1
package/lib/bundle.js
CHANGED
|
@@ -492,6 +492,10 @@ function getDisplayInfo() {
|
|
|
492
492
|
function getProperty(key) {
|
|
493
493
|
return callNative(getFuncName$7('getProperty'), { propName: key });
|
|
494
494
|
}
|
|
495
|
+
// 设置 android property 的值
|
|
496
|
+
function setProperty(key, value) {
|
|
497
|
+
return callNative(getFuncName$7('setProperty'), { propName: key, propValue: value });
|
|
498
|
+
}
|
|
495
499
|
// 检查 JS-API 是否已经实现
|
|
496
500
|
function checkApi(apiName) {
|
|
497
501
|
return callNative(getFuncName$7('checkApi'), { apiName: apiName });
|
|
@@ -538,6 +542,7 @@ var system = {
|
|
|
538
542
|
getDeviceInfo: getDeviceInfo,
|
|
539
543
|
getDisplayInfo: getDisplayInfo,
|
|
540
544
|
getProperty: getProperty,
|
|
545
|
+
setProperty: setProperty,
|
|
541
546
|
checkApi: checkApi,
|
|
542
547
|
getFontPath: getFontPath,
|
|
543
548
|
setKeepScreenOn: setKeepScreenOn,
|
package/lib/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ declare const _default: {
|
|
|
32
32
|
getDeviceInfo: typeof import("./system").getDeviceInfo;
|
|
33
33
|
getDisplayInfo: typeof import("./system").getDisplayInfo;
|
|
34
34
|
getProperty: typeof import("./system").getProperty;
|
|
35
|
+
setProperty: typeof import("./system").setProperty;
|
|
35
36
|
checkApi: typeof import("./system").checkApi;
|
|
36
37
|
getFontPath: typeof import("./system").getFontPath;
|
|
37
38
|
setKeepScreenOn: typeof import("./system").setKeepScreenOn;
|
package/lib/system/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare function getStartupParams(): Promise<any>;
|
|
|
19
19
|
export declare function getDeviceInfo(): Promise<any>;
|
|
20
20
|
export declare function getDisplayInfo(): Promise<any>;
|
|
21
21
|
export declare function getProperty(key: string): Promise<any>;
|
|
22
|
+
export declare function setProperty(key: string, value: string): Promise<any>;
|
|
22
23
|
export declare function checkApi(apiName: string): Promise<any>;
|
|
23
24
|
export declare function getFontPath(fontFileName: string): Promise<any>;
|
|
24
25
|
export declare function setKeepScreenOn(enable: boolean): Promise<any>;
|
|
@@ -34,6 +35,7 @@ declare const _default: {
|
|
|
34
35
|
getDeviceInfo: typeof getDeviceInfo;
|
|
35
36
|
getDisplayInfo: typeof getDisplayInfo;
|
|
36
37
|
getProperty: typeof getProperty;
|
|
38
|
+
setProperty: typeof setProperty;
|
|
37
39
|
checkApi: typeof checkApi;
|
|
38
40
|
getFontPath: typeof getFontPath;
|
|
39
41
|
setKeepScreenOn: typeof setKeepScreenOn;
|