@ccos/ccsdk-lite 1.0.20 → 1.0.21

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 CHANGED
@@ -509,6 +509,9 @@ function registerKeys(params) {
509
509
  function unregisterKeys(params) {
510
510
  return callNative(getFuncName$7('unregisterKeys'), params || { keys: [] });
511
511
  }
512
+ function providerCall(params) {
513
+ return callNative(getFuncName$7('providerCall'), params);
514
+ }
512
515
  var system = {
513
516
  ready: ready,
514
517
  getStartupParams: getStartupParams,
@@ -523,6 +526,7 @@ var system = {
523
526
  sendBroadcast: sendBroadcast,
524
527
  registerKeys: registerKeys,
525
528
  unregisterKeys: unregisterKeys,
529
+ providerCall: providerCall,
526
530
  //sendEvent
527
531
  };
528
532
 
package/lib/index.d.ts CHANGED
@@ -39,6 +39,7 @@ declare const _default: {
39
39
  sendBroadcast: typeof import("./system").sendBroadcast;
40
40
  registerKeys: typeof import("./system").registerKeys;
41
41
  unregisterKeys: typeof import("./system").unregisterKeys;
42
+ providerCall: typeof import("./system").providerCall;
42
43
  };
43
44
  storage: {
44
45
  setKey: typeof import("./storage").setKey;
@@ -8,6 +8,11 @@ export interface IntentParam {
8
8
  uri?: string;
9
9
  extras?: any;
10
10
  }
11
+ export interface ProviderCallParam {
12
+ uri: string;
13
+ method?: string;
14
+ arg?: string;
15
+ }
11
16
  export declare function ready(): Promise<any>;
12
17
  export declare function getStartupParams(): Promise<any>;
13
18
  export declare function getDeviceInfo(): Promise<any>;
@@ -21,6 +26,7 @@ export declare function removeEventListener(eventName: string, callback: Functio
21
26
  export declare function sendBroadcast(params: IntentParam): Promise<any>;
22
27
  export declare function registerKeys(params: SystemKeyParam | null): Promise<any>;
23
28
  export declare function unregisterKeys(params: SystemKeyParam | null): Promise<any>;
29
+ export declare function providerCall(params: ProviderCallParam): Promise<any>;
24
30
  declare const _default: {
25
31
  ready: typeof ready;
26
32
  getStartupParams: typeof getStartupParams;
@@ -35,5 +41,6 @@ declare const _default: {
35
41
  sendBroadcast: typeof sendBroadcast;
36
42
  registerKeys: typeof registerKeys;
37
43
  unregisterKeys: typeof unregisterKeys;
44
+ providerCall: typeof providerCall;
38
45
  };
39
46
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccos/ccsdk-lite",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "a jssdk for coocaa tv-system",
5
5
  "type": "module",
6
6
  "main": "lib/bundle.js",