-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathglobal.d.ts
More file actions
31 lines (31 loc) · 2.33 KB
/
Copy pathglobal.d.ts
File metadata and controls
31 lines (31 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
interface Window {
fcWidget: {
on: (event: string, callback: (resp?: any) => void) => void;
init: () => void;
setConfig: (config: any) => void;
hide: () => void;
};
sbutility: {
getDeviceAPILevel: (callback: (entry: string) => void, errorCallback: (err: any) => void) => void;
checkAppAvailability: (packageName: string, callback: (entry: string) => void, errorCallback: (err: any) => void) => void;
getDownloadDirectoryPath: (callback: (entry: string) => void, errorCallback: (err: any) => void) => void;
getAppVersion: (callback: (entry: string) => void, errorCallback: (err: any) => void) => void;
getAppName: (callback: (entry: string) => void, errorCallback: (err: any) => void) => void;
getAppPackageName: (callback: (entry: string) => void, errorCallback: (err: any) => void) => void;
openPlayStore: (appId: string, callback: (entry: string) => void, errorCallback: (err: any) => void) => void;
getDeviceInfo: (callback: (entry: string) => void, errorCallback: (err: any) => void) => void;
getDeviceId: (callback: (entry: string) => void, errorCallback: (err: any) => void) => void;
getMetaData: (callback: (entry: string) => void, errorCallback: (err: any) => void) => void;
getApkSize: (callback: (entry: string) => void, errorCallback: (err: any) => void) => void;
rm: (callback: (entry: string) => void, errorCallback: (err: any) => void) => void;
readFromAssets: (callback: (entry: string) => void, errorCallback: (err: any) => void) => void;
clearUtmInfo: (callback: (entry: string) => void, errorCallback: (err: any) => void) => void;
getUtmInfo: (callback: (entry: string) => void, errorCallback: (err: any) => void) => void;
exportApk: (callback: (entry: string) => void, errorCallback: (err: any) => void) => void;
getDeviceSpec: (callback: (entry: string) => void, errorCallback: (err: any) => void) => void;
getAppVersionName: (callback: (entry: string) => void, errorCallback: (err: any) => void) => void;
getBuildConfigValue: (callback: (entry: string) => void, errorCallback: (err: any) => void) => void;
getAppVersionCode: (callback: (entry: string) => void, errorCallback: (err: any) => void) => void;
getAppIcon: (callback: (entry: string) => void, errorCallback: (err: any) => void) => void;
}
}