@ccos/ccsdk-lite 1.0.4 → 1.0.6
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/androidView/index.d.ts +25 -0
- package/{dist → lib}/app/index.d.ts +4 -8
- package/{dist → lib}/bundle.js +333 -272
- package/{dist → lib}/core/index.d.ts +1 -0
- package/{dist → lib}/file/index.d.ts +4 -4
- package/{dist → lib}/index.d.ts +41 -40
- package/lib/nativeView/index.d.ts +19 -0
- package/{dist → lib}/network/index.d.ts +8 -0
- package/{dist → lib}/system/index.d.ts +2 -2
- package/lib/video/index.d.ts +45 -0
- package/package.json +6 -11
- package/dist/androidView/index.d.ts +0 -71
- /package/{dist → lib}/audio/index.d.ts +0 -0
- /package/{dist → lib}/core/bus.d.ts +0 -0
- /package/{dist → lib}/storage/index.d.ts +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface StartPAGParam {
|
|
2
|
+
path: string;
|
|
3
|
+
repeat: number;
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function startPagAni(params: StartPAGParam): Promise<any>;
|
|
10
|
+
export declare function stopPagAni(): Promise<any>;
|
|
11
|
+
export declare function sendTts(text: string, ttsId: string): Promise<any>;
|
|
12
|
+
export declare function stopTts(): Promise<any>;
|
|
13
|
+
export declare function sendStreamTts(text: string, ttsId: string, isFirst: boolean, isEnd: boolean): Promise<any>;
|
|
14
|
+
export declare function setBackground(needUpdateColor: boolean, color: number, needUpdateImage: boolean, imageUrl: string): Promise<any>;
|
|
15
|
+
export declare function clearBackground(): Promise<any>;
|
|
16
|
+
declare const _default: {
|
|
17
|
+
startPagAni: typeof startPagAni;
|
|
18
|
+
stopPagAni: typeof stopPagAni;
|
|
19
|
+
sendTts: typeof sendTts;
|
|
20
|
+
stopTts: typeof stopTts;
|
|
21
|
+
sendStreamTts: typeof sendStreamTts;
|
|
22
|
+
setBackground: typeof setBackground;
|
|
23
|
+
clearBackground: typeof clearBackground;
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -19,12 +19,10 @@ export declare function moveTaskToBack(): Promise<any>;
|
|
|
19
19
|
export declare function getUserInfo(): Promise<any>;
|
|
20
20
|
export declare function getAppList(): Promise<any>;
|
|
21
21
|
export declare function getAppInfo(params: GetAppInfoParam): Promise<any>;
|
|
22
|
-
export declare function
|
|
22
|
+
export declare function setLocalBroadcastHook(action: string, callback: Function): Promise<any>;
|
|
23
23
|
export declare function deleteLocalBroadcastHook(action: string): Promise<any>;
|
|
24
|
-
export declare function
|
|
24
|
+
export declare function setBroadcastHook(action: string, callback: Function): Promise<any>;
|
|
25
25
|
export declare function deleteBroadcastHook(action: string): Promise<any>;
|
|
26
|
-
export declare function playAudio(source: string, loop?: boolean, fromAssets?: boolean): Promise<any>;
|
|
27
|
-
export declare function stopAudio(): Promise<any>;
|
|
28
26
|
export declare function appPrivateMethod(method: string, params: any): Promise<any>;
|
|
29
27
|
declare const _default: {
|
|
30
28
|
startActivity: typeof startActivity;
|
|
@@ -37,12 +35,10 @@ declare const _default: {
|
|
|
37
35
|
getUserInfo: typeof getUserInfo;
|
|
38
36
|
getAppList: typeof getAppList;
|
|
39
37
|
getAppInfo: typeof getAppInfo;
|
|
40
|
-
|
|
38
|
+
setLocalBroadcastHook: typeof setLocalBroadcastHook;
|
|
41
39
|
deleteLocalBroadcastHook: typeof deleteLocalBroadcastHook;
|
|
42
|
-
|
|
40
|
+
setBroadcastHook: typeof setBroadcastHook;
|
|
43
41
|
deleteBroadcastHook: typeof deleteBroadcastHook;
|
|
44
|
-
playAudio: typeof playAudio;
|
|
45
|
-
stopAudio: typeof stopAudio;
|
|
46
42
|
appPrivateMethod: typeof appPrivateMethod;
|
|
47
43
|
};
|
|
48
44
|
export default _default;
|