hylid-bridge 1.0.1 → 1.0.2

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/README.md CHANGED
@@ -128,6 +128,7 @@ The following table lists the latest JSAPIs that are supported in JS bridge, and
128
128
  > - getImageInfo
129
129
  > - getLocation
130
130
  > - getNetworkType
131
+ > - getAppIdSync
131
132
  > - getPaymentCode
132
133
  > - getPhoneNumber
133
134
  > - getServerTime
package/lib/appEnv.d.ts CHANGED
@@ -6,5 +6,6 @@ interface AppEnv {
6
6
  isMpWebIntl: boolean;
7
7
  isMpWebCn: boolean;
8
8
  }
9
- declare const _default: AppEnv;
10
- export default _default;
9
+ declare const appEnv: AppEnv;
10
+ export default appEnv;
11
+ export { appEnv };
package/lib/appEnv.js CHANGED
@@ -1,5 +1,11 @@
1
1
  import { callbackFn, loadAppxBridge, upFirst } from './common/utils';
2
+ import * as mpWebCnApis from './clients/mp-web/cn';
3
+ import * as mpWebIntlAPis from './clients/mp-web/intl';
2
4
  var clientType = [{
5
+ name: 'mp_web_intl',
6
+ regs: [/alipayIDE/i],
7
+ type: 'ua'
8
+ }, {
3
9
  name: 'web_cn',
4
10
  regs: [/^((?!miniprogram).)*$/i, /alipay/i],
5
11
  type: 'ua'
@@ -59,6 +65,8 @@ function getEnv() {
59
65
  }
60
66
 
61
67
  var appEnv = getEnv();
68
+ export default appEnv;
69
+ export { appEnv };
62
70
 
63
71
  if (appEnv.isMpWebCn || appEnv.isMpWebIntl) {
64
72
  var env_1 = window;
@@ -88,8 +96,6 @@ if (appEnv.isMpWebCn || appEnv.isMpWebIntl) {
88
96
  handleMiniProgramAPIMessage_1(message);
89
97
  };
90
98
 
91
- Object.assign(my, appEnv.isMpWebCn ? require('./clients/mp-web/cn') : require('./clients/mp-web/intl'));
99
+ Object.assign(my, appEnv.isMpWebCn ? mpWebCnApis : mpWebIntlAPis);
92
100
  });
93
- }
94
-
95
- export default appEnv;
101
+ }
package/lib/bridges.js CHANGED
@@ -59,6 +59,7 @@ import mpWebChooseImage from './common/mp-web/chooseImage';
59
59
  import mpWebClearStorage from './common/mp-web/clearStorage';
60
60
  import mpWebConfirm from './common/mp-web/confirm';
61
61
  import mpWebCnCrossPay from './clients/mp-web/cn/crossPay';
62
+ import mpWebGetAppIdSync from './common/mp-web/getAppIdSync';
62
63
  import mpWebGetAuthCode from './common/mp-web/getAuthCode';
63
64
  import mpWebGetClipboard from './common/mp-web/getClipboard';
64
65
  import mpWebGetImageInfo from './common/mp-web/getImageInfo';
@@ -646,9 +647,9 @@ if (appEnv.isMpLazada) {
646
647
  } else if (appEnv.isMpTaobao) {
647
648
  getAppIdSync = notImplemented;
648
649
  } else if (appEnv.isMpWebCn) {
649
- getAppIdSync = notImplemented;
650
+ getAppIdSync = mpWebGetAppIdSync;
650
651
  } else if (appEnv.isMpWebIntl) {
651
- getAppIdSync = notImplemented;
652
+ getAppIdSync = mpWebGetAppIdSync;
652
653
  } else if (appEnv.isWebCn) {
653
654
  getAppIdSync = notImplemented;
654
655
  } else if (appEnv.isWebIntl) {
@@ -4,6 +4,7 @@ import chooseImage from '../../../common/mp-web/chooseImage';
4
4
  import clearStorage from '../../../common/mp-web/clearStorage';
5
5
  import confirm from '../../../common/mp-web/confirm';
6
6
  import crossPay from './crossPay';
7
+ import getAppIdSync from '../../../common/mp-web/getAppIdSync';
7
8
  import getAuthCode from '../../../common/mp-web/getAuthCode';
8
9
  import getClipboard from '../../../common/mp-web/getClipboard';
9
10
  import getImageInfo from '../../../common/mp-web/getImageInfo';
@@ -40,13 +41,14 @@ import showNavigationBarLoading from '../../../common/mp-web/showNavigationBarLo
40
41
  import showToast from '../../../common/mp-web/showToast';
41
42
  import tradePay from '../../../common/mp-web/tradePay';
42
43
  import vibrate from '../../../common/mp-web/vibrate';
43
- export { alert, chooseImage, clearStorage, confirm, crossPay, getAuthCode, getClipboard, getImageInfo, getLocation, getNetworkType, getPhoneNumber, getStorage, getSystemInfo, hideKeyboard, hideLoading, hideNavigationBarLoading, hideToast, makePhoneCall, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToMiniProgram, previewImage, prompt, redirectTo, reLaunch, removeStorage, request, saveImage, scan, setClipboard, setNavigationBar, setOptionMenu, setStorage, showAuthGuide, showLoading, showNavigationBarLoading, showToast, tradePay, vibrate, };
44
+ export { alert, chooseImage, clearStorage, confirm, crossPay, getAppIdSync, getAuthCode, getClipboard, getImageInfo, getLocation, getNetworkType, getPhoneNumber, getStorage, getSystemInfo, hideKeyboard, hideLoading, hideNavigationBarLoading, hideToast, makePhoneCall, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToMiniProgram, previewImage, prompt, redirectTo, reLaunch, removeStorage, request, saveImage, scan, setClipboard, setNavigationBar, setOptionMenu, setStorage, showAuthGuide, showLoading, showNavigationBarLoading, showToast, tradePay, vibrate, };
44
45
  declare const _default: {
45
46
  alert: (args?: AlertArgs | undefined) => void;
46
47
  chooseImage: (args: ChooseImageArgs) => void;
47
48
  clearStorage: (args?: AsyncCallback<any> | undefined) => void;
48
49
  confirm: (args: ConfirmArgs) => void;
49
50
  crossPay: (args: TradePayArgs) => void;
51
+ getAppIdSync: () => string;
50
52
  getAuthCode: (args: GetAuthCodeArgs) => void;
51
53
  getClipboard: (args: GetClipboardArgs) => void;
52
54
  getImageInfo: (args: GetImageInfo) => void;
@@ -4,6 +4,7 @@ import chooseImage from '../../../common/mp-web/chooseImage';
4
4
  import clearStorage from '../../../common/mp-web/clearStorage';
5
5
  import confirm from '../../../common/mp-web/confirm';
6
6
  import crossPay from './crossPay';
7
+ import getAppIdSync from '../../../common/mp-web/getAppIdSync';
7
8
  import getAuthCode from '../../../common/mp-web/getAuthCode';
8
9
  import getClipboard from '../../../common/mp-web/getClipboard';
9
10
  import getImageInfo from '../../../common/mp-web/getImageInfo';
@@ -40,13 +41,14 @@ import showNavigationBarLoading from '../../../common/mp-web/showNavigationBarLo
40
41
  import showToast from '../../../common/mp-web/showToast';
41
42
  import tradePay from '../../../common/mp-web/tradePay';
42
43
  import vibrate from '../../../common/mp-web/vibrate';
43
- export { alert, chooseImage, clearStorage, confirm, crossPay, getAuthCode, getClipboard, getImageInfo, getLocation, getNetworkType, getPhoneNumber, getStorage, getSystemInfo, hideKeyboard, hideLoading, hideNavigationBarLoading, hideToast, makePhoneCall, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToMiniProgram, previewImage, prompt, redirectTo, reLaunch, removeStorage, request, saveImage, scan, setClipboard, setNavigationBar, setOptionMenu, setStorage, showAuthGuide, showLoading, showNavigationBarLoading, showToast, tradePay, vibrate };
44
+ export { alert, chooseImage, clearStorage, confirm, crossPay, getAppIdSync, getAuthCode, getClipboard, getImageInfo, getLocation, getNetworkType, getPhoneNumber, getStorage, getSystemInfo, hideKeyboard, hideLoading, hideNavigationBarLoading, hideToast, makePhoneCall, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToMiniProgram, previewImage, prompt, redirectTo, reLaunch, removeStorage, request, saveImage, scan, setClipboard, setNavigationBar, setOptionMenu, setStorage, showAuthGuide, showLoading, showNavigationBarLoading, showToast, tradePay, vibrate };
44
45
  export default {
45
46
  alert: alert,
46
47
  chooseImage: chooseImage,
47
48
  clearStorage: clearStorage,
48
49
  confirm: confirm,
49
50
  crossPay: crossPay,
51
+ getAppIdSync: getAppIdSync,
50
52
  getAuthCode: getAuthCode,
51
53
  getClipboard: getClipboard,
52
54
  getImageInfo: getImageInfo,
@@ -11,6 +11,7 @@ import clearStorage from '../../../common/mp-web/clearStorage';
11
11
  import confirm from '../../../common/mp-web/confirm';
12
12
  import crossPay from './crossPay';
13
13
  import exitApp from './exitApp';
14
+ import getAppIdSync from '../../../common/mp-web/getAppIdSync';
14
15
  import getAppToken from './getAppToken';
15
16
  import getAuthCode from '../../../common/mp-web/getAuthCode';
16
17
  import getClipboard from '../../../common/mp-web/getClipboard';
@@ -66,7 +67,7 @@ import thirdPartyAuthForAc from './thirdPartyAuthForAc';
66
67
  import tradePay from '../../../common/mp-web/tradePay';
67
68
  import uploadApdidToken from './uploadApdidToken';
68
69
  import vibrate from '../../../common/mp-web/vibrate';
69
- export { addFatigueAction, alert, apDisableJSAPI, appxrpc, APRegionRPC, batchQueryCdpSpaceInfo, chooseImage, choosePhoneContact, clearStorage, confirm, crossPay, exitApp, getAppToken, getAuthCode, getClipboard, getComponentAuth, getImageInfo, getLocation, getNetworkType, getPaymentCode, getPhoneNumber, getServerTime, getSetting, getSiteInfo, getStorage, getSystemInfo, hideKeyboard, hideLoading, hideNavigationBarLoading, hideToast, inquireQuote, isInstalledApp, makePhoneCall, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToBizScene, navigateToMiniProgram, openSchemeWithBacking, paySignCenter, previewImage, prompt, redirectTo, regionFetchAllApps, regionSearchAppsByKeywords, reLaunch, removeStorage, request, rpc, saveImage, scan, setClipboard, setNavigationBar, setOptionMenu, setStorage, showAuthGuide, showLoading, showNavigationBarLoading, showToast, signContract, startApp, startBizService, thirdPartyAuthForAc, tradePay, uploadApdidToken, vibrate, };
70
+ export { addFatigueAction, alert, apDisableJSAPI, appxrpc, APRegionRPC, batchQueryCdpSpaceInfo, chooseImage, choosePhoneContact, clearStorage, confirm, crossPay, exitApp, getAppIdSync, getAppToken, getAuthCode, getClipboard, getComponentAuth, getImageInfo, getLocation, getNetworkType, getPaymentCode, getPhoneNumber, getServerTime, getSetting, getSiteInfo, getStorage, getSystemInfo, hideKeyboard, hideLoading, hideNavigationBarLoading, hideToast, inquireQuote, isInstalledApp, makePhoneCall, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToBizScene, navigateToMiniProgram, openSchemeWithBacking, paySignCenter, previewImage, prompt, redirectTo, regionFetchAllApps, regionSearchAppsByKeywords, reLaunch, removeStorage, request, rpc, saveImage, scan, setClipboard, setNavigationBar, setOptionMenu, setStorage, showAuthGuide, showLoading, showNavigationBarLoading, showToast, signContract, startApp, startBizService, thirdPartyAuthForAc, tradePay, uploadApdidToken, vibrate, };
70
71
  declare const _default: {
71
72
  addFatigueAction: (args?: import("../../../types").AddFatigueActionArgs | undefined) => void;
72
73
  alert: (args?: AlertArgs | undefined) => void;
@@ -82,6 +83,7 @@ declare const _default: {
82
83
  confirm: (args: ConfirmArgs) => void;
83
84
  crossPay: (args?: TradePayArgs | undefined) => void;
84
85
  exitApp: (args?: any) => void;
86
+ getAppIdSync: () => string;
85
87
  getAppToken: (args?: any) => void;
86
88
  getAuthCode: (args: GetAuthCodeArgs) => void;
87
89
  getClipboard: (args: GetClipboardArgs) => void;
@@ -11,6 +11,7 @@ import clearStorage from '../../../common/mp-web/clearStorage';
11
11
  import confirm from '../../../common/mp-web/confirm';
12
12
  import crossPay from './crossPay';
13
13
  import exitApp from './exitApp';
14
+ import getAppIdSync from '../../../common/mp-web/getAppIdSync';
14
15
  import getAppToken from './getAppToken';
15
16
  import getAuthCode from '../../../common/mp-web/getAuthCode';
16
17
  import getClipboard from '../../../common/mp-web/getClipboard';
@@ -66,7 +67,7 @@ import thirdPartyAuthForAc from './thirdPartyAuthForAc';
66
67
  import tradePay from '../../../common/mp-web/tradePay';
67
68
  import uploadApdidToken from './uploadApdidToken';
68
69
  import vibrate from '../../../common/mp-web/vibrate';
69
- export { addFatigueAction, alert, apDisableJSAPI, appxrpc, APRegionRPC, batchQueryCdpSpaceInfo, chooseImage, choosePhoneContact, clearStorage, confirm, crossPay, exitApp, getAppToken, getAuthCode, getClipboard, getComponentAuth, getImageInfo, getLocation, getNetworkType, getPaymentCode, getPhoneNumber, getServerTime, getSetting, getSiteInfo, getStorage, getSystemInfo, hideKeyboard, hideLoading, hideNavigationBarLoading, hideToast, inquireQuote, isInstalledApp, makePhoneCall, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToBizScene, navigateToMiniProgram, openSchemeWithBacking, paySignCenter, previewImage, prompt, redirectTo, regionFetchAllApps, regionSearchAppsByKeywords, reLaunch, removeStorage, request, rpc, saveImage, scan, setClipboard, setNavigationBar, setOptionMenu, setStorage, showAuthGuide, showLoading, showNavigationBarLoading, showToast, signContract, startApp, startBizService, thirdPartyAuthForAc, tradePay, uploadApdidToken, vibrate };
70
+ export { addFatigueAction, alert, apDisableJSAPI, appxrpc, APRegionRPC, batchQueryCdpSpaceInfo, chooseImage, choosePhoneContact, clearStorage, confirm, crossPay, exitApp, getAppIdSync, getAppToken, getAuthCode, getClipboard, getComponentAuth, getImageInfo, getLocation, getNetworkType, getPaymentCode, getPhoneNumber, getServerTime, getSetting, getSiteInfo, getStorage, getSystemInfo, hideKeyboard, hideLoading, hideNavigationBarLoading, hideToast, inquireQuote, isInstalledApp, makePhoneCall, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToBizScene, navigateToMiniProgram, openSchemeWithBacking, paySignCenter, previewImage, prompt, redirectTo, regionFetchAllApps, regionSearchAppsByKeywords, reLaunch, removeStorage, request, rpc, saveImage, scan, setClipboard, setNavigationBar, setOptionMenu, setStorage, showAuthGuide, showLoading, showNavigationBarLoading, showToast, signContract, startApp, startBizService, thirdPartyAuthForAc, tradePay, uploadApdidToken, vibrate };
70
71
  export default {
71
72
  addFatigueAction: addFatigueAction,
72
73
  alert: alert,
@@ -80,6 +81,7 @@ export default {
80
81
  confirm: confirm,
81
82
  crossPay: crossPay,
82
83
  exitApp: exitApp,
84
+ getAppIdSync: getAppIdSync,
83
85
  getAppToken: getAppToken,
84
86
  getAuthCode: getAuthCode,
85
87
  getClipboard: getClipboard,
@@ -19,12 +19,14 @@ import getBluetoothAdapterState from '../../../common/web/getBluetoothAdapterSta
19
19
  import getBluetoothDevices from '../../../common/web/getBluetoothDevices';
20
20
  import getClipboard from '../../../common/web/getClipboard';
21
21
  import getConnectedBluetoothDevices from '../../../common/web/getConnectedBluetoothDevices';
22
+ import getFileInfo from '../../../common/web/getFileInfo';
22
23
  import getImageInfo from '../../../common/web/getImageInfo';
23
24
  import getLocation from '../../../common/web/getLocation';
24
25
  import getNetworkType from '../../../common/web/getNetworkType';
25
26
  import getPhoneNumber from '../../../common/web/getPhoneNumber';
26
27
  import getSavedFileInfo from '../../../common/web/getSavedFileInfo';
27
28
  import getSavedFileList from '../../../common/web/getSavedFileList';
29
+ import getScreenBrightness from '../../../common/web/getScreenBrightness';
28
30
  import getServerTime from '../../../common/web/getServerTime';
29
31
  import getSetting from '../../../common/web/getSetting';
30
32
  import getStorage from '../../../common/web/getStorage';
@@ -49,6 +51,7 @@ import offSocketClose from '../../../common/web/offSocketClose';
49
51
  import offSocketError from '../../../common/web/offSocketError';
50
52
  import offSocketMessage from '../../../common/web/offSocketMessage';
51
53
  import offSocketOpen from '../../../common/web/offSocketOpen';
54
+ import offUserCaptureScreen from '../../../common/web/offUserCaptureScreen';
52
55
  import onAccelerometerChange from '../../../common/web/onAccelerometerChange';
53
56
  import onBLECharacteristicValueChange from '../../../common/web/onBLECharacteristicValueChange';
54
57
  import onBLEConnectionStateChanged from '../../../common/web/onBLEConnectionStateChanged';
@@ -59,7 +62,9 @@ import onSocketClose from '../../../common/web/onSocketClose';
59
62
  import onSocketError from '../../../common/web/onSocketError';
60
63
  import onSocketMessage from '../../../common/web/onSocketMessage';
61
64
  import onSocketOpen from '../../../common/web/onSocketOpen';
65
+ import onUserCaptureScreen from '../../../common/web/onUserCaptureScreen';
62
66
  import openBluetoothAdapter from '../../../common/web/openBluetoothAdapter';
67
+ import openDocument from '../../../common/web/openDocument';
63
68
  import openSetting from '../../../common/web/openSetting';
64
69
  import previewImage from '../../../common/web/previewImage';
65
70
  import readBLECharacteristicValue from '../../../common/web/readBLECharacteristicValue';
@@ -75,8 +80,10 @@ import sendSocketMessage from '../../../common/web/sendSocketMessage';
75
80
  import setBackgroundColor from '../../../common/web/setBackgroundColor';
76
81
  import setCanPullDown from '../../../common/web/setCanPullDown';
77
82
  import setClipboard from '../../../common/web/setClipboard';
83
+ import setKeepScreenOn from '../../../common/web/setKeepScreenOn';
78
84
  import setNavigationBar from '../../../common/web/setNavigationBar';
79
85
  import setOptionMenu from '../../../common/web/setOptionMenu';
86
+ import setScreenBrightness from '../../../common/web/setScreenBrightness';
80
87
  import setStorage from '../../../common/web/setStorage';
81
88
  import setTabBarStyle from '../../../common/web/setTabBarStyle';
82
89
  import showActionSheet from '../../../common/web/showActionSheet';
@@ -94,14 +101,7 @@ import uploadFile from '../../../common/web/uploadFile';
94
101
  import vibrate from '../../../common/web/vibrate';
95
102
  import watchShake from '../../../common/web/watchShake';
96
103
  import writeBLECharacteristicValue from '../../../common/web/writeBLECharacteristicValue';
97
- import getFileInfo from '../../../common/web/getFileInfo';
98
- import openDocument from '../../../common/web/openDocument';
99
- import onUserCaptureScreen from '../../../common/web/onUserCaptureScreen';
100
- import offUserCaptureScreen from '../../../common/web/offUserCaptureScreen';
101
- import setKeepScreenOn from '../../../common/web/setKeepScreenOn';
102
- import getScreenBrightness from '../../../common/web/getScreenBrightness';
103
- import setScreenBrightness from '../../../common/web/setScreenBrightness';
104
- export { addPhoneContact, alert, chooseImage, clearStorage, closeBluetoothAdapter, closeSocket, confirm, connectBLEDevice, connectSocket, datePicker, disconnectBLEDevice, downloadFile, getAuthCode, getBatteryInfo, getBLEDeviceCharacteristics, getBLEDeviceServices, getBluetoothAdapterState, getBluetoothDevices, getClipboard, getConnectedBluetoothDevices, getImageInfo, getLocation, getNetworkType, getPhoneNumber, getSavedFileInfo, getSavedFileList, getServerTime, getSetting, getStorage, getSystemInfo, hideKeyboard, hideLoading, hideNavigationBarLoading, hideToast, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToMiniProgram, notifyBLECharacteristicValueChange, offAccelerometerChange, offBLECharacteristicValueChange, offBLEConnectionStateChanged, offBluetoothAdapterStateChange, offBluetoothDeviceFound, offCompassChange, offSocketClose, offSocketError, offSocketMessage, offSocketOpen, onAccelerometerChange, onBLECharacteristicValueChange, onBLEConnectionStateChanged, onBluetoothAdapterStateChange, onBluetoothDeviceFound, onCompassChange, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, openBluetoothAdapter, openSetting, previewImage, readBLECharacteristicValue, redirectTo, reLaunch, removeSavedFile, removeStorage, request, saveFile, saveImage, scan, sendSocketMessage, setBackgroundColor, setCanPullDown, setClipboard, setNavigationBar, setOptionMenu, setStorage, setTabBarStyle, showActionSheet, showAuthGuide, showLoading, showNavigationBarLoading, showToast, signContract, startBluetoothDevicesDiscovery, startPullDownRefresh, stopBluetoothDevicesDiscovery, stopPullDownRefresh, switchTab, uploadFile, vibrate, watchShake, writeBLECharacteristicValue, getFileInfo, openDocument, onUserCaptureScreen, offUserCaptureScreen, setKeepScreenOn, getScreenBrightness, setScreenBrightness, };
104
+ export { addPhoneContact, alert, chooseImage, clearStorage, closeBluetoothAdapter, closeSocket, confirm, connectBLEDevice, connectSocket, datePicker, disconnectBLEDevice, downloadFile, getAuthCode, getBatteryInfo, getBLEDeviceCharacteristics, getBLEDeviceServices, getBluetoothAdapterState, getBluetoothDevices, getClipboard, getConnectedBluetoothDevices, getFileInfo, getImageInfo, getLocation, getNetworkType, getPhoneNumber, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getStorage, getSystemInfo, hideKeyboard, hideLoading, hideNavigationBarLoading, hideToast, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToMiniProgram, notifyBLECharacteristicValueChange, offAccelerometerChange, offBLECharacteristicValueChange, offBLEConnectionStateChanged, offBluetoothAdapterStateChange, offBluetoothDeviceFound, offCompassChange, offSocketClose, offSocketError, offSocketMessage, offSocketOpen, offUserCaptureScreen, onAccelerometerChange, onBLECharacteristicValueChange, onBLEConnectionStateChanged, onBluetoothAdapterStateChange, onBluetoothDeviceFound, onCompassChange, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onUserCaptureScreen, openBluetoothAdapter, openDocument, openSetting, previewImage, readBLECharacteristicValue, redirectTo, reLaunch, removeSavedFile, removeStorage, request, saveFile, saveImage, scan, sendSocketMessage, setBackgroundColor, setCanPullDown, setClipboard, setKeepScreenOn, setNavigationBar, setOptionMenu, setScreenBrightness, setStorage, setTabBarStyle, showActionSheet, showAuthGuide, showLoading, showNavigationBarLoading, showToast, signContract, startBluetoothDevicesDiscovery, startPullDownRefresh, stopBluetoothDevicesDiscovery, stopPullDownRefresh, switchTab, uploadFile, vibrate, watchShake, writeBLECharacteristicValue, };
105
105
  declare const _default: {
106
106
  addPhoneContact: (args: Partial<AddPhoneContactArgs>) => void;
107
107
  alert: (args?: AlertArgs | undefined) => void;
@@ -123,12 +123,19 @@ declare const _default: {
123
123
  getBluetoothDevices: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
124
124
  getClipboard: (args: GetClipboardArgs) => void;
125
125
  getConnectedBluetoothDevices: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
126
+ getFileInfo: (args?: ({
127
+ apFilePath: string;
128
+ digestAlgorithm?: string | undefined;
129
+ } & AsyncCallback<any>) | undefined) => void;
126
130
  getImageInfo: (args: GetImageInfo) => void;
127
131
  getLocation: (args: GetLocationArgs) => void;
128
132
  getNetworkType: (args: GetNetworkTypeArgs) => void;
129
133
  getPhoneNumber: (args?: any) => void;
130
134
  getSavedFileInfo: (args: GetSavedFileInfo) => void;
131
135
  getSavedFileList: (args: GetSavedFileListArgs) => void;
136
+ getScreenBrightness: (args: AsyncCallback<{
137
+ brightness: number;
138
+ }>) => void;
132
139
  getServerTime: (args: AsyncCallback<{
133
140
  time: number;
134
141
  }>) => void;
@@ -155,6 +162,7 @@ declare const _default: {
155
162
  offSocketError: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
156
163
  offSocketMessage: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
157
164
  offSocketOpen: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
165
+ offUserCaptureScreen: (args?: (() => void) | undefined) => void;
158
166
  onAccelerometerChange: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
159
167
  onBLECharacteristicValueChange: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
160
168
  onBLEConnectionStateChanged: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
@@ -165,7 +173,12 @@ declare const _default: {
165
173
  onSocketError: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
166
174
  onSocketMessage: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
167
175
  onSocketOpen: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
176
+ onUserCaptureScreen: (args: () => void) => void;
168
177
  openBluetoothAdapter: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
178
+ openDocument: (args?: ({
179
+ filePath: string;
180
+ fileType: string;
181
+ } & AsyncCallback<any>) | undefined) => void;
169
182
  openSetting: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
170
183
  previewImage: (args: PreviewImageArgs) => void;
171
184
  readBLECharacteristicValue: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
@@ -183,8 +196,10 @@ declare const _default: {
183
196
  canPullDown: boolean;
184
197
  }) => void;
185
198
  setClipboard: (args: SetClipboardArgs) => void;
199
+ setKeepScreenOn: (args: SetKeepScreenOnArgs) => void;
186
200
  setNavigationBar: (args: SetNavigationBarArgs) => void;
187
201
  setOptionMenu: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
202
+ setScreenBrightness: (args: SetScreenBrightnessArgs) => void;
188
203
  setStorage: (args: SetStorage) => void;
189
204
  setTabBarStyle: (opt: import("../../../types").TabBarStyle) => void;
190
205
  showActionSheet: (opt: import("../../../types").ShowActionSheet) => void;
@@ -202,20 +217,5 @@ declare const _default: {
202
217
  vibrate: (args: AsyncCallback<void>) => void;
203
218
  watchShake: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
204
219
  writeBLECharacteristicValue: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
205
- getFileInfo: (args?: ({
206
- apFilePath: string;
207
- digestAlgorithm?: string | undefined;
208
- } & AsyncCallback<any>) | undefined) => void;
209
- openDocument: (args?: ({
210
- filePath: string;
211
- fileType: string;
212
- } & AsyncCallback<any>) | undefined) => void;
213
- onUserCaptureScreen: (args: () => void) => void;
214
- offUserCaptureScreen: (args?: (() => void) | undefined) => void;
215
- setKeepScreenOn: (args: SetKeepScreenOnArgs) => void;
216
- getScreenBrightness: (args: AsyncCallback<{
217
- brightness: number;
218
- }>) => void;
219
- setScreenBrightness: (args: SetScreenBrightnessArgs) => void;
220
220
  };
221
221
  export default _default;
@@ -19,12 +19,14 @@ import getBluetoothAdapterState from '../../../common/web/getBluetoothAdapterSta
19
19
  import getBluetoothDevices from '../../../common/web/getBluetoothDevices';
20
20
  import getClipboard from '../../../common/web/getClipboard';
21
21
  import getConnectedBluetoothDevices from '../../../common/web/getConnectedBluetoothDevices';
22
+ import getFileInfo from '../../../common/web/getFileInfo';
22
23
  import getImageInfo from '../../../common/web/getImageInfo';
23
24
  import getLocation from '../../../common/web/getLocation';
24
25
  import getNetworkType from '../../../common/web/getNetworkType';
25
26
  import getPhoneNumber from '../../../common/web/getPhoneNumber';
26
27
  import getSavedFileInfo from '../../../common/web/getSavedFileInfo';
27
28
  import getSavedFileList from '../../../common/web/getSavedFileList';
29
+ import getScreenBrightness from '../../../common/web/getScreenBrightness';
28
30
  import getServerTime from '../../../common/web/getServerTime';
29
31
  import getSetting from '../../../common/web/getSetting';
30
32
  import getStorage from '../../../common/web/getStorage';
@@ -49,6 +51,7 @@ import offSocketClose from '../../../common/web/offSocketClose';
49
51
  import offSocketError from '../../../common/web/offSocketError';
50
52
  import offSocketMessage from '../../../common/web/offSocketMessage';
51
53
  import offSocketOpen from '../../../common/web/offSocketOpen';
54
+ import offUserCaptureScreen from '../../../common/web/offUserCaptureScreen';
52
55
  import onAccelerometerChange from '../../../common/web/onAccelerometerChange';
53
56
  import onBLECharacteristicValueChange from '../../../common/web/onBLECharacteristicValueChange';
54
57
  import onBLEConnectionStateChanged from '../../../common/web/onBLEConnectionStateChanged';
@@ -59,7 +62,9 @@ import onSocketClose from '../../../common/web/onSocketClose';
59
62
  import onSocketError from '../../../common/web/onSocketError';
60
63
  import onSocketMessage from '../../../common/web/onSocketMessage';
61
64
  import onSocketOpen from '../../../common/web/onSocketOpen';
65
+ import onUserCaptureScreen from '../../../common/web/onUserCaptureScreen';
62
66
  import openBluetoothAdapter from '../../../common/web/openBluetoothAdapter';
67
+ import openDocument from '../../../common/web/openDocument';
63
68
  import openSetting from '../../../common/web/openSetting';
64
69
  import previewImage from '../../../common/web/previewImage';
65
70
  import readBLECharacteristicValue from '../../../common/web/readBLECharacteristicValue';
@@ -75,8 +80,10 @@ import sendSocketMessage from '../../../common/web/sendSocketMessage';
75
80
  import setBackgroundColor from '../../../common/web/setBackgroundColor';
76
81
  import setCanPullDown from '../../../common/web/setCanPullDown';
77
82
  import setClipboard from '../../../common/web/setClipboard';
83
+ import setKeepScreenOn from '../../../common/web/setKeepScreenOn';
78
84
  import setNavigationBar from '../../../common/web/setNavigationBar';
79
85
  import setOptionMenu from '../../../common/web/setOptionMenu';
86
+ import setScreenBrightness from '../../../common/web/setScreenBrightness';
80
87
  import setStorage from '../../../common/web/setStorage';
81
88
  import setTabBarStyle from '../../../common/web/setTabBarStyle';
82
89
  import showActionSheet from '../../../common/web/showActionSheet';
@@ -94,14 +101,7 @@ import uploadFile from '../../../common/web/uploadFile';
94
101
  import vibrate from '../../../common/web/vibrate';
95
102
  import watchShake from '../../../common/web/watchShake';
96
103
  import writeBLECharacteristicValue from '../../../common/web/writeBLECharacteristicValue';
97
- import getFileInfo from '../../../common/web/getFileInfo';
98
- import openDocument from '../../../common/web/openDocument';
99
- import onUserCaptureScreen from '../../../common/web/onUserCaptureScreen';
100
- import offUserCaptureScreen from '../../../common/web/offUserCaptureScreen';
101
- import setKeepScreenOn from '../../../common/web/setKeepScreenOn';
102
- import getScreenBrightness from '../../../common/web/getScreenBrightness';
103
- import setScreenBrightness from '../../../common/web/setScreenBrightness';
104
- export { addPhoneContact, alert, chooseImage, clearStorage, closeBluetoothAdapter, closeSocket, confirm, connectBLEDevice, connectSocket, datePicker, disconnectBLEDevice, downloadFile, getAuthCode, getBatteryInfo, getBLEDeviceCharacteristics, getBLEDeviceServices, getBluetoothAdapterState, getBluetoothDevices, getClipboard, getConnectedBluetoothDevices, getImageInfo, getLocation, getNetworkType, getPhoneNumber, getSavedFileInfo, getSavedFileList, getServerTime, getSetting, getStorage, getSystemInfo, hideKeyboard, hideLoading, hideNavigationBarLoading, hideToast, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToMiniProgram, notifyBLECharacteristicValueChange, offAccelerometerChange, offBLECharacteristicValueChange, offBLEConnectionStateChanged, offBluetoothAdapterStateChange, offBluetoothDeviceFound, offCompassChange, offSocketClose, offSocketError, offSocketMessage, offSocketOpen, onAccelerometerChange, onBLECharacteristicValueChange, onBLEConnectionStateChanged, onBluetoothAdapterStateChange, onBluetoothDeviceFound, onCompassChange, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, openBluetoothAdapter, openSetting, previewImage, readBLECharacteristicValue, redirectTo, reLaunch, removeSavedFile, removeStorage, request, saveFile, saveImage, scan, sendSocketMessage, setBackgroundColor, setCanPullDown, setClipboard, setNavigationBar, setOptionMenu, setStorage, setTabBarStyle, showActionSheet, showAuthGuide, showLoading, showNavigationBarLoading, showToast, signContract, startBluetoothDevicesDiscovery, startPullDownRefresh, stopBluetoothDevicesDiscovery, stopPullDownRefresh, switchTab, uploadFile, vibrate, watchShake, writeBLECharacteristicValue, getFileInfo, openDocument, onUserCaptureScreen, offUserCaptureScreen, setKeepScreenOn, getScreenBrightness, setScreenBrightness };
104
+ export { addPhoneContact, alert, chooseImage, clearStorage, closeBluetoothAdapter, closeSocket, confirm, connectBLEDevice, connectSocket, datePicker, disconnectBLEDevice, downloadFile, getAuthCode, getBatteryInfo, getBLEDeviceCharacteristics, getBLEDeviceServices, getBluetoothAdapterState, getBluetoothDevices, getClipboard, getConnectedBluetoothDevices, getFileInfo, getImageInfo, getLocation, getNetworkType, getPhoneNumber, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getStorage, getSystemInfo, hideKeyboard, hideLoading, hideNavigationBarLoading, hideToast, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToMiniProgram, notifyBLECharacteristicValueChange, offAccelerometerChange, offBLECharacteristicValueChange, offBLEConnectionStateChanged, offBluetoothAdapterStateChange, offBluetoothDeviceFound, offCompassChange, offSocketClose, offSocketError, offSocketMessage, offSocketOpen, offUserCaptureScreen, onAccelerometerChange, onBLECharacteristicValueChange, onBLEConnectionStateChanged, onBluetoothAdapterStateChange, onBluetoothDeviceFound, onCompassChange, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onUserCaptureScreen, openBluetoothAdapter, openDocument, openSetting, previewImage, readBLECharacteristicValue, redirectTo, reLaunch, removeSavedFile, removeStorage, request, saveFile, saveImage, scan, sendSocketMessage, setBackgroundColor, setCanPullDown, setClipboard, setKeepScreenOn, setNavigationBar, setOptionMenu, setScreenBrightness, setStorage, setTabBarStyle, showActionSheet, showAuthGuide, showLoading, showNavigationBarLoading, showToast, signContract, startBluetoothDevicesDiscovery, startPullDownRefresh, stopBluetoothDevicesDiscovery, stopPullDownRefresh, switchTab, uploadFile, vibrate, watchShake, writeBLECharacteristicValue };
105
105
  export default {
106
106
  addPhoneContact: addPhoneContact,
107
107
  alert: alert,
@@ -123,12 +123,14 @@ export default {
123
123
  getBluetoothDevices: getBluetoothDevices,
124
124
  getClipboard: getClipboard,
125
125
  getConnectedBluetoothDevices: getConnectedBluetoothDevices,
126
+ getFileInfo: getFileInfo,
126
127
  getImageInfo: getImageInfo,
127
128
  getLocation: getLocation,
128
129
  getNetworkType: getNetworkType,
129
130
  getPhoneNumber: getPhoneNumber,
130
131
  getSavedFileInfo: getSavedFileInfo,
131
132
  getSavedFileList: getSavedFileList,
133
+ getScreenBrightness: getScreenBrightness,
132
134
  getServerTime: getServerTime,
133
135
  getSetting: getSetting,
134
136
  getStorage: getStorage,
@@ -153,6 +155,7 @@ export default {
153
155
  offSocketError: offSocketError,
154
156
  offSocketMessage: offSocketMessage,
155
157
  offSocketOpen: offSocketOpen,
158
+ offUserCaptureScreen: offUserCaptureScreen,
156
159
  onAccelerometerChange: onAccelerometerChange,
157
160
  onBLECharacteristicValueChange: onBLECharacteristicValueChange,
158
161
  onBLEConnectionStateChanged: onBLEConnectionStateChanged,
@@ -163,7 +166,9 @@ export default {
163
166
  onSocketError: onSocketError,
164
167
  onSocketMessage: onSocketMessage,
165
168
  onSocketOpen: onSocketOpen,
169
+ onUserCaptureScreen: onUserCaptureScreen,
166
170
  openBluetoothAdapter: openBluetoothAdapter,
171
+ openDocument: openDocument,
167
172
  openSetting: openSetting,
168
173
  previewImage: previewImage,
169
174
  readBLECharacteristicValue: readBLECharacteristicValue,
@@ -179,8 +184,10 @@ export default {
179
184
  setBackgroundColor: setBackgroundColor,
180
185
  setCanPullDown: setCanPullDown,
181
186
  setClipboard: setClipboard,
187
+ setKeepScreenOn: setKeepScreenOn,
182
188
  setNavigationBar: setNavigationBar,
183
189
  setOptionMenu: setOptionMenu,
190
+ setScreenBrightness: setScreenBrightness,
184
191
  setStorage: setStorage,
185
192
  setTabBarStyle: setTabBarStyle,
186
193
  showActionSheet: showActionSheet,
@@ -197,12 +204,5 @@ export default {
197
204
  uploadFile: uploadFile,
198
205
  vibrate: vibrate,
199
206
  watchShake: watchShake,
200
- writeBLECharacteristicValue: writeBLECharacteristicValue,
201
- getFileInfo: getFileInfo,
202
- openDocument: openDocument,
203
- onUserCaptureScreen: onUserCaptureScreen,
204
- offUserCaptureScreen: offUserCaptureScreen,
205
- setKeepScreenOn: setKeepScreenOn,
206
- getScreenBrightness: getScreenBrightness,
207
- setScreenBrightness: setScreenBrightness
207
+ writeBLECharacteristicValue: writeBLECharacteristicValue
208
208
  };
@@ -19,12 +19,14 @@ import getBluetoothAdapterState from '../../../common/web/getBluetoothAdapterSta
19
19
  import getBluetoothDevices from '../../../common/web/getBluetoothDevices';
20
20
  import getClipboard from '../../../common/web/getClipboard';
21
21
  import getConnectedBluetoothDevices from '../../../common/web/getConnectedBluetoothDevices';
22
+ import getFileInfo from '../../../common/web/getFileInfo';
22
23
  import getImageInfo from '../../../common/web/getImageInfo';
23
24
  import getLocation from '../../../common/web/getLocation';
24
25
  import getNetworkType from '../../../common/web/getNetworkType';
25
26
  import getPhoneNumber from '../../../common/web/getPhoneNumber';
26
27
  import getSavedFileInfo from '../../../common/web/getSavedFileInfo';
27
28
  import getSavedFileList from '../../../common/web/getSavedFileList';
29
+ import getScreenBrightness from '../../../common/web/getScreenBrightness';
28
30
  import getServerTime from '../../../common/web/getServerTime';
29
31
  import getSetting from '../../../common/web/getSetting';
30
32
  import getSiteInfo from './getSiteInfo';
@@ -50,6 +52,7 @@ import offSocketClose from '../../../common/web/offSocketClose';
50
52
  import offSocketError from '../../../common/web/offSocketError';
51
53
  import offSocketMessage from '../../../common/web/offSocketMessage';
52
54
  import offSocketOpen from '../../../common/web/offSocketOpen';
55
+ import offUserCaptureScreen from '../../../common/web/offUserCaptureScreen';
53
56
  import onAccelerometerChange from '../../../common/web/onAccelerometerChange';
54
57
  import onBLECharacteristicValueChange from '../../../common/web/onBLECharacteristicValueChange';
55
58
  import onBLEConnectionStateChanged from '../../../common/web/onBLEConnectionStateChanged';
@@ -60,7 +63,9 @@ import onSocketClose from '../../../common/web/onSocketClose';
60
63
  import onSocketError from '../../../common/web/onSocketError';
61
64
  import onSocketMessage from '../../../common/web/onSocketMessage';
62
65
  import onSocketOpen from '../../../common/web/onSocketOpen';
66
+ import onUserCaptureScreen from '../../../common/web/onUserCaptureScreen';
63
67
  import openBluetoothAdapter from '../../../common/web/openBluetoothAdapter';
68
+ import openDocument from '../../../common/web/openDocument';
64
69
  import openSetting from '../../../common/web/openSetting';
65
70
  import previewImage from '../../../common/web/previewImage';
66
71
  import readBLECharacteristicValue from '../../../common/web/readBLECharacteristicValue';
@@ -76,8 +81,10 @@ import sendSocketMessage from '../../../common/web/sendSocketMessage';
76
81
  import setBackgroundColor from '../../../common/web/setBackgroundColor';
77
82
  import setCanPullDown from '../../../common/web/setCanPullDown';
78
83
  import setClipboard from '../../../common/web/setClipboard';
84
+ import setKeepScreenOn from '../../../common/web/setKeepScreenOn';
79
85
  import setNavigationBar from '../../../common/web/setNavigationBar';
80
86
  import setOptionMenu from '../../../common/web/setOptionMenu';
87
+ import setScreenBrightness from '../../../common/web/setScreenBrightness';
81
88
  import setStorage from '../../../common/web/setStorage';
82
89
  import setTabBarStyle from '../../../common/web/setTabBarStyle';
83
90
  import showActionSheet from '../../../common/web/showActionSheet';
@@ -95,14 +102,7 @@ import uploadFile from '../../../common/web/uploadFile';
95
102
  import vibrate from '../../../common/web/vibrate';
96
103
  import watchShake from '../../../common/web/watchShake';
97
104
  import writeBLECharacteristicValue from '../../../common/web/writeBLECharacteristicValue';
98
- import getFileInfo from '../../../common/web/getFileInfo';
99
- import openDocument from '../../../common/web/openDocument';
100
- import onUserCaptureScreen from '../../../common/web/onUserCaptureScreen';
101
- import offUserCaptureScreen from '../../../common/web/offUserCaptureScreen';
102
- import setKeepScreenOn from '../../../common/web/setKeepScreenOn';
103
- import getScreenBrightness from '../../../common/web/getScreenBrightness';
104
- import setScreenBrightness from '../../../common/web/setScreenBrightness';
105
- export { addPhoneContact, alert, chooseImage, clearStorage, closeBluetoothAdapter, closeSocket, confirm, connectBLEDevice, connectSocket, datePicker, disconnectBLEDevice, downloadFile, getAuthCode, getBatteryInfo, getBLEDeviceCharacteristics, getBLEDeviceServices, getBluetoothAdapterState, getBluetoothDevices, getClipboard, getConnectedBluetoothDevices, getImageInfo, getLocation, getNetworkType, getPhoneNumber, getSavedFileInfo, getSavedFileList, getServerTime, getSetting, getSiteInfo, getStorage, getSystemInfo, hideKeyboard, hideLoading, hideNavigationBarLoading, hideToast, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToMiniProgram, notifyBLECharacteristicValueChange, offAccelerometerChange, offBLECharacteristicValueChange, offBLEConnectionStateChanged, offBluetoothAdapterStateChange, offBluetoothDeviceFound, offCompassChange, offSocketClose, offSocketError, offSocketMessage, offSocketOpen, onAccelerometerChange, onBLECharacteristicValueChange, onBLEConnectionStateChanged, onBluetoothAdapterStateChange, onBluetoothDeviceFound, onCompassChange, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, openBluetoothAdapter, openSetting, previewImage, readBLECharacteristicValue, redirectTo, reLaunch, removeSavedFile, removeStorage, request, saveFile, saveImage, scan, sendSocketMessage, setBackgroundColor, setCanPullDown, setClipboard, setNavigationBar, setOptionMenu, setStorage, setTabBarStyle, showActionSheet, showAuthGuide, showLoading, showNavigationBarLoading, showToast, signContract, startBluetoothDevicesDiscovery, startPullDownRefresh, stopBluetoothDevicesDiscovery, stopPullDownRefresh, switchTab, uploadFile, vibrate, watchShake, writeBLECharacteristicValue, getFileInfo, openDocument, onUserCaptureScreen, offUserCaptureScreen, setKeepScreenOn, getScreenBrightness, setScreenBrightness, };
105
+ export { addPhoneContact, alert, chooseImage, clearStorage, closeBluetoothAdapter, closeSocket, confirm, connectBLEDevice, connectSocket, datePicker, disconnectBLEDevice, downloadFile, getAuthCode, getBatteryInfo, getBLEDeviceCharacteristics, getBLEDeviceServices, getBluetoothAdapterState, getBluetoothDevices, getClipboard, getConnectedBluetoothDevices, getFileInfo, getImageInfo, getLocation, getNetworkType, getPhoneNumber, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getSiteInfo, getStorage, getSystemInfo, hideKeyboard, hideLoading, hideNavigationBarLoading, hideToast, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToMiniProgram, notifyBLECharacteristicValueChange, offAccelerometerChange, offBLECharacteristicValueChange, offBLEConnectionStateChanged, offBluetoothAdapterStateChange, offBluetoothDeviceFound, offCompassChange, offSocketClose, offSocketError, offSocketMessage, offSocketOpen, offUserCaptureScreen, onAccelerometerChange, onBLECharacteristicValueChange, onBLEConnectionStateChanged, onBluetoothAdapterStateChange, onBluetoothDeviceFound, onCompassChange, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onUserCaptureScreen, openBluetoothAdapter, openDocument, openSetting, previewImage, readBLECharacteristicValue, redirectTo, reLaunch, removeSavedFile, removeStorage, request, saveFile, saveImage, scan, sendSocketMessage, setBackgroundColor, setCanPullDown, setClipboard, setKeepScreenOn, setNavigationBar, setOptionMenu, setScreenBrightness, setStorage, setTabBarStyle, showActionSheet, showAuthGuide, showLoading, showNavigationBarLoading, showToast, signContract, startBluetoothDevicesDiscovery, startPullDownRefresh, stopBluetoothDevicesDiscovery, stopPullDownRefresh, switchTab, uploadFile, vibrate, watchShake, writeBLECharacteristicValue, };
106
106
  declare const _default: {
107
107
  addPhoneContact: (args: Partial<AddPhoneContactArgs>) => void;
108
108
  alert: (args?: AlertArgs | undefined) => void;
@@ -124,12 +124,19 @@ declare const _default: {
124
124
  getBluetoothDevices: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
125
125
  getClipboard: (args: GetClipboardArgs) => void;
126
126
  getConnectedBluetoothDevices: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
127
+ getFileInfo: (args?: ({
128
+ apFilePath: string;
129
+ digestAlgorithm?: string | undefined;
130
+ } & AsyncCallback<any>) | undefined) => void;
127
131
  getImageInfo: (args: GetImageInfo) => void;
128
132
  getLocation: (args: GetLocationArgs) => void;
129
133
  getNetworkType: (args: GetNetworkTypeArgs) => void;
130
134
  getPhoneNumber: (args?: any) => void;
131
135
  getSavedFileInfo: (args: GetSavedFileInfo) => void;
132
136
  getSavedFileList: (args: GetSavedFileListArgs) => void;
137
+ getScreenBrightness: (args: AsyncCallback<{
138
+ brightness: number;
139
+ }>) => void;
133
140
  getServerTime: (args: AsyncCallback<{
134
141
  time: number;
135
142
  }>) => void;
@@ -159,6 +166,7 @@ declare const _default: {
159
166
  offSocketError: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
160
167
  offSocketMessage: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
161
168
  offSocketOpen: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
169
+ offUserCaptureScreen: (args?: (() => void) | undefined) => void;
162
170
  onAccelerometerChange: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
163
171
  onBLECharacteristicValueChange: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
164
172
  onBLEConnectionStateChanged: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
@@ -169,7 +177,12 @@ declare const _default: {
169
177
  onSocketError: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
170
178
  onSocketMessage: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
171
179
  onSocketOpen: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
180
+ onUserCaptureScreen: (args: () => void) => void;
172
181
  openBluetoothAdapter: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
182
+ openDocument: (args?: ({
183
+ filePath: string;
184
+ fileType: string;
185
+ } & AsyncCallback<any>) | undefined) => void;
173
186
  openSetting: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
174
187
  previewImage: (args: PreviewImageArgs) => void;
175
188
  readBLECharacteristicValue: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
@@ -187,8 +200,10 @@ declare const _default: {
187
200
  canPullDown: boolean;
188
201
  }) => void;
189
202
  setClipboard: (args: SetClipboardArgs) => void;
203
+ setKeepScreenOn: (args: SetKeepScreenOnArgs) => void;
190
204
  setNavigationBar: (args: SetNavigationBarArgs) => void;
191
205
  setOptionMenu: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
206
+ setScreenBrightness: (args: SetScreenBrightnessArgs) => void;
192
207
  setStorage: (args: SetStorage) => void;
193
208
  setTabBarStyle: (opt: import("../../../types").TabBarStyle) => void;
194
209
  showActionSheet: (opt: import("../../../types").ShowActionSheet) => void;
@@ -206,20 +221,5 @@ declare const _default: {
206
221
  vibrate: (args: AsyncCallback<void>) => void;
207
222
  watchShake: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
208
223
  writeBLECharacteristicValue: (args?: (import("../../../types").Common & AsyncCallback<any>) | undefined) => void;
209
- getFileInfo: (args?: ({
210
- apFilePath: string;
211
- digestAlgorithm?: string | undefined;
212
- } & AsyncCallback<any>) | undefined) => void;
213
- openDocument: (args?: ({
214
- filePath: string;
215
- fileType: string;
216
- } & AsyncCallback<any>) | undefined) => void;
217
- onUserCaptureScreen: (args: () => void) => void;
218
- offUserCaptureScreen: (args?: (() => void) | undefined) => void;
219
- setKeepScreenOn: (args: SetKeepScreenOnArgs) => void;
220
- getScreenBrightness: (args: AsyncCallback<{
221
- brightness: number;
222
- }>) => void;
223
- setScreenBrightness: (args: SetScreenBrightnessArgs) => void;
224
224
  };
225
225
  export default _default;