forked from bigzx/react-native-screen-capture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
24 lines (20 loc) · 975 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
declare module 'react-native-screenshot-url' {
export type CallbackInfo = {
code: string, // 200 为正常 其他为异常
uri: string, // 文件路径
base64: string, // 图片base64 png
}
export default class ScreenShotUtil {
static checkPermissionsForScreenShot(): () => Promise<any>;
static requestPermissionsForScreenShot: () => Promise<any>;
static startListener: (callback: (result: CallbackInfo) => void, keyWords: string) => Promise<any>;
static startListenerWithPermission: (callback: (result: CallbackInfo) => void, keyWords: string) => Promise<any>;
static stopListener: () => Promise<any>;
static clearCache: (callback: (result: any) => void) => Promise<any>;
static screenShot: (callback: (result: any) => void, isHiddenStatus: any, config: {
extension: string,
quality: number,
scale: number
}) => Promise<any>;
}
}