@ccos/ccsdk-lite 1.0.5 → 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 +0 -46
- package/lib/app/index.d.ts +4 -8
- package/lib/bundle.js +333 -272
- package/lib/core/index.d.ts +1 -0
- package/lib/file/index.d.ts +4 -4
- package/lib/index.d.ts +41 -40
- package/lib/nativeView/index.d.ts +19 -0
- package/lib/network/index.d.ts +8 -0
- package/lib/system/index.d.ts +2 -2
- package/lib/video/index.d.ts +45 -0
- package/package.json +1 -1
package/lib/core/index.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ export declare function callNative(funcName: string, params: any): Promise<any>;
|
|
|
5
5
|
export declare function callWithPersistentCallBack(funcName: string, params: any, persistentIdName: string, callback: Function): Promise<any>;
|
|
6
6
|
export declare function deletePersistentCallBack(persistentIdName: string): void;
|
|
7
7
|
export declare function callbackFromNative(callbackId: string, data: string | object): void;
|
|
8
|
+
export declare function initSDK(): Promise<any>;
|
package/lib/file/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare function readAllContent(path: string, base64Flag?: boolean): Promise<any>;
|
|
2
2
|
export declare function writeAllContent(path: string, content: string, base64Flag?: boolean): Promise<any>;
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function
|
|
3
|
+
export declare function getAppBaseDir(): Promise<any>;
|
|
4
|
+
export declare function getAppCacheDir(): Promise<any>;
|
|
5
5
|
export declare function makeCacheFile(fileName?: string): Promise<any>;
|
|
6
6
|
export declare function makeNormalFile(fileName?: string): Promise<any>;
|
|
7
7
|
export declare function exists(path: string): Promise<any>;
|
|
@@ -26,8 +26,8 @@ export declare function list(path: string): Promise<any>;
|
|
|
26
26
|
declare const _default: {
|
|
27
27
|
readAllContent: typeof readAllContent;
|
|
28
28
|
writeAllContent: typeof writeAllContent;
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
getAppBaseDir: typeof getAppBaseDir;
|
|
30
|
+
getAppCacheDir: typeof getAppCacheDir;
|
|
31
31
|
makeCacheFile: typeof makeCacheFile;
|
|
32
32
|
makeNormalFile: typeof makeNormalFile;
|
|
33
33
|
exists: typeof exists;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { setAppCommandCallback, unsetAppCommandCallback } from './core';
|
|
2
2
|
export declare function isRunInAppBrowser(): boolean;
|
|
3
|
+
export declare function init(): void;
|
|
3
4
|
declare const _default: {
|
|
5
|
+
init: typeof init;
|
|
4
6
|
network: {
|
|
5
7
|
simpleHttpRequest: typeof import("./network").simpleHttpRequest;
|
|
6
8
|
httpGet: typeof import("./network").httpGet;
|
|
@@ -10,6 +12,10 @@ declare const _default: {
|
|
|
10
12
|
getDomainName: typeof import("./network").getDomainName;
|
|
11
13
|
getCommonHeader: typeof import("./network").getCommonHeader;
|
|
12
14
|
downloadToFile: typeof import("./network").downloadToFile;
|
|
15
|
+
setDownloadListener: typeof import("./network").setDownloadListener;
|
|
16
|
+
deleteDownloadListener: typeof import("./network").deleteDownloadListener;
|
|
17
|
+
setStreamResponseListener: typeof import("./network").setStreamResponseListener;
|
|
18
|
+
deleteStreamResponseListener: typeof import("./network").deleteStreamResponseListener;
|
|
13
19
|
};
|
|
14
20
|
app: {
|
|
15
21
|
startActivity: typeof import("./app").startActivity;
|
|
@@ -22,17 +28,15 @@ declare const _default: {
|
|
|
22
28
|
getUserInfo: typeof import("./app").getUserInfo;
|
|
23
29
|
getAppList: typeof import("./app").getAppList;
|
|
24
30
|
getAppInfo: typeof import("./app").getAppInfo;
|
|
25
|
-
|
|
31
|
+
setLocalBroadcastHook: typeof import("./app").setLocalBroadcastHook;
|
|
26
32
|
deleteLocalBroadcastHook: typeof import("./app").deleteLocalBroadcastHook;
|
|
27
|
-
|
|
33
|
+
setBroadcastHook: typeof import("./app").setBroadcastHook;
|
|
28
34
|
deleteBroadcastHook: typeof import("./app").deleteBroadcastHook;
|
|
29
|
-
playAudio: typeof import("./app").playAudio;
|
|
30
|
-
stopAudio: typeof import("./app").stopAudio;
|
|
31
35
|
appPrivateMethod: typeof import("./app").appPrivateMethod;
|
|
32
36
|
};
|
|
33
37
|
system: {
|
|
34
38
|
getSdkVersion: typeof import("./system").getSdkVersion;
|
|
35
|
-
|
|
39
|
+
setLifeCycleHook: typeof import("./system").setLifeCycleHook;
|
|
36
40
|
deleteLifeCycleHook: typeof import("./system").deleteLifeCycleHook;
|
|
37
41
|
enableSystemKey: typeof import("./system").enableSystemKey;
|
|
38
42
|
getDeviceInfo: typeof import("./system").getDeviceInfo;
|
|
@@ -47,38 +51,6 @@ declare const _default: {
|
|
|
47
51
|
deleteKey: typeof import("./storage").deleteKey;
|
|
48
52
|
clearAllKeys: typeof import("./storage").clearAllKeys;
|
|
49
53
|
};
|
|
50
|
-
androidView: {
|
|
51
|
-
startPagAni: typeof import("./androidView").startPagAni;
|
|
52
|
-
stopPagAni: typeof import("./androidView").stopPagAni;
|
|
53
|
-
sendTts: typeof import("./androidView").sendTts;
|
|
54
|
-
stopTts: typeof import("./androidView").stopTts;
|
|
55
|
-
sendStreamTts: typeof import("./androidView").sendStreamTts;
|
|
56
|
-
playerPlayNewUrl: typeof import("./androidView").playerPlayNewUrl;
|
|
57
|
-
playerStop: typeof import("./androidView").playerStop;
|
|
58
|
-
playerPause: typeof import("./androidView").playerPause;
|
|
59
|
-
playerStart: typeof import("./androidView").playerStart;
|
|
60
|
-
playerSeekTo: typeof import("./androidView").playerSeekTo;
|
|
61
|
-
playerHasPrepared: typeof import("./androidView").playerHasPrepared;
|
|
62
|
-
playerIsPlaying: typeof import("./androidView").playerIsPlaying;
|
|
63
|
-
playerGetDuration: typeof import("./androidView").playerGetDuration;
|
|
64
|
-
playerGetCurrentPosition: typeof import("./androidView").playerGetCurrentPosition;
|
|
65
|
-
playerGetPlayerState: typeof import("./androidView").playerGetPlayerState;
|
|
66
|
-
playerPlayNewFile: typeof import("./androidView").playerPlayNewFile;
|
|
67
|
-
playerSetLooping: typeof import("./androidView").playerSetLooping;
|
|
68
|
-
playerSetAutoWakeLock: typeof import("./androidView").playerSetAutoWakeLock;
|
|
69
|
-
playerRePlay: typeof import("./androidView").playerRePlay;
|
|
70
|
-
playerSetPlayWhenReady: typeof import("./androidView").playerSetPlayWhenReady;
|
|
71
|
-
playerGetPlayerCore: typeof import("./androidView").playerGetPlayerCore;
|
|
72
|
-
playerGetRealPlayerCore: typeof import("./androidView").playerGetRealPlayerCore;
|
|
73
|
-
playerSetListener: typeof import("./androidView").playerSetListener;
|
|
74
|
-
playerDeleteListener: typeof import("./androidView").playerDeleteListener;
|
|
75
|
-
setVideoLayout: typeof import("./androidView").setVideoLayout;
|
|
76
|
-
setVideoVisible: typeof import("./androidView").setVideoVisible;
|
|
77
|
-
setBackground: typeof import("./androidView").setBackground;
|
|
78
|
-
clearBackground: typeof import("./androidView").clearBackground;
|
|
79
|
-
showVoiceTipsBar: typeof import("./androidView").showVoiceTipsBar;
|
|
80
|
-
hideVoiceTipsBar: typeof import("./androidView").hideVoiceTipsBar;
|
|
81
|
-
};
|
|
82
54
|
audio: {
|
|
83
55
|
playNew: typeof import("./audio").playNew;
|
|
84
56
|
stop: typeof import("./audio").stop;
|
|
@@ -96,11 +68,40 @@ declare const _default: {
|
|
|
96
68
|
setListener: typeof import("./audio").setListener;
|
|
97
69
|
deleteListener: typeof import("./audio").deleteListener;
|
|
98
70
|
};
|
|
99
|
-
|
|
71
|
+
video: {
|
|
72
|
+
setVideoLayout: typeof import("./video").setVideoLayout;
|
|
73
|
+
setVideoVisible: typeof import("./video").setVideoVisible;
|
|
74
|
+
playNewUrl: typeof import("./video").playNewUrl;
|
|
75
|
+
playNewFile: typeof import("./video").playNewFile;
|
|
76
|
+
stop: typeof import("./video").stop;
|
|
77
|
+
pause: typeof import("./video").pause;
|
|
78
|
+
start: typeof import("./video").start;
|
|
79
|
+
seekTo: typeof import("./video").seekTo;
|
|
80
|
+
hasPrepared: typeof import("./video").hasPrepared;
|
|
81
|
+
isPlaying: typeof import("./video").isPlaying;
|
|
82
|
+
getDuration: typeof import("./video").getDuration;
|
|
83
|
+
getCurrentPosition: typeof import("./video").getCurrentPosition;
|
|
84
|
+
getPlayerState: typeof import("./video").getPlayerState;
|
|
85
|
+
setLooping: typeof import("./video").setLooping;
|
|
86
|
+
setAutoWakeLock: typeof import("./video").setAutoWakeLock;
|
|
87
|
+
rePlay: typeof import("./video").rePlay;
|
|
88
|
+
setPlayWhenReady: typeof import("./video").setPlayWhenReady;
|
|
89
|
+
getPlayerCore: typeof import("./video").getPlayerCore;
|
|
90
|
+
getRealPlayerCore: typeof import("./video").getRealPlayerCore;
|
|
91
|
+
setListener: typeof import("./video").setListener;
|
|
92
|
+
deleteListener: typeof import("./video").deleteListener;
|
|
93
|
+
};
|
|
94
|
+
nativeView: {
|
|
95
|
+
startNewPagAni: typeof import("./nativeView").startNewPagAni;
|
|
96
|
+
stopPagAni: typeof import("./nativeView").stopPagAni;
|
|
97
|
+
setPagVisibility: typeof import("./nativeView").setPagVisibility;
|
|
98
|
+
setPagXY: typeof import("./nativeView").setPagXY;
|
|
99
|
+
};
|
|
100
|
+
fs: {
|
|
100
101
|
readAllContent: typeof import("./file").readAllContent;
|
|
101
102
|
writeAllContent: typeof import("./file").writeAllContent;
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
getAppBaseDir: typeof import("./file").getAppBaseDir;
|
|
104
|
+
getAppCacheDir: typeof import("./file").getAppCacheDir;
|
|
104
105
|
makeCacheFile: typeof import("./file").makeCacheFile;
|
|
105
106
|
makeNormalFile: typeof import("./file").makeNormalFile;
|
|
106
107
|
exists: typeof import("./file").exists;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 startNewPagAni(params: StartPAGParam): Promise<any>;
|
|
10
|
+
export declare function stopPagAni(): Promise<any>;
|
|
11
|
+
export declare function setPagVisibility(visible?: boolean): Promise<any>;
|
|
12
|
+
export declare function setPagXY(x: number, y: number): Promise<any>;
|
|
13
|
+
declare const _default: {
|
|
14
|
+
startNewPagAni: typeof startNewPagAni;
|
|
15
|
+
stopPagAni: typeof stopPagAni;
|
|
16
|
+
setPagVisibility: typeof setPagVisibility;
|
|
17
|
+
setPagXY: typeof setPagXY;
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
package/lib/network/index.d.ts
CHANGED
|
@@ -24,6 +24,10 @@ export declare function getDomainName(domain: string): Promise<any>;
|
|
|
24
24
|
export declare function getCommonHeader(): Promise<any>;
|
|
25
25
|
export declare function readSse(params: SSERequestParam): Promise<any>;
|
|
26
26
|
export declare function downloadToFile(url: string, tempFlag?: boolean, method?: string, header?: string, postType?: string, body?: string): Promise<any>;
|
|
27
|
+
export declare function setDownloadListener(callback: Function): Promise<any>;
|
|
28
|
+
export declare function deleteDownloadListener(): Promise<any>;
|
|
29
|
+
export declare function setStreamResponseListener(callback: Function): Promise<any>;
|
|
30
|
+
export declare function deleteStreamResponseListener(): Promise<any>;
|
|
27
31
|
declare const _default: {
|
|
28
32
|
simpleHttpRequest: typeof simpleHttpRequest;
|
|
29
33
|
httpGet: typeof httpGet;
|
|
@@ -33,5 +37,9 @@ declare const _default: {
|
|
|
33
37
|
getDomainName: typeof getDomainName;
|
|
34
38
|
getCommonHeader: typeof getCommonHeader;
|
|
35
39
|
downloadToFile: typeof downloadToFile;
|
|
40
|
+
setDownloadListener: typeof setDownloadListener;
|
|
41
|
+
deleteDownloadListener: typeof deleteDownloadListener;
|
|
42
|
+
setStreamResponseListener: typeof setStreamResponseListener;
|
|
43
|
+
deleteStreamResponseListener: typeof deleteStreamResponseListener;
|
|
36
44
|
};
|
|
37
45
|
export default _default;
|
package/lib/system/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export interface SystemKeyParam {
|
|
|
2
2
|
keys: number[];
|
|
3
3
|
}
|
|
4
4
|
export declare function getSdkVersion(): Promise<any>;
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function setLifeCycleHook(callback: Function): Promise<any>;
|
|
6
6
|
export declare function deleteLifeCycleHook(): Promise<any>;
|
|
7
7
|
export declare function enableSystemKey(params: SystemKeyParam | null): Promise<any>;
|
|
8
8
|
export declare function getDeviceInfo(): Promise<any>;
|
|
@@ -12,7 +12,7 @@ export declare function checkApi(apiName: string): Promise<any>;
|
|
|
12
12
|
export declare function getDisplayInfo(): Promise<any>;
|
|
13
13
|
declare const _default: {
|
|
14
14
|
getSdkVersion: typeof getSdkVersion;
|
|
15
|
-
|
|
15
|
+
setLifeCycleHook: typeof setLifeCycleHook;
|
|
16
16
|
deleteLifeCycleHook: typeof deleteLifeCycleHook;
|
|
17
17
|
enableSystemKey: typeof enableSystemKey;
|
|
18
18
|
getDeviceInfo: typeof getDeviceInfo;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare function setVideoLayout(width: number, height: number, x: number, y: number): Promise<any>;
|
|
2
|
+
export declare function setVideoVisible(show: boolean): Promise<any>;
|
|
3
|
+
export declare function playNewUrl(url: string): Promise<any>;
|
|
4
|
+
export declare function playNewFile(path: string): Promise<any>;
|
|
5
|
+
export declare function stop(): Promise<any>;
|
|
6
|
+
export declare function pause(): Promise<any>;
|
|
7
|
+
export declare function start(): Promise<any>;
|
|
8
|
+
export declare function seekTo(position: number): Promise<any>;
|
|
9
|
+
export declare function hasPrepared(): Promise<any>;
|
|
10
|
+
export declare function isPlaying(): Promise<any>;
|
|
11
|
+
export declare function getDuration(): Promise<any>;
|
|
12
|
+
export declare function getCurrentPosition(): Promise<any>;
|
|
13
|
+
export declare function getPlayerState(): Promise<any>;
|
|
14
|
+
export declare function setLooping(isLooping: boolean, silentLoop?: boolean): Promise<any>;
|
|
15
|
+
export declare function setAutoWakeLock(autoWakeLock: boolean): Promise<any>;
|
|
16
|
+
export declare function rePlay(): Promise<any>;
|
|
17
|
+
export declare function setPlayWhenReady(playWhenReady?: boolean): Promise<any>;
|
|
18
|
+
export declare function getPlayerCore(): Promise<any>;
|
|
19
|
+
export declare function getRealPlayerCore(): Promise<any>;
|
|
20
|
+
export declare function setListener(callback: Function): Promise<any>;
|
|
21
|
+
export declare function deleteListener(): Promise<any>;
|
|
22
|
+
declare const _default: {
|
|
23
|
+
setVideoLayout: typeof setVideoLayout;
|
|
24
|
+
setVideoVisible: typeof setVideoVisible;
|
|
25
|
+
playNewUrl: typeof playNewUrl;
|
|
26
|
+
playNewFile: typeof playNewFile;
|
|
27
|
+
stop: typeof stop;
|
|
28
|
+
pause: typeof pause;
|
|
29
|
+
start: typeof start;
|
|
30
|
+
seekTo: typeof seekTo;
|
|
31
|
+
hasPrepared: typeof hasPrepared;
|
|
32
|
+
isPlaying: typeof isPlaying;
|
|
33
|
+
getDuration: typeof getDuration;
|
|
34
|
+
getCurrentPosition: typeof getCurrentPosition;
|
|
35
|
+
getPlayerState: typeof getPlayerState;
|
|
36
|
+
setLooping: typeof setLooping;
|
|
37
|
+
setAutoWakeLock: typeof setAutoWakeLock;
|
|
38
|
+
rePlay: typeof rePlay;
|
|
39
|
+
setPlayWhenReady: typeof setPlayWhenReady;
|
|
40
|
+
getPlayerCore: typeof getPlayerCore;
|
|
41
|
+
getRealPlayerCore: typeof getRealPlayerCore;
|
|
42
|
+
setListener: typeof setListener;
|
|
43
|
+
deleteListener: typeof deleteListener;
|
|
44
|
+
};
|
|
45
|
+
export default _default;
|