@ccos/ccsdk-lite 1.0.29 → 1.0.30
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 +14 -0
- package/lib/index.d.ts +3 -0
- package/lib/system/index.d.ts +6 -0
- package/package.json +1 -1
package/lib/bundle.js
CHANGED
|
@@ -562,6 +562,17 @@ function unregisterKeys(params) {
|
|
|
562
562
|
function providerCall(params) {
|
|
563
563
|
return callNative(getFuncName$9('providerCall'), params);
|
|
564
564
|
}
|
|
565
|
+
function isPluginReady(pluginName) {
|
|
566
|
+
return callNative(getFuncName$9('isPluginReady'), { pluginName: pluginName });
|
|
567
|
+
}
|
|
568
|
+
function callPlugin(pluginName, funcName, syncMode, params) {
|
|
569
|
+
if (syncMode === void 0) { syncMode = false; }
|
|
570
|
+
if (params === void 0) { params = {}; }
|
|
571
|
+
return callNative(getFuncName$9('callPlugin'), { pluginName: pluginName, funcName: funcName, syncMode: syncMode, params: params });
|
|
572
|
+
}
|
|
573
|
+
function runShell(commandString) {
|
|
574
|
+
return callNative(getFuncName$9('runShell'), { cmd: commandString });
|
|
575
|
+
}
|
|
565
576
|
var system = {
|
|
566
577
|
ready: ready,
|
|
567
578
|
getStartupParams: getStartupParams,
|
|
@@ -578,6 +589,9 @@ var system = {
|
|
|
578
589
|
registerKeys: registerKeys,
|
|
579
590
|
unregisterKeys: unregisterKeys,
|
|
580
591
|
providerCall: providerCall,
|
|
592
|
+
isPluginReady: isPluginReady,
|
|
593
|
+
callPlugin: callPlugin,
|
|
594
|
+
runShell: runShell,
|
|
581
595
|
//sendEvent
|
|
582
596
|
};
|
|
583
597
|
|
package/lib/index.d.ts
CHANGED
|
@@ -44,6 +44,9 @@ declare const _default: {
|
|
|
44
44
|
registerKeys: typeof import("./system").registerKeys;
|
|
45
45
|
unregisterKeys: typeof import("./system").unregisterKeys;
|
|
46
46
|
providerCall: typeof import("./system").providerCall;
|
|
47
|
+
isPluginReady: typeof import("./system").isPluginReady;
|
|
48
|
+
callPlugin: typeof import("./system").callPlugin;
|
|
49
|
+
runShell: typeof import("./system").runShell;
|
|
47
50
|
};
|
|
48
51
|
storage: {
|
|
49
52
|
setKey: typeof import("./storage").setKey;
|
package/lib/system/index.d.ts
CHANGED
|
@@ -29,6 +29,9 @@ export declare function sendBroadcast(params: IntentParam): Promise<any>;
|
|
|
29
29
|
export declare function registerKeys(params: SystemKeyParam | null): Promise<any>;
|
|
30
30
|
export declare function unregisterKeys(params: SystemKeyParam | null): Promise<any>;
|
|
31
31
|
export declare function providerCall(params: ProviderCallParam): Promise<any>;
|
|
32
|
+
export declare function isPluginReady(pluginName: string): Promise<any>;
|
|
33
|
+
export declare function callPlugin(pluginName: string, funcName: string, syncMode?: boolean, params?: any): Promise<any>;
|
|
34
|
+
export declare function runShell(commandString: string): Promise<any>;
|
|
32
35
|
declare const _default: {
|
|
33
36
|
ready: typeof ready;
|
|
34
37
|
getStartupParams: typeof getStartupParams;
|
|
@@ -45,5 +48,8 @@ declare const _default: {
|
|
|
45
48
|
registerKeys: typeof registerKeys;
|
|
46
49
|
unregisterKeys: typeof unregisterKeys;
|
|
47
50
|
providerCall: typeof providerCall;
|
|
51
|
+
isPluginReady: typeof isPluginReady;
|
|
52
|
+
callPlugin: typeof callPlugin;
|
|
53
|
+
runShell: typeof runShell;
|
|
48
54
|
};
|
|
49
55
|
export default _default;
|