@tarojs/taro-h5 3.5.6-alpha.2 → 3.5.7
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/dist/api/ad/index.d.ts +2 -6
- package/dist/api/ai/facial.d.ts +3 -9
- package/dist/api/ai/visual.d.ts +2 -6
- package/dist/api/alipay/index.d.ts +1 -3
- package/dist/api/base/crypto.d.ts +1 -3
- package/dist/api/base/debug.d.ts +3 -9
- package/dist/api/base/index.d.ts +1 -3
- package/dist/api/base/performance.d.ts +2 -6
- package/dist/api/base/system.d.ts +2 -8
- package/dist/api/base/system.js +1 -1
- package/dist/api/base/update.d.ts +2 -6
- package/dist/api/base/weapp/app-event.d.ts +12 -36
- package/dist/api/canvas/CanvasContext.js +1 -1
- package/dist/api/canvas/index.d.ts +1 -3
- package/dist/api/cloud/index.d.ts +9 -27
- package/dist/api/data-analysis/index.d.ts +4 -12
- package/dist/api/device/accessibility.d.ts +1 -3
- package/dist/api/device/battery.d.ts +1 -3
- package/dist/api/device/bluetooth-ble.d.ts +16 -48
- package/dist/api/device/bluetooth-peripheral.d.ts +3 -9
- package/dist/api/device/bluetooth.d.ts +13 -39
- package/dist/api/device/calendar.d.ts +2 -6
- package/dist/api/device/contact.d.ts +2 -6
- package/dist/api/device/crypto.d.ts +1 -3
- package/dist/api/device/gyroscope.d.ts +4 -12
- package/dist/api/device/iBeacon.d.ts +7 -21
- package/dist/api/device/keyboard.d.ts +4 -12
- package/dist/api/device/memory.d.ts +2 -6
- package/dist/api/device/network.d.ts +3 -9
- package/dist/api/device/nfc.d.ts +7 -21
- package/dist/api/device/screen.d.ts +6 -18
- package/dist/api/device/wifi.d.ts +11 -33
- package/dist/api/ext/index.d.ts +2 -6
- package/dist/api/files/index.d.ts +8 -24
- package/dist/api/location/index.d.ts +9 -27
- package/dist/api/media/EditorContext.d.ts +13 -39
- package/dist/api/media/audio/index.d.ts +8 -24
- package/dist/api/media/background-audio/BackgroundAudioManager.d.ts +4 -12
- package/dist/api/media/background-audio/index.d.ts +8 -24
- package/dist/api/media/camera.d.ts +1 -3
- package/dist/api/media/image/index.d.ts +4 -12
- package/dist/api/media/live.d.ts +2 -6
- package/dist/api/media/map.d.ts +1 -3
- package/dist/api/media/media-recorder.d.ts +1 -3
- package/dist/api/media/recorder.d.ts +3 -9
- package/dist/api/media/video/index.d.ts +5 -15
- package/dist/api/media/video-decoder.d.ts +1 -3
- package/dist/api/media/video-processing.d.ts +1 -3
- package/dist/api/media/voip.d.ts +14 -42
- package/dist/api/navigate/index.d.ts +5 -15
- package/dist/api/network/download.js +4 -3
- package/dist/api/network/mdns.d.ts +10 -30
- package/dist/api/network/request/index.js +5 -4
- package/dist/api/network/tcp.d.ts +1 -3
- package/dist/api/network/udp.d.ts +1 -3
- package/dist/api/network/upload.js +4 -3
- package/dist/api/open-api/account.d.ts +1 -3
- package/dist/api/open-api/address.d.ts +1 -3
- package/dist/api/open-api/authorize.d.ts +2 -6
- package/dist/api/open-api/card.d.ts +2 -6
- package/dist/api/open-api/channels-live.d.ts +6 -18
- package/dist/api/open-api/customer-service.d.ts +1 -3
- package/dist/api/open-api/facial.d.ts +4 -12
- package/dist/api/open-api/favorites.d.ts +2 -6
- package/dist/api/open-api/group.d.ts +1 -3
- package/dist/api/open-api/invoice.d.ts +2 -6
- package/dist/api/open-api/license-plate.d.ts +1 -3
- package/dist/api/open-api/login.d.ts +3 -9
- package/dist/api/open-api/red-package.d.ts +1 -3
- package/dist/api/open-api/settings.d.ts +2 -6
- package/dist/api/open-api/soter.d.ts +3 -9
- package/dist/api/open-api/subscribe-message.d.ts +1 -3
- package/dist/api/open-api/user-info.d.ts +2 -6
- package/dist/api/open-api/werun.d.ts +2 -6
- package/dist/api/payment/index.d.ts +2 -6
- package/dist/api/share/index.d.ts +10 -30
- package/dist/api/storage/background-fetch.d.ts +4 -12
- package/dist/api/storage/index.d.ts +2 -6
- package/dist/api/swan/index.d.ts +21 -63
- package/dist/api/taro.d.ts +1 -3
- package/dist/api/ui/background.d.ts +2 -6
- package/dist/api/ui/interaction/index.d.ts +2 -6
- package/dist/api/ui/menu.d.ts +1 -3
- package/dist/api/ui/navigation-bar/index.d.ts +3 -9
- package/dist/api/ui/sticky.d.ts +1 -3
- package/dist/api/ui/window.d.ts +1 -3
- package/dist/api/worker/index.d.ts +1 -3
- package/dist/api/wxml/index.d.ts +1 -3
- package/dist/index.cjs.d.ts +306 -918
- package/dist/index.cjs.js +142 -129
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.d.ts +306 -918
- package/dist/index.esm.js +142 -129
- package/dist/index.esm.js.map +1 -1
- package/dist/taroApis.d.ts +305 -915
- package/dist/utils/index.d.ts +4 -9
- package/dist/utils/index.js +48 -36
- package/package.json +4 -4
package/dist/taroApis.d.ts
CHANGED
|
@@ -1,68 +1,34 @@
|
|
|
1
1
|
import Taro from "@tarojs/api";
|
|
2
2
|
import { AppConfig } from "@tarojs/api";
|
|
3
3
|
// 广告
|
|
4
|
-
declare const createRewardedVideoAd: () => Promise<
|
|
5
|
-
|
|
6
|
-
}>;
|
|
7
|
-
declare const createInterstitialAd: () => Promise<{
|
|
8
|
-
errMsg: string;
|
|
9
|
-
}>;
|
|
4
|
+
declare const createRewardedVideoAd: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
5
|
+
declare const createInterstitialAd: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
10
6
|
// 人脸识别
|
|
11
|
-
declare const stopFaceDetect: () => Promise<
|
|
12
|
-
|
|
13
|
-
}>;
|
|
14
|
-
declare const initFaceDetect: () => Promise<{
|
|
15
|
-
errMsg: string;
|
|
16
|
-
}>;
|
|
17
|
-
declare const faceDetect: () => Promise<{
|
|
18
|
-
errMsg: string;
|
|
19
|
-
}>;
|
|
7
|
+
declare const stopFaceDetect: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
8
|
+
declare const initFaceDetect: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
9
|
+
declare const faceDetect: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
20
10
|
// 判断支持版本
|
|
21
|
-
declare const isVKSupport: () => Promise<
|
|
22
|
-
errMsg: string;
|
|
23
|
-
}>;
|
|
11
|
+
declare const isVKSupport: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
24
12
|
// 视觉算法
|
|
25
|
-
declare const createVKSession: () => Promise<
|
|
26
|
-
errMsg: string;
|
|
27
|
-
}>;
|
|
13
|
+
declare const createVKSession: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
28
14
|
// AliPay
|
|
29
|
-
declare const getOpenUserInfo: () => Promise<
|
|
30
|
-
errMsg: string;
|
|
31
|
-
}>;
|
|
15
|
+
declare const getOpenUserInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
32
16
|
// TODO env 环境变量
|
|
33
|
-
declare const canIUse: () => Promise<
|
|
34
|
-
errMsg: string;
|
|
35
|
-
}>;
|
|
17
|
+
declare const canIUse: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
36
18
|
declare function arrayBufferToBase64(arrayBuffer: any): string;
|
|
37
19
|
declare function base64ToArrayBuffer(base64: any): Uint8Array;
|
|
38
20
|
// 加密
|
|
39
|
-
declare const getUserCryptoManager: () => Promise<
|
|
40
|
-
|
|
41
|
-
}>;
|
|
42
|
-
declare const
|
|
43
|
-
errMsg: string;
|
|
44
|
-
}>;
|
|
45
|
-
declare const getRealtimeLogManager: () => Promise<{
|
|
46
|
-
errMsg: string;
|
|
47
|
-
}>;
|
|
48
|
-
declare const getLogManager: () => Promise<{
|
|
49
|
-
errMsg: string;
|
|
50
|
-
}>;
|
|
21
|
+
declare const getUserCryptoManager: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
22
|
+
declare const setEnableDebug: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
23
|
+
declare const getRealtimeLogManager: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
24
|
+
declare const getLogManager: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
51
25
|
// 性能
|
|
52
|
-
declare const reportPerformance: () => Promise<
|
|
53
|
-
|
|
54
|
-
}>;
|
|
55
|
-
declare const getPerformance: () => Promise<{
|
|
56
|
-
errMsg: string;
|
|
57
|
-
}>;
|
|
26
|
+
declare const reportPerformance: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
27
|
+
declare const getPerformance: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
58
28
|
/** 跳转系统蓝牙设置页 */
|
|
59
|
-
declare const openSystemBluetoothSetting: () => Promise<
|
|
60
|
-
errMsg: string;
|
|
61
|
-
}>;
|
|
29
|
+
declare const openSystemBluetoothSetting: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
62
30
|
/** 跳转系统微信授权管理页 */
|
|
63
|
-
declare const openAppAuthorizeSetting: () => Promise<
|
|
64
|
-
errMsg: string;
|
|
65
|
-
}>;
|
|
31
|
+
declare const openAppAuthorizeSetting: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
66
32
|
/** 获取窗口信息 */
|
|
67
33
|
declare const getWindowInfo: typeof Taro.getWindowInfo;
|
|
68
34
|
/** 获取设备设置 */
|
|
@@ -80,51 +46,23 @@ declare const getSystemInfoAsync: typeof Taro.getSystemInfoAsync;
|
|
|
80
46
|
/** 获取系统信息 */
|
|
81
47
|
declare const getSystemInfo: typeof Taro.getSystemInfo;
|
|
82
48
|
// 更新
|
|
83
|
-
declare const updateWeChatApp: () => Promise<
|
|
84
|
-
|
|
85
|
-
}>;
|
|
86
|
-
declare const getUpdateManager: () => Promise<{
|
|
87
|
-
errMsg: string;
|
|
88
|
-
}>;
|
|
49
|
+
declare const updateWeChatApp: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
50
|
+
declare const getUpdateManager: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
89
51
|
// 应用级事件
|
|
90
|
-
declare const onUnhandledRejection: () => Promise<
|
|
91
|
-
|
|
92
|
-
}>;
|
|
93
|
-
declare const
|
|
94
|
-
|
|
95
|
-
}>;
|
|
96
|
-
declare const onPageNotFound: () => Promise<{
|
|
97
|
-
errMsg: string;
|
|
98
|
-
}>;
|
|
99
|
-
declare const onError: () => Promise<{
|
|
100
|
-
errMsg: string;
|
|
101
|
-
}>;
|
|
102
|
-
declare const onAudioInterruptionEnd: () => Promise<{
|
|
103
|
-
errMsg: string;
|
|
104
|
-
}>;
|
|
105
|
-
declare const onAudioInterruptionBegin: () => Promise<{
|
|
106
|
-
errMsg: string;
|
|
107
|
-
}>;
|
|
52
|
+
declare const onUnhandledRejection: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
53
|
+
declare const onThemeChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
54
|
+
declare const onPageNotFound: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
55
|
+
declare const onError: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
56
|
+
declare const onAudioInterruptionEnd: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
57
|
+
declare const onAudioInterruptionBegin: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
108
58
|
declare const onAppShow: typeof Taro.onAppShow;
|
|
109
59
|
declare const onAppHide: typeof Taro.onAppHide;
|
|
110
|
-
declare const offUnhandledRejection: () => Promise<
|
|
111
|
-
|
|
112
|
-
}>;
|
|
113
|
-
declare const
|
|
114
|
-
|
|
115
|
-
}>;
|
|
116
|
-
declare const offPageNotFound: () => Promise<{
|
|
117
|
-
errMsg: string;
|
|
118
|
-
}>;
|
|
119
|
-
declare const offError: () => Promise<{
|
|
120
|
-
errMsg: string;
|
|
121
|
-
}>;
|
|
122
|
-
declare const offAudioInterruptionEnd: () => Promise<{
|
|
123
|
-
errMsg: string;
|
|
124
|
-
}>;
|
|
125
|
-
declare const offAudioInterruptionBegin: () => Promise<{
|
|
126
|
-
errMsg: string;
|
|
127
|
-
}>;
|
|
60
|
+
declare const offUnhandledRejection: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
61
|
+
declare const offThemeChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
62
|
+
declare const offPageNotFound: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
63
|
+
declare const offError: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
64
|
+
declare const offAudioInterruptionEnd: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
65
|
+
declare const offAudioInterruptionBegin: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
128
66
|
declare const offAppShow: typeof Taro.offWindowResize;
|
|
129
67
|
declare const offAppHide: typeof Taro.offWindowResize;
|
|
130
68
|
// 生命周期
|
|
@@ -132,9 +70,7 @@ declare const getLaunchOptionsSync: typeof Taro.getLaunchOptionsSync;
|
|
|
132
70
|
declare const getEnterOptionsSync: typeof Taro.getEnterOptionsSync;
|
|
133
71
|
// 画布
|
|
134
72
|
/** 创建离屏 canvas 实例 */
|
|
135
|
-
declare const createOffscreenCanvas: () => Promise<
|
|
136
|
-
errMsg: string;
|
|
137
|
-
}>;
|
|
73
|
+
declare const createOffscreenCanvas: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
138
74
|
/**
|
|
139
75
|
* 创建 canvas 的绘图上下文 CanvasContext 对象
|
|
140
76
|
*/
|
|
@@ -155,53 +91,27 @@ declare const canvasPutImageData: typeof Taro.canvasPutImageData;
|
|
|
155
91
|
declare const canvasGetImageData: typeof Taro.canvasGetImageData;
|
|
156
92
|
declare class cloud implements Taro.cloud {
|
|
157
93
|
Cloud: new (options: Taro.cloud.IOptions) => Taro.Cloud;
|
|
158
|
-
init: () => Promise<
|
|
159
|
-
|
|
160
|
-
}>;
|
|
161
|
-
CloudID: () => Promise<{
|
|
162
|
-
errMsg: string;
|
|
163
|
-
}>;
|
|
94
|
+
init: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
95
|
+
CloudID: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
164
96
|
// @ts-ignore
|
|
165
|
-
callFunction: () => Promise<
|
|
166
|
-
errMsg: string;
|
|
167
|
-
}>;
|
|
97
|
+
callFunction: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
168
98
|
// @ts-ignore
|
|
169
|
-
uploadFile: () => Promise<
|
|
170
|
-
errMsg: string;
|
|
171
|
-
}>;
|
|
99
|
+
uploadFile: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
172
100
|
// @ts-ignore
|
|
173
|
-
downloadFile: () => Promise<
|
|
174
|
-
errMsg: string;
|
|
175
|
-
}>;
|
|
101
|
+
downloadFile: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
176
102
|
// @ts-ignore
|
|
177
|
-
getTempFileURL: () => Promise<
|
|
178
|
-
errMsg: string;
|
|
179
|
-
}>;
|
|
103
|
+
getTempFileURL: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
180
104
|
// @ts-ignore
|
|
181
|
-
deleteFile: () => Promise<
|
|
182
|
-
errMsg: string;
|
|
183
|
-
}>;
|
|
105
|
+
deleteFile: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
184
106
|
// @ts-ignore
|
|
185
|
-
database: () => Promise<
|
|
186
|
-
errMsg: string;
|
|
187
|
-
}>;
|
|
107
|
+
database: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
188
108
|
// @ts-ignore
|
|
189
|
-
callContainer: () => Promise<
|
|
190
|
-
errMsg: string;
|
|
191
|
-
}>;
|
|
109
|
+
callContainer: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
192
110
|
}
|
|
193
|
-
declare const reportMonitor: () => Promise<
|
|
194
|
-
|
|
195
|
-
}>;
|
|
196
|
-
declare const
|
|
197
|
-
errMsg: string;
|
|
198
|
-
}>;
|
|
199
|
-
declare const reportEvent: () => Promise<{
|
|
200
|
-
errMsg: string;
|
|
201
|
-
}>;
|
|
202
|
-
declare const getExptInfoSync: () => Promise<{
|
|
203
|
-
errMsg: string;
|
|
204
|
-
}>;
|
|
111
|
+
declare const reportMonitor: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
112
|
+
declare const reportAnalytics: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
113
|
+
declare const reportEvent: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
114
|
+
declare const getExptInfoSync: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
205
115
|
/**
|
|
206
116
|
* 停止监听加速度数据。
|
|
207
117
|
*/
|
|
@@ -219,120 +129,48 @@ declare const onAccelerometerChange: typeof Taro.onAccelerometerChange;
|
|
|
219
129
|
*/
|
|
220
130
|
declare const offAccelerometerChange: typeof Taro.offAccelerometerChange;
|
|
221
131
|
// 无障碍
|
|
222
|
-
declare const checkIsOpenAccessibility: () => Promise<
|
|
223
|
-
errMsg: string;
|
|
224
|
-
}>;
|
|
132
|
+
declare const checkIsOpenAccessibility: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
225
133
|
// 电量
|
|
226
|
-
declare const getBatteryInfoSync: () => Promise<
|
|
227
|
-
errMsg: string;
|
|
228
|
-
}>;
|
|
134
|
+
declare const getBatteryInfoSync: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
229
135
|
declare const getBatteryInfo: typeof Taro.getBatteryInfo;
|
|
230
136
|
// 蓝牙-通用
|
|
231
|
-
declare const stopBluetoothDevicesDiscovery: () => Promise<
|
|
232
|
-
|
|
233
|
-
}>;
|
|
234
|
-
declare const
|
|
235
|
-
|
|
236
|
-
}>;
|
|
237
|
-
declare const
|
|
238
|
-
|
|
239
|
-
}>;
|
|
240
|
-
declare const
|
|
241
|
-
|
|
242
|
-
}>;
|
|
243
|
-
declare const
|
|
244
|
-
errMsg: string;
|
|
245
|
-
}>;
|
|
246
|
-
declare const offBluetoothDeviceFound: () => Promise<{
|
|
247
|
-
errMsg: string;
|
|
248
|
-
}>;
|
|
249
|
-
declare const offBluetoothAdapterStateChange: () => Promise<{
|
|
250
|
-
errMsg: string;
|
|
251
|
-
}>;
|
|
252
|
-
declare const makeBluetoothPair: () => Promise<{
|
|
253
|
-
errMsg: string;
|
|
254
|
-
}>;
|
|
255
|
-
declare const isBluetoothDevicePaired: () => Promise<{
|
|
256
|
-
errMsg: string;
|
|
257
|
-
}>;
|
|
258
|
-
declare const getConnectedBluetoothDevices: () => Promise<{
|
|
259
|
-
errMsg: string;
|
|
260
|
-
}>;
|
|
261
|
-
declare const getBluetoothDevices: () => Promise<{
|
|
262
|
-
errMsg: string;
|
|
263
|
-
}>;
|
|
264
|
-
declare const getBluetoothAdapterState: () => Promise<{
|
|
265
|
-
errMsg: string;
|
|
266
|
-
}>;
|
|
267
|
-
declare const closeBluetoothAdapter: () => Promise<{
|
|
268
|
-
errMsg: string;
|
|
269
|
-
}>;
|
|
137
|
+
declare const stopBluetoothDevicesDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
138
|
+
declare const startBluetoothDevicesDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
139
|
+
declare const openBluetoothAdapter: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
140
|
+
declare const onBluetoothDeviceFound: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
141
|
+
declare const onBluetoothAdapterStateChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
142
|
+
declare const offBluetoothDeviceFound: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
143
|
+
declare const offBluetoothAdapterStateChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
144
|
+
declare const makeBluetoothPair: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
145
|
+
declare const isBluetoothDevicePaired: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
146
|
+
declare const getConnectedBluetoothDevices: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
147
|
+
declare const getBluetoothDevices: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
148
|
+
declare const getBluetoothAdapterState: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
149
|
+
declare const closeBluetoothAdapter: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
270
150
|
// 蓝牙-低功耗中心设备
|
|
271
|
-
declare const writeBLECharacteristicValue: () => Promise<
|
|
272
|
-
|
|
273
|
-
}>;
|
|
274
|
-
declare const
|
|
275
|
-
|
|
276
|
-
}>;
|
|
277
|
-
declare const
|
|
278
|
-
|
|
279
|
-
}>;
|
|
280
|
-
declare const
|
|
281
|
-
|
|
282
|
-
}>;
|
|
283
|
-
declare const
|
|
284
|
-
|
|
285
|
-
}>;
|
|
286
|
-
declare const
|
|
287
|
-
errMsg: string;
|
|
288
|
-
}>;
|
|
289
|
-
declare const offBLEMTUChange: () => Promise<{
|
|
290
|
-
errMsg: string;
|
|
291
|
-
}>;
|
|
292
|
-
declare const offBLEConnectionStateChange: () => Promise<{
|
|
293
|
-
errMsg: string;
|
|
294
|
-
}>;
|
|
295
|
-
declare const offBLECharacteristicValueChange: () => Promise<{
|
|
296
|
-
errMsg: string;
|
|
297
|
-
}>;
|
|
298
|
-
declare const notifyBLECharacteristicValueChange: () => Promise<{
|
|
299
|
-
errMsg: string;
|
|
300
|
-
}>;
|
|
301
|
-
declare const getBLEMTU: () => Promise<{
|
|
302
|
-
errMsg: string;
|
|
303
|
-
}>;
|
|
304
|
-
declare const getBLEDeviceServices: () => Promise<{
|
|
305
|
-
errMsg: string;
|
|
306
|
-
}>;
|
|
307
|
-
declare const getBLEDeviceRSSI: () => Promise<{
|
|
308
|
-
errMsg: string;
|
|
309
|
-
}>;
|
|
310
|
-
declare const getBLEDeviceCharacteristics: () => Promise<{
|
|
311
|
-
errMsg: string;
|
|
312
|
-
}>;
|
|
313
|
-
declare const createBLEConnection: () => Promise<{
|
|
314
|
-
errMsg: string;
|
|
315
|
-
}>;
|
|
316
|
-
declare const closeBLEConnection: () => Promise<{
|
|
317
|
-
errMsg: string;
|
|
318
|
-
}>;
|
|
151
|
+
declare const writeBLECharacteristicValue: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
152
|
+
declare const setBLEMTU: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
153
|
+
declare const readBLECharacteristicValue: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
154
|
+
declare const onBLEMTUChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
155
|
+
declare const onBLEConnectionStateChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
156
|
+
declare const onBLECharacteristicValueChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
157
|
+
declare const offBLEMTUChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
158
|
+
declare const offBLEConnectionStateChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
159
|
+
declare const offBLECharacteristicValueChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
160
|
+
declare const notifyBLECharacteristicValueChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
161
|
+
declare const getBLEMTU: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
162
|
+
declare const getBLEDeviceServices: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
163
|
+
declare const getBLEDeviceRSSI: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
164
|
+
declare const getBLEDeviceCharacteristics: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
165
|
+
declare const createBLEConnection: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
166
|
+
declare const closeBLEConnection: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
319
167
|
// 蓝牙-低功耗外围设备
|
|
320
|
-
declare const onBLEPeripheralConnectionStateChanged: () => Promise<
|
|
321
|
-
|
|
322
|
-
}>;
|
|
323
|
-
declare const offBLEPeripheralConnectionStateChanged: () => Promise<{
|
|
324
|
-
errMsg: string;
|
|
325
|
-
}>;
|
|
326
|
-
declare const createBLEPeripheralServer: () => Promise<{
|
|
327
|
-
errMsg: string;
|
|
328
|
-
}>;
|
|
168
|
+
declare const onBLEPeripheralConnectionStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
169
|
+
declare const offBLEPeripheralConnectionStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
170
|
+
declare const createBLEPeripheralServer: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
329
171
|
// 日历
|
|
330
|
-
declare const addPhoneRepeatCalendar: () => Promise<
|
|
331
|
-
|
|
332
|
-
}>;
|
|
333
|
-
declare const addPhoneCalendar: () => Promise<{
|
|
334
|
-
errMsg: string;
|
|
335
|
-
}>;
|
|
172
|
+
declare const addPhoneRepeatCalendar: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
173
|
+
declare const addPhoneCalendar: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
336
174
|
/**
|
|
337
175
|
* 设置系统剪贴板的内容
|
|
338
176
|
*/
|
|
@@ -358,71 +196,31 @@ declare const onCompassChange: typeof Taro.onCompassChange;
|
|
|
358
196
|
*/
|
|
359
197
|
declare const offCompassChange: typeof Taro.offCompassChange;
|
|
360
198
|
// 联系人
|
|
361
|
-
declare const chooseContact: () => Promise<
|
|
362
|
-
|
|
363
|
-
}>;
|
|
364
|
-
declare const addPhoneContact: () => Promise<{
|
|
365
|
-
errMsg: string;
|
|
366
|
-
}>;
|
|
199
|
+
declare const chooseContact: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
200
|
+
declare const addPhoneContact: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
367
201
|
// 加密
|
|
368
|
-
declare const getRandomValues: () => Promise<
|
|
369
|
-
errMsg: string;
|
|
370
|
-
}>;
|
|
202
|
+
declare const getRandomValues: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
371
203
|
// 陀螺仪
|
|
372
|
-
declare const stopGyroscope: () => Promise<
|
|
373
|
-
|
|
374
|
-
}>;
|
|
375
|
-
declare const
|
|
376
|
-
errMsg: string;
|
|
377
|
-
}>;
|
|
378
|
-
declare const onGyroscopeChange: () => Promise<{
|
|
379
|
-
errMsg: string;
|
|
380
|
-
}>;
|
|
381
|
-
declare const offGyroscopeChange: () => Promise<{
|
|
382
|
-
errMsg: string;
|
|
383
|
-
}>;
|
|
204
|
+
declare const stopGyroscope: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
205
|
+
declare const startGyroscope: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
206
|
+
declare const onGyroscopeChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
207
|
+
declare const offGyroscopeChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
384
208
|
// 蓝牙-信标(Beacon)
|
|
385
|
-
declare const stopBeaconDiscovery: () => Promise<
|
|
386
|
-
|
|
387
|
-
}>;
|
|
388
|
-
declare const
|
|
389
|
-
|
|
390
|
-
}>;
|
|
391
|
-
declare const
|
|
392
|
-
errMsg: string;
|
|
393
|
-
}>;
|
|
394
|
-
declare const onBeaconServiceChange: () => Promise<{
|
|
395
|
-
errMsg: string;
|
|
396
|
-
}>;
|
|
397
|
-
declare const offBeaconUpdate: () => Promise<{
|
|
398
|
-
errMsg: string;
|
|
399
|
-
}>;
|
|
400
|
-
declare const offBeaconServiceChange: () => Promise<{
|
|
401
|
-
errMsg: string;
|
|
402
|
-
}>;
|
|
403
|
-
declare const getBeacons: () => Promise<{
|
|
404
|
-
errMsg: string;
|
|
405
|
-
}>;
|
|
209
|
+
declare const stopBeaconDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
210
|
+
declare const startBeaconDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
211
|
+
declare const onBeaconUpdate: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
212
|
+
declare const onBeaconServiceChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
213
|
+
declare const offBeaconUpdate: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
214
|
+
declare const offBeaconServiceChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
215
|
+
declare const getBeacons: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
406
216
|
// 键盘
|
|
407
|
-
declare const onKeyboardHeightChange: () => Promise<
|
|
408
|
-
|
|
409
|
-
}>;
|
|
410
|
-
declare const
|
|
411
|
-
errMsg: string;
|
|
412
|
-
}>;
|
|
413
|
-
declare const hideKeyboard: () => Promise<{
|
|
414
|
-
errMsg: string;
|
|
415
|
-
}>;
|
|
416
|
-
declare const getSelectedTextRange: () => Promise<{
|
|
417
|
-
errMsg: string;
|
|
418
|
-
}>;
|
|
217
|
+
declare const onKeyboardHeightChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
218
|
+
declare const offKeyboardHeightChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
219
|
+
declare const hideKeyboard: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
220
|
+
declare const getSelectedTextRange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
419
221
|
// 内存
|
|
420
|
-
declare const onMemoryWarning: () => Promise<
|
|
421
|
-
|
|
422
|
-
}>;
|
|
423
|
-
declare const offMemoryWarning: () => Promise<{
|
|
424
|
-
errMsg: string;
|
|
425
|
-
}>;
|
|
222
|
+
declare const onMemoryWarning: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
223
|
+
declare const offMemoryWarning: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
426
224
|
/**
|
|
427
225
|
* 停止监听设备方向的变化。
|
|
428
226
|
*/
|
|
@@ -447,63 +245,31 @@ declare const getNetworkType: typeof Taro.getNetworkType;
|
|
|
447
245
|
* - 出现三次以上的丢包
|
|
448
246
|
* > 弱网事件通知规则是: 弱网状态变化时立即通知, 状态不变时 30s 内最多通知一次。
|
|
449
247
|
*/
|
|
450
|
-
declare const onNetworkWeakChange: () => Promise<
|
|
451
|
-
errMsg: string;
|
|
452
|
-
}>;
|
|
248
|
+
declare const onNetworkWeakChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
453
249
|
declare const onNetworkStatusChange: typeof Taro.onNetworkStatusChange;
|
|
454
|
-
declare const offNetworkWeakChange: () => Promise<
|
|
455
|
-
errMsg: string;
|
|
456
|
-
}>;
|
|
250
|
+
declare const offNetworkWeakChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
457
251
|
declare const offNetworkStatusChange: typeof Taro.offNetworkStatusChange;
|
|
458
|
-
declare const getLocalIPAddress: () => Promise<
|
|
459
|
-
errMsg: string;
|
|
460
|
-
}>;
|
|
252
|
+
declare const getLocalIPAddress: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
461
253
|
// NFC
|
|
462
|
-
declare const stopHCE: () => Promise<
|
|
463
|
-
|
|
464
|
-
}>;
|
|
465
|
-
declare const
|
|
466
|
-
|
|
467
|
-
}>;
|
|
468
|
-
declare const
|
|
469
|
-
errMsg: string;
|
|
470
|
-
}>;
|
|
471
|
-
declare const onHCEMessage: () => Promise<{
|
|
472
|
-
errMsg: string;
|
|
473
|
-
}>;
|
|
474
|
-
declare const offHCEMessage: () => Promise<{
|
|
475
|
-
errMsg: string;
|
|
476
|
-
}>;
|
|
477
|
-
declare const getNFCAdapter: () => Promise<{
|
|
478
|
-
errMsg: string;
|
|
479
|
-
}>;
|
|
480
|
-
declare const getHCEState: () => Promise<{
|
|
481
|
-
errMsg: string;
|
|
482
|
-
}>;
|
|
254
|
+
declare const stopHCE: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
255
|
+
declare const startHCE: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
256
|
+
declare const sendHCEMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
257
|
+
declare const onHCEMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
258
|
+
declare const offHCEMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
259
|
+
declare const getNFCAdapter: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
260
|
+
declare const getHCEState: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
483
261
|
declare const makePhoneCall: typeof Taro.makePhoneCall;
|
|
484
262
|
// 扫码
|
|
485
263
|
declare const scanCode: (options?: Partial<{
|
|
486
264
|
needResult: number;
|
|
487
265
|
}>) => Promise<any>;
|
|
488
266
|
// 屏幕
|
|
489
|
-
declare const setVisualEffectOnCapture: () => Promise<
|
|
490
|
-
|
|
491
|
-
}>;
|
|
492
|
-
declare const
|
|
493
|
-
|
|
494
|
-
}>;
|
|
495
|
-
declare const setKeepScreenOn: () => Promise<{
|
|
496
|
-
errMsg: string;
|
|
497
|
-
}>;
|
|
498
|
-
declare const onUserCaptureScreen: () => Promise<{
|
|
499
|
-
errMsg: string;
|
|
500
|
-
}>;
|
|
501
|
-
declare const offUserCaptureScreen: () => Promise<{
|
|
502
|
-
errMsg: string;
|
|
503
|
-
}>;
|
|
504
|
-
declare const getScreenBrightness: () => Promise<{
|
|
505
|
-
errMsg: string;
|
|
506
|
-
}>;
|
|
267
|
+
declare const setVisualEffectOnCapture: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
268
|
+
declare const setScreenBrightness: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
269
|
+
declare const setKeepScreenOn: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
270
|
+
declare const onUserCaptureScreen: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
271
|
+
declare const offUserCaptureScreen: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
272
|
+
declare const getScreenBrightness: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
507
273
|
/**
|
|
508
274
|
* 使手机发生较短时间的振动(15 ms)。仅在 iPhone 7 / 7 Plus 以上及 Android 机型生效
|
|
509
275
|
*/
|
|
@@ -513,139 +279,63 @@ declare const vibrateShort: typeof Taro.vibrateShort;
|
|
|
513
279
|
*/
|
|
514
280
|
declare const vibrateLong: typeof Taro.vibrateLong;
|
|
515
281
|
// Wi-Fi
|
|
516
|
-
declare const stopWifi: () => Promise<
|
|
517
|
-
|
|
518
|
-
}>;
|
|
519
|
-
declare const
|
|
520
|
-
|
|
521
|
-
}>;
|
|
522
|
-
declare const
|
|
523
|
-
|
|
524
|
-
}>;
|
|
525
|
-
declare const
|
|
526
|
-
|
|
527
|
-
}>;
|
|
528
|
-
declare const onWifiConnected: () => Promise<{
|
|
529
|
-
errMsg: string;
|
|
530
|
-
}>;
|
|
531
|
-
declare const onGetWifiList: () => Promise<{
|
|
532
|
-
errMsg: string;
|
|
533
|
-
}>;
|
|
534
|
-
declare const offWifiConnected: () => Promise<{
|
|
535
|
-
errMsg: string;
|
|
536
|
-
}>;
|
|
537
|
-
declare const offGetWifiList: () => Promise<{
|
|
538
|
-
errMsg: string;
|
|
539
|
-
}>;
|
|
540
|
-
declare const getWifiList: () => Promise<{
|
|
541
|
-
errMsg: string;
|
|
542
|
-
}>;
|
|
543
|
-
declare const getConnectedWifi: () => Promise<{
|
|
544
|
-
errMsg: string;
|
|
545
|
-
}>;
|
|
546
|
-
declare const connectWifi: () => Promise<{
|
|
547
|
-
errMsg: string;
|
|
548
|
-
}>;
|
|
282
|
+
declare const stopWifi: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
283
|
+
declare const startWifi: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
284
|
+
declare const setWifiList: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
285
|
+
declare const onWifiConnectedWithPartialInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
286
|
+
declare const onWifiConnected: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
287
|
+
declare const onGetWifiList: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
288
|
+
declare const offWifiConnected: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
289
|
+
declare const offGetWifiList: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
290
|
+
declare const getWifiList: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
291
|
+
declare const getConnectedWifi: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
292
|
+
declare const connectWifi: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
549
293
|
// 第三方平台
|
|
550
|
-
declare const getExtConfigSync: () => Promise<
|
|
551
|
-
|
|
552
|
-
}>;
|
|
553
|
-
declare const getExtConfig: () => Promise<{
|
|
554
|
-
errMsg: string;
|
|
555
|
-
}>;
|
|
294
|
+
declare const getExtConfigSync: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
295
|
+
declare const getExtConfig: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
556
296
|
// 文件
|
|
557
|
-
declare const saveFileToDisk: () => Promise<
|
|
558
|
-
|
|
559
|
-
}>;
|
|
560
|
-
declare const
|
|
561
|
-
|
|
562
|
-
}>;
|
|
563
|
-
declare const
|
|
564
|
-
|
|
565
|
-
}>;
|
|
566
|
-
declare const openDocument: () => Promise<{
|
|
567
|
-
errMsg: string;
|
|
568
|
-
}>;
|
|
569
|
-
declare const getSavedFileList: () => Promise<{
|
|
570
|
-
errMsg: string;
|
|
571
|
-
}>;
|
|
572
|
-
declare const getSavedFileInfo: () => Promise<{
|
|
573
|
-
errMsg: string;
|
|
574
|
-
}>;
|
|
575
|
-
declare const getFileSystemManager: () => Promise<{
|
|
576
|
-
errMsg: string;
|
|
577
|
-
}>;
|
|
578
|
-
declare const getFileInfo: () => Promise<{
|
|
579
|
-
errMsg: string;
|
|
580
|
-
}>;
|
|
297
|
+
declare const saveFileToDisk: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
298
|
+
declare const saveFile: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
299
|
+
declare const removeSavedFile: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
300
|
+
declare const openDocument: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
301
|
+
declare const getSavedFileList: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
302
|
+
declare const getSavedFileInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
303
|
+
declare const getFileSystemManager: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
304
|
+
declare const getFileInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
581
305
|
declare const getApp: typeof Taro.getApp;
|
|
582
306
|
// 自定义组件
|
|
583
307
|
declare const getCurrentInstance: () => Taro.Current;
|
|
584
308
|
// 位置
|
|
585
|
-
declare const stopLocationUpdate: () => Promise<
|
|
586
|
-
|
|
587
|
-
}>;
|
|
588
|
-
declare const startLocationUpdateBackground: () => Promise<{
|
|
589
|
-
errMsg: string;
|
|
590
|
-
}>;
|
|
591
|
-
declare const startLocationUpdate: () => Promise<{
|
|
592
|
-
errMsg: string;
|
|
593
|
-
}>;
|
|
309
|
+
declare const stopLocationUpdate: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
310
|
+
declare const startLocationUpdateBackground: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
311
|
+
declare const startLocationUpdate: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
594
312
|
declare const openLocation: (options?: Partial<{
|
|
595
313
|
scale: number;
|
|
596
314
|
}>) => Promise<any>;
|
|
597
|
-
declare const onLocationChangeError: () => Promise<
|
|
598
|
-
|
|
599
|
-
}>;
|
|
600
|
-
declare const
|
|
601
|
-
errMsg: string;
|
|
602
|
-
}>;
|
|
603
|
-
declare const offLocationChangeError: () => Promise<{
|
|
604
|
-
errMsg: string;
|
|
605
|
-
}>;
|
|
606
|
-
declare const offLocationChange: () => Promise<{
|
|
607
|
-
errMsg: string;
|
|
608
|
-
}>;
|
|
315
|
+
declare const onLocationChangeError: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
316
|
+
declare const onLocationChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
317
|
+
declare const offLocationChangeError: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
318
|
+
declare const offLocationChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
609
319
|
declare const getLocation: (options?: Partial<Taro.getLocation.Option>) => Promise<Taro.getLocation.SuccessCallbackResult>;
|
|
610
|
-
declare const choosePoi: () => Promise<
|
|
611
|
-
|
|
612
|
-
}>;
|
|
613
|
-
declare const getFuzzyLocation: () => Promise<{
|
|
614
|
-
errMsg: string;
|
|
615
|
-
}>;
|
|
320
|
+
declare const choosePoi: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
321
|
+
declare const getFuzzyLocation: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
616
322
|
/**
|
|
617
323
|
* 打开地图选择位置。
|
|
618
324
|
*/
|
|
619
325
|
declare const chooseLocation: typeof Taro.chooseLocation;
|
|
620
326
|
// 音频
|
|
621
|
-
declare const stopVoice: () => Promise<
|
|
622
|
-
|
|
623
|
-
}>;
|
|
624
|
-
declare const
|
|
625
|
-
|
|
626
|
-
}>;
|
|
627
|
-
declare const
|
|
628
|
-
errMsg: string;
|
|
629
|
-
}>;
|
|
630
|
-
declare const pauseVoice: () => Promise<{
|
|
631
|
-
errMsg: string;
|
|
632
|
-
}>;
|
|
633
|
-
declare const getAvailableAudioSources: () => Promise<{
|
|
634
|
-
errMsg: string;
|
|
635
|
-
}>;
|
|
636
|
-
declare const createWebAudioContext: () => Promise<{
|
|
637
|
-
errMsg: string;
|
|
638
|
-
}>;
|
|
639
|
-
declare const createMediaAudioPlayer: () => Promise<{
|
|
640
|
-
errMsg: string;
|
|
641
|
-
}>;
|
|
327
|
+
declare const stopVoice: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
328
|
+
declare const setInnerAudioOption: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
329
|
+
declare const playVoice: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
330
|
+
declare const pauseVoice: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
331
|
+
declare const getAvailableAudioSources: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
332
|
+
declare const createWebAudioContext: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
333
|
+
declare const createMediaAudioPlayer: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
642
334
|
/**
|
|
643
335
|
* 创建内部 audio 上下文 InnerAudioContext 对象。
|
|
644
336
|
*/
|
|
645
337
|
declare const createInnerAudioContext: typeof Taro.createInnerAudioContext;
|
|
646
|
-
declare const createAudioContext: () => Promise<
|
|
647
|
-
errMsg: string;
|
|
648
|
-
}>;
|
|
338
|
+
declare const createAudioContext: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
649
339
|
type TCallbackManagerParam = (...arr: unknown[]) => void;
|
|
650
340
|
interface ICallbackManagerOption {
|
|
651
341
|
callback?: TCallbackManagerParam;
|
|
@@ -723,12 +413,8 @@ declare class BackgroundAudioManager implements Taro.BackgroundAudioManager {
|
|
|
723
413
|
onEnded: (callback?: () => void) => void | undefined;
|
|
724
414
|
onStop: (callback?: () => void) => void;
|
|
725
415
|
onTimeUpdate: (callback?: () => void) => void | undefined;
|
|
726
|
-
onPrev: () => Promise<
|
|
727
|
-
|
|
728
|
-
}>;
|
|
729
|
-
onNext: () => Promise<{
|
|
730
|
-
errMsg: string;
|
|
731
|
-
}>;
|
|
416
|
+
onPrev: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
417
|
+
onNext: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
732
418
|
offCanplay: (callback?: () => void) => void | undefined;
|
|
733
419
|
offWaiting: (callback?: () => void) => void | undefined;
|
|
734
420
|
offError: (callback?: () => void) => void;
|
|
@@ -739,53 +425,27 @@ declare class BackgroundAudioManager implements Taro.BackgroundAudioManager {
|
|
|
739
425
|
offEnded: (callback?: () => void) => void | undefined;
|
|
740
426
|
offStop: (callback?: () => void) => void;
|
|
741
427
|
offTimeUpdate: (callback?: () => void) => void | undefined;
|
|
742
|
-
offPrev: () => Promise<
|
|
743
|
-
|
|
744
|
-
}>;
|
|
745
|
-
offNext: () => Promise<{
|
|
746
|
-
errMsg: string;
|
|
747
|
-
}>;
|
|
428
|
+
offPrev: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
429
|
+
offNext: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
748
430
|
}
|
|
749
431
|
// 背景音频
|
|
750
|
-
declare const stopBackgroundAudio: () => Promise<
|
|
751
|
-
|
|
752
|
-
}>;
|
|
753
|
-
declare const
|
|
754
|
-
|
|
755
|
-
}>;
|
|
756
|
-
declare const
|
|
757
|
-
|
|
758
|
-
}>;
|
|
759
|
-
declare const pauseBackgroundAudio: () => Promise<{
|
|
760
|
-
errMsg: string;
|
|
761
|
-
}>;
|
|
762
|
-
declare const onBackgroundAudioStop: () => Promise<{
|
|
763
|
-
errMsg: string;
|
|
764
|
-
}>;
|
|
765
|
-
declare const onBackgroundAudioPlay: () => Promise<{
|
|
766
|
-
errMsg: string;
|
|
767
|
-
}>;
|
|
768
|
-
declare const onBackgroundAudioPause: () => Promise<{
|
|
769
|
-
errMsg: string;
|
|
770
|
-
}>;
|
|
771
|
-
declare const getBackgroundAudioPlayerState: () => Promise<{
|
|
772
|
-
errMsg: string;
|
|
773
|
-
}>;
|
|
432
|
+
declare const stopBackgroundAudio: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
433
|
+
declare const seekBackgroundAudio: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
434
|
+
declare const playBackgroundAudio: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
435
|
+
declare const pauseBackgroundAudio: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
436
|
+
declare const onBackgroundAudioStop: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
437
|
+
declare const onBackgroundAudioPlay: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
438
|
+
declare const onBackgroundAudioPause: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
439
|
+
declare const getBackgroundAudioPlayerState: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
774
440
|
/**
|
|
775
441
|
* 获取全局唯一的背景音频管理器
|
|
776
442
|
*/
|
|
777
443
|
declare const getBackgroundAudioManager: () => BackgroundAudioManager;
|
|
778
444
|
// 相机
|
|
779
|
-
declare const createCameraContext: () => Promise<
|
|
780
|
-
errMsg: string;
|
|
781
|
-
}>;
|
|
445
|
+
declare const createCameraContext: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
782
446
|
// 图片
|
|
783
|
-
declare const saveImageToPhotosAlbum: () => Promise<
|
|
784
|
-
|
|
785
|
-
}>;
|
|
786
|
-
declare const previewMedia: () => Promise<{
|
|
787
|
-
errMsg: string;
|
|
788
|
-
}>;
|
|
447
|
+
declare const saveImageToPhotosAlbum: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
448
|
+
declare const previewMedia: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
789
449
|
/**
|
|
790
450
|
* 获取图片信息。网络图片需先配置download域名才能生效。
|
|
791
451
|
*/
|
|
@@ -797,178 +457,84 @@ declare const getImageInfo: typeof Taro.getImageInfo;
|
|
|
797
457
|
* 在新页面中全屏预览图片。预览的过程中用户可以进行保存图片、发送给朋友等操作。
|
|
798
458
|
*/
|
|
799
459
|
declare const previewImage: typeof Taro.previewImage;
|
|
800
|
-
declare const compressImage: () => Promise<
|
|
801
|
-
|
|
802
|
-
}>;
|
|
803
|
-
declare const chooseMessageFile: () => Promise<{
|
|
804
|
-
errMsg: string;
|
|
805
|
-
}>;
|
|
460
|
+
declare const compressImage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
461
|
+
declare const chooseMessageFile: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
806
462
|
/**
|
|
807
463
|
* 从本地相册选择图片或使用相机拍照。
|
|
808
464
|
*/
|
|
809
465
|
declare const chooseImage: typeof Taro.chooseImage;
|
|
810
466
|
// 实时音视频
|
|
811
|
-
declare const createLivePusherContext: () => Promise<
|
|
812
|
-
|
|
813
|
-
}>;
|
|
814
|
-
declare const createLivePlayerContext: () => Promise<{
|
|
815
|
-
errMsg: string;
|
|
816
|
-
}>;
|
|
467
|
+
declare const createLivePusherContext: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
468
|
+
declare const createLivePlayerContext: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
817
469
|
// 地图
|
|
818
|
-
declare const createMapContext: () => Promise<
|
|
819
|
-
errMsg: string;
|
|
820
|
-
}>;
|
|
470
|
+
declare const createMapContext: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
821
471
|
// 画面录制器
|
|
822
|
-
declare const createMediaRecorder: () => Promise<
|
|
823
|
-
errMsg: string;
|
|
824
|
-
}>;
|
|
472
|
+
declare const createMediaRecorder: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
825
473
|
// 录音
|
|
826
|
-
declare const stopRecord: () => Promise<
|
|
827
|
-
|
|
828
|
-
}>;
|
|
829
|
-
declare const startRecord: () => Promise<{
|
|
830
|
-
errMsg: string;
|
|
831
|
-
}>;
|
|
832
|
-
declare const getRecorderManager: () => Promise<{
|
|
833
|
-
errMsg: string;
|
|
834
|
-
}>;
|
|
474
|
+
declare const stopRecord: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
475
|
+
declare const startRecord: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
476
|
+
declare const getRecorderManager: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
835
477
|
// 视频
|
|
836
|
-
declare const saveVideoToPhotosAlbum: () => Promise<
|
|
837
|
-
|
|
838
|
-
}>;
|
|
839
|
-
declare const openVideoEditor: () => Promise<{
|
|
840
|
-
errMsg: string;
|
|
841
|
-
}>;
|
|
842
|
-
declare const getVideoInfo: () => Promise<{
|
|
843
|
-
errMsg: string;
|
|
844
|
-
}>;
|
|
478
|
+
declare const saveVideoToPhotosAlbum: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
479
|
+
declare const openVideoEditor: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
480
|
+
declare const getVideoInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
845
481
|
/**
|
|
846
482
|
* 创建 video 上下文 VideoContext 对象。
|
|
847
483
|
*/
|
|
848
484
|
declare const createVideoContext: typeof Taro.createVideoContext;
|
|
849
|
-
declare const compressVideo: () => Promise<
|
|
850
|
-
errMsg: string;
|
|
851
|
-
}>;
|
|
485
|
+
declare const compressVideo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
852
486
|
/**
|
|
853
487
|
* 拍摄视频或从手机相册中选视频。
|
|
854
488
|
*/
|
|
855
489
|
declare const chooseVideo: typeof Taro.chooseVideo;
|
|
856
|
-
declare const chooseMedia: () => Promise<
|
|
857
|
-
errMsg: string;
|
|
858
|
-
}>;
|
|
490
|
+
declare const chooseMedia: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
859
491
|
// 视频解码器
|
|
860
|
-
declare const createVideoDecoder: () => Promise<
|
|
861
|
-
errMsg: string;
|
|
862
|
-
}>;
|
|
492
|
+
declare const createVideoDecoder: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
863
493
|
// 音视频合成
|
|
864
|
-
declare const createMediaContainer: () => Promise<
|
|
865
|
-
errMsg: string;
|
|
866
|
-
}>;
|
|
494
|
+
declare const createMediaContainer: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
867
495
|
// 实时语音
|
|
868
|
-
declare const updateVoIPChatMuteConfig: () => Promise<
|
|
869
|
-
|
|
870
|
-
}>;
|
|
871
|
-
declare const
|
|
872
|
-
|
|
873
|
-
}>;
|
|
874
|
-
declare const
|
|
875
|
-
|
|
876
|
-
}>;
|
|
877
|
-
declare const
|
|
878
|
-
|
|
879
|
-
}>;
|
|
880
|
-
declare const
|
|
881
|
-
|
|
882
|
-
}>;
|
|
883
|
-
declare const onVoIPChatSpeakersChanged: () => Promise<{
|
|
884
|
-
errMsg: string;
|
|
885
|
-
}>;
|
|
886
|
-
declare const onVoIPChatMembersChanged: () => Promise<{
|
|
887
|
-
errMsg: string;
|
|
888
|
-
}>;
|
|
889
|
-
declare const onVoIPChatInterrupted: () => Promise<{
|
|
890
|
-
errMsg: string;
|
|
891
|
-
}>;
|
|
892
|
-
declare const offVoIPVideoMembersChanged: () => Promise<{
|
|
893
|
-
errMsg: string;
|
|
894
|
-
}>;
|
|
895
|
-
declare const offVoIPChatStateChanged: () => Promise<{
|
|
896
|
-
errMsg: string;
|
|
897
|
-
}>;
|
|
898
|
-
declare const offVoIPChatMembersChanged: () => Promise<{
|
|
899
|
-
errMsg: string;
|
|
900
|
-
}>;
|
|
901
|
-
declare const offVoIPChatInterrupted: () => Promise<{
|
|
902
|
-
errMsg: string;
|
|
903
|
-
}>;
|
|
904
|
-
declare const joinVoIPChat: () => Promise<{
|
|
905
|
-
errMsg: string;
|
|
906
|
-
}>;
|
|
907
|
-
declare const exitVoIPChat: () => Promise<{
|
|
908
|
-
errMsg: string;
|
|
909
|
-
}>;
|
|
496
|
+
declare const updateVoIPChatMuteConfig: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
497
|
+
declare const subscribeVoIPVideoMembers: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
498
|
+
declare const setEnable1v1Chat: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
499
|
+
declare const onVoIPVideoMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
500
|
+
declare const onVoIPChatStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
501
|
+
declare const onVoIPChatSpeakersChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
502
|
+
declare const onVoIPChatMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
503
|
+
declare const onVoIPChatInterrupted: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
504
|
+
declare const offVoIPVideoMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
505
|
+
declare const offVoIPChatStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
506
|
+
declare const offVoIPChatMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
507
|
+
declare const offVoIPChatInterrupted: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
508
|
+
declare const joinVoIPChat: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
509
|
+
declare const exitVoIPChat: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
910
510
|
// 跳转
|
|
911
|
-
declare const openEmbeddedMiniProgram: () => Promise<
|
|
912
|
-
|
|
913
|
-
}>;
|
|
914
|
-
declare const
|
|
915
|
-
|
|
916
|
-
}>;
|
|
917
|
-
declare const navigateBackMiniProgram: () => Promise<{
|
|
918
|
-
errMsg: string;
|
|
919
|
-
}>;
|
|
920
|
-
declare const exitMiniProgram: () => Promise<{
|
|
921
|
-
errMsg: string;
|
|
922
|
-
}>;
|
|
923
|
-
declare const openBusinessView: () => Promise<{
|
|
924
|
-
errMsg: string;
|
|
925
|
-
}>;
|
|
511
|
+
declare const openEmbeddedMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
512
|
+
declare const navigateToMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
513
|
+
declare const navigateBackMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
514
|
+
declare const exitMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
515
|
+
declare const openBusinessView: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
926
516
|
/**
|
|
927
517
|
* 下载文件资源到本地。客户端直接发起一个 HTTPS GET 请求,返回文件的本地临时路径。使用前请注意阅读相关说明。
|
|
928
518
|
* 注意:请在服务端响应的 header 中指定合理的 Content-Type 字段,以保证客户端正确处理文件类型。
|
|
929
519
|
*/
|
|
930
520
|
declare const downloadFile: typeof Taro.downloadFile;
|
|
931
521
|
// mDNS
|
|
932
|
-
declare const stopLocalServiceDiscovery: () => Promise<
|
|
933
|
-
|
|
934
|
-
}>;
|
|
935
|
-
declare const
|
|
936
|
-
|
|
937
|
-
}>;
|
|
938
|
-
declare const
|
|
939
|
-
|
|
940
|
-
}>;
|
|
941
|
-
declare const
|
|
942
|
-
errMsg: string;
|
|
943
|
-
}>;
|
|
944
|
-
declare const onLocalServiceFound: () => Promise<{
|
|
945
|
-
errMsg: string;
|
|
946
|
-
}>;
|
|
947
|
-
declare const onLocalServiceDiscoveryStop: () => Promise<{
|
|
948
|
-
errMsg: string;
|
|
949
|
-
}>;
|
|
950
|
-
declare const offLocalServiceResolveFail: () => Promise<{
|
|
951
|
-
errMsg: string;
|
|
952
|
-
}>;
|
|
953
|
-
declare const offLocalServiceLost: () => Promise<{
|
|
954
|
-
errMsg: string;
|
|
955
|
-
}>;
|
|
956
|
-
declare const offLocalServiceFound: () => Promise<{
|
|
957
|
-
errMsg: string;
|
|
958
|
-
}>;
|
|
959
|
-
declare const offLocalServiceDiscoveryStop: () => Promise<{
|
|
960
|
-
errMsg: string;
|
|
961
|
-
}>;
|
|
522
|
+
declare const stopLocalServiceDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
523
|
+
declare const startLocalServiceDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
524
|
+
declare const onLocalServiceResolveFail: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
525
|
+
declare const onLocalServiceLost: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
526
|
+
declare const onLocalServiceFound: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
527
|
+
declare const onLocalServiceDiscoveryStop: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
528
|
+
declare const offLocalServiceResolveFail: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
529
|
+
declare const offLocalServiceLost: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
530
|
+
declare const offLocalServiceFound: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
531
|
+
declare const offLocalServiceDiscoveryStop: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
962
532
|
declare const request: typeof Taro.request;
|
|
963
533
|
declare const addInterceptor: any;
|
|
964
534
|
// TCP 通信
|
|
965
|
-
declare const createTCPSocket: () => Promise<
|
|
966
|
-
errMsg: string;
|
|
967
|
-
}>;
|
|
535
|
+
declare const createTCPSocket: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
968
536
|
// UDP 通信
|
|
969
|
-
declare const createUDPSocket: () => Promise<
|
|
970
|
-
errMsg: string;
|
|
971
|
-
}>;
|
|
537
|
+
declare const createUDPSocket: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
972
538
|
/**
|
|
973
539
|
* 将本地资源上传到服务器。客户端发起一个 HTTPS POST 请求,其中 content-type 为 multipart/form-data。使用前请注意阅读相关说明。
|
|
974
540
|
*/
|
|
@@ -981,278 +547,122 @@ declare function onSocketClose(): void;
|
|
|
981
547
|
declare function connectSocket(options: any): Promise<unknown>;
|
|
982
548
|
declare function closeSocket(): void;
|
|
983
549
|
// 帐号信息
|
|
984
|
-
declare const getAccountInfoSync: () => Promise<
|
|
985
|
-
errMsg: string;
|
|
986
|
-
}>;
|
|
550
|
+
declare const getAccountInfoSync: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
987
551
|
// 收货地址
|
|
988
|
-
declare const chooseAddress: () => Promise<
|
|
989
|
-
errMsg: string;
|
|
990
|
-
}>;
|
|
552
|
+
declare const chooseAddress: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
991
553
|
// 授权
|
|
992
|
-
declare const authorizeForMiniProgram: () => Promise<
|
|
993
|
-
|
|
994
|
-
}>;
|
|
995
|
-
declare const authorize: () => Promise<{
|
|
996
|
-
errMsg: string;
|
|
997
|
-
}>;
|
|
554
|
+
declare const authorizeForMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
555
|
+
declare const authorize: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
998
556
|
// 卡券
|
|
999
|
-
declare const openCard: () => Promise<
|
|
1000
|
-
|
|
1001
|
-
}>;
|
|
1002
|
-
declare const addCard: () => Promise<{
|
|
1003
|
-
errMsg: string;
|
|
1004
|
-
}>;
|
|
557
|
+
declare const openCard: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
558
|
+
declare const addCard: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1005
559
|
// 视频号
|
|
1006
|
-
declare const reserveChannelsLive: () => Promise<
|
|
1007
|
-
|
|
1008
|
-
}>;
|
|
1009
|
-
declare const
|
|
1010
|
-
|
|
1011
|
-
}>;
|
|
1012
|
-
declare const openChannelsEvent: () => Promise<{
|
|
1013
|
-
errMsg: string;
|
|
1014
|
-
}>;
|
|
1015
|
-
declare const openChannelsActivity: () => Promise<{
|
|
1016
|
-
errMsg: string;
|
|
1017
|
-
}>;
|
|
1018
|
-
declare const getChannelsLiveNoticeInfo: () => Promise<{
|
|
1019
|
-
errMsg: string;
|
|
1020
|
-
}>;
|
|
1021
|
-
declare const getChannelsLiveInfo: () => Promise<{
|
|
1022
|
-
errMsg: string;
|
|
1023
|
-
}>;
|
|
560
|
+
declare const reserveChannelsLive: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
561
|
+
declare const openChannelsLive: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
562
|
+
declare const openChannelsEvent: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
563
|
+
declare const openChannelsActivity: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
564
|
+
declare const getChannelsLiveNoticeInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
565
|
+
declare const getChannelsLiveInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1024
566
|
// 微信客服
|
|
1025
|
-
declare const openCustomerServiceChat: () => Promise<
|
|
1026
|
-
errMsg: string;
|
|
1027
|
-
}>;
|
|
567
|
+
declare const openCustomerServiceChat: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1028
568
|
// 过往接口
|
|
1029
|
-
declare const checkIsSupportFacialRecognition: () => Promise<
|
|
1030
|
-
|
|
1031
|
-
}>;
|
|
1032
|
-
declare const
|
|
1033
|
-
errMsg: string;
|
|
1034
|
-
}>;
|
|
1035
|
-
declare const startFacialRecognitionVerifyAndUploadVideo: () => Promise<{
|
|
1036
|
-
errMsg: string;
|
|
1037
|
-
}>;
|
|
1038
|
-
declare const faceVerifyForPay: () => Promise<{
|
|
1039
|
-
errMsg: string;
|
|
1040
|
-
}>;
|
|
569
|
+
declare const checkIsSupportFacialRecognition: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
570
|
+
declare const startFacialRecognitionVerify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
571
|
+
declare const startFacialRecognitionVerifyAndUploadVideo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
572
|
+
declare const faceVerifyForPay: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1041
573
|
// 收藏
|
|
1042
|
-
declare const addVideoToFavorites: () => Promise<
|
|
1043
|
-
|
|
1044
|
-
}>;
|
|
1045
|
-
declare const addFileToFavorites: () => Promise<{
|
|
1046
|
-
errMsg: string;
|
|
1047
|
-
}>;
|
|
574
|
+
declare const addVideoToFavorites: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
575
|
+
declare const addFileToFavorites: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1048
576
|
// 微信群
|
|
1049
|
-
declare const getGroupEnterInfo: () => Promise<
|
|
1050
|
-
errMsg: string;
|
|
1051
|
-
}>;
|
|
577
|
+
declare const getGroupEnterInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1052
578
|
// 发票
|
|
1053
|
-
declare const chooseInvoiceTitle: () => Promise<
|
|
1054
|
-
|
|
1055
|
-
}>;
|
|
1056
|
-
declare const chooseInvoice: () => Promise<{
|
|
1057
|
-
errMsg: string;
|
|
1058
|
-
}>;
|
|
579
|
+
declare const chooseInvoiceTitle: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
580
|
+
declare const chooseInvoice: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1059
581
|
// 车牌
|
|
1060
|
-
declare const chooseLicensePlate: () => Promise<
|
|
1061
|
-
errMsg: string;
|
|
1062
|
-
}>;
|
|
582
|
+
declare const chooseLicensePlate: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1063
583
|
// 帐号信息
|
|
1064
|
-
declare const pluginLogin: () => Promise<
|
|
1065
|
-
|
|
1066
|
-
}>;
|
|
1067
|
-
declare const login: () => Promise<{
|
|
1068
|
-
errMsg: string;
|
|
1069
|
-
}>;
|
|
1070
|
-
declare const checkSession: () => Promise<{
|
|
1071
|
-
errMsg: string;
|
|
1072
|
-
}>;
|
|
584
|
+
declare const pluginLogin: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
585
|
+
declare const login: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
586
|
+
declare const checkSession: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1073
587
|
// 微信红包
|
|
1074
|
-
declare const showRedPackage: () => Promise<
|
|
1075
|
-
errMsg: string;
|
|
1076
|
-
}>;
|
|
588
|
+
declare const showRedPackage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1077
589
|
// 设置
|
|
1078
|
-
declare const openSetting: () => Promise<
|
|
1079
|
-
|
|
1080
|
-
}>;
|
|
1081
|
-
declare const getSetting: () => Promise<{
|
|
1082
|
-
errMsg: string;
|
|
1083
|
-
}>;
|
|
590
|
+
declare const openSetting: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
591
|
+
declare const getSetting: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1084
592
|
// 生物认证
|
|
1085
|
-
declare const startSoterAuthentication: () => Promise<
|
|
1086
|
-
|
|
1087
|
-
}>;
|
|
1088
|
-
declare const checkIsSupportSoterAuthentication: () => Promise<{
|
|
1089
|
-
errMsg: string;
|
|
1090
|
-
}>;
|
|
1091
|
-
declare const checkIsSoterEnrolledInDevice: () => Promise<{
|
|
1092
|
-
errMsg: string;
|
|
1093
|
-
}>;
|
|
593
|
+
declare const startSoterAuthentication: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
594
|
+
declare const checkIsSupportSoterAuthentication: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
595
|
+
declare const checkIsSoterEnrolledInDevice: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1094
596
|
// 订阅消息
|
|
1095
|
-
declare const requestSubscribeMessage: () => Promise<
|
|
1096
|
-
errMsg: string;
|
|
1097
|
-
}>;
|
|
597
|
+
declare const requestSubscribeMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1098
598
|
// 用户信息
|
|
1099
|
-
declare const getUserProfile: () => Promise<
|
|
1100
|
-
|
|
1101
|
-
}>;
|
|
1102
|
-
declare const getUserInfo: () => Promise<{
|
|
1103
|
-
errMsg: string;
|
|
1104
|
-
}>;
|
|
599
|
+
declare const getUserProfile: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
600
|
+
declare const getUserInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1105
601
|
// 微信运动
|
|
1106
|
-
declare const shareToWeRun: () => Promise<
|
|
1107
|
-
|
|
1108
|
-
}>;
|
|
1109
|
-
declare const getWeRunData: () => Promise<{
|
|
1110
|
-
errMsg: string;
|
|
1111
|
-
}>;
|
|
602
|
+
declare const shareToWeRun: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
603
|
+
declare const getWeRunData: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1112
604
|
// 支付
|
|
1113
|
-
declare const requestPayment: () => Promise<
|
|
1114
|
-
|
|
1115
|
-
}>;
|
|
1116
|
-
declare const requestOrderPayment: () => Promise<{
|
|
1117
|
-
errMsg: string;
|
|
1118
|
-
}>;
|
|
605
|
+
declare const requestPayment: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
606
|
+
declare const requestOrderPayment: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1119
607
|
// 转发
|
|
1120
|
-
declare const updateShareMenu: () => Promise<
|
|
1121
|
-
|
|
1122
|
-
}>;
|
|
1123
|
-
declare const
|
|
1124
|
-
|
|
1125
|
-
}>;
|
|
1126
|
-
declare const
|
|
1127
|
-
|
|
1128
|
-
}>;
|
|
1129
|
-
declare const
|
|
1130
|
-
errMsg: string;
|
|
1131
|
-
}>;
|
|
1132
|
-
declare const shareFileMessage: () => Promise<{
|
|
1133
|
-
errMsg: string;
|
|
1134
|
-
}>;
|
|
1135
|
-
declare const onCopyUrl: () => Promise<{
|
|
1136
|
-
errMsg: string;
|
|
1137
|
-
}>;
|
|
1138
|
-
declare const offCopyUrl: () => Promise<{
|
|
1139
|
-
errMsg: string;
|
|
1140
|
-
}>;
|
|
1141
|
-
declare const hideShareMenu: () => Promise<{
|
|
1142
|
-
errMsg: string;
|
|
1143
|
-
}>;
|
|
1144
|
-
declare const getShareInfo: () => Promise<{
|
|
1145
|
-
errMsg: string;
|
|
1146
|
-
}>;
|
|
1147
|
-
declare const authPrivateMessage: () => Promise<{
|
|
1148
|
-
errMsg: string;
|
|
1149
|
-
}>;
|
|
608
|
+
declare const updateShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
609
|
+
declare const showShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
610
|
+
declare const showShareImageMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
611
|
+
declare const shareVideoMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
612
|
+
declare const shareFileMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
613
|
+
declare const onCopyUrl: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
614
|
+
declare const offCopyUrl: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
615
|
+
declare const hideShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
616
|
+
declare const getShareInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
617
|
+
declare const authPrivateMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1150
618
|
// 数据缓存
|
|
1151
619
|
declare const setStorageSync: typeof Taro.setStorageSync;
|
|
1152
620
|
declare const setStorage: typeof Taro.setStorage;
|
|
1153
|
-
declare const revokeBufferURL: () => Promise<
|
|
1154
|
-
errMsg: string;
|
|
1155
|
-
}>;
|
|
621
|
+
declare const revokeBufferURL: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1156
622
|
declare const removeStorageSync: typeof Taro.removeStorageSync;
|
|
1157
623
|
declare const removeStorage: typeof Taro.removeStorage;
|
|
1158
624
|
declare const getStorageSync: typeof Taro.getStorageSync;
|
|
1159
625
|
declare const getStorageInfoSync: typeof Taro.getStorageInfoSync;
|
|
1160
626
|
declare const getStorageInfo: typeof Taro.getStorageInfo;
|
|
1161
627
|
declare const getStorage: typeof Taro.getStorage;
|
|
1162
|
-
declare const createBufferURL: () => Promise<
|
|
1163
|
-
errMsg: string;
|
|
1164
|
-
}>;
|
|
628
|
+
declare const createBufferURL: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1165
629
|
declare const clearStorageSync: typeof Taro.clearStorageSync;
|
|
1166
630
|
declare const clearStorage: typeof Taro.clearStorage;
|
|
1167
631
|
// 周期性更新
|
|
1168
|
-
declare const setBackgroundFetchToken: () => Promise<
|
|
1169
|
-
|
|
1170
|
-
}>;
|
|
1171
|
-
declare const
|
|
1172
|
-
|
|
1173
|
-
}>;
|
|
1174
|
-
declare const getBackgroundFetchToken: () => Promise<{
|
|
1175
|
-
errMsg: string;
|
|
1176
|
-
}>;
|
|
1177
|
-
declare const getBackgroundFetchData: () => Promise<{
|
|
1178
|
-
errMsg: string;
|
|
1179
|
-
}>;
|
|
1180
|
-
declare const setPageInfo: () => Promise<{
|
|
1181
|
-
errMsg: string;
|
|
1182
|
-
}>;
|
|
632
|
+
declare const setBackgroundFetchToken: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
633
|
+
declare const onBackgroundFetchData: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
634
|
+
declare const getBackgroundFetchToken: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
635
|
+
declare const getBackgroundFetchData: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
636
|
+
declare const setPageInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1183
637
|
// 百度小程序 AI 相关
|
|
1184
|
-
declare const ocrIdCard: () => Promise<
|
|
1185
|
-
|
|
1186
|
-
}>;
|
|
1187
|
-
declare const
|
|
1188
|
-
|
|
1189
|
-
}>;
|
|
1190
|
-
declare const
|
|
1191
|
-
|
|
1192
|
-
}>;
|
|
1193
|
-
declare const
|
|
1194
|
-
|
|
1195
|
-
}>;
|
|
1196
|
-
declare const
|
|
1197
|
-
|
|
1198
|
-
}>;
|
|
1199
|
-
declare const textToAudio: () => Promise<{
|
|
1200
|
-
errMsg: string;
|
|
1201
|
-
}>;
|
|
1202
|
-
declare const imageAudit: () => Promise<{
|
|
1203
|
-
errMsg: string;
|
|
1204
|
-
}>;
|
|
1205
|
-
declare const advancedGeneralIdentify: () => Promise<{
|
|
1206
|
-
errMsg: string;
|
|
1207
|
-
}>;
|
|
1208
|
-
declare const objectDetectIdentify: () => Promise<{
|
|
1209
|
-
errMsg: string;
|
|
1210
|
-
}>;
|
|
1211
|
-
declare const carClassify: () => Promise<{
|
|
1212
|
-
errMsg: string;
|
|
1213
|
-
}>;
|
|
1214
|
-
declare const dishClassify: () => Promise<{
|
|
1215
|
-
errMsg: string;
|
|
1216
|
-
}>;
|
|
1217
|
-
declare const logoClassify: () => Promise<{
|
|
1218
|
-
errMsg: string;
|
|
1219
|
-
}>;
|
|
1220
|
-
declare const animalClassify: () => Promise<{
|
|
1221
|
-
errMsg: string;
|
|
1222
|
-
}>;
|
|
1223
|
-
declare const plantClassify: () => Promise<{
|
|
1224
|
-
errMsg: string;
|
|
1225
|
-
}>;
|
|
638
|
+
declare const ocrIdCard: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
639
|
+
declare const ocrBankCard: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
640
|
+
declare const ocrDrivingLicense: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
641
|
+
declare const ocrVehicleLicense: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
642
|
+
declare const textReview: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
643
|
+
declare const textToAudio: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
644
|
+
declare const imageAudit: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
645
|
+
declare const advancedGeneralIdentify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
646
|
+
declare const objectDetectIdentify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
647
|
+
declare const carClassify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
648
|
+
declare const dishClassify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
649
|
+
declare const logoClassify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
650
|
+
declare const animalClassify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
651
|
+
declare const plantClassify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1226
652
|
// 用户信息
|
|
1227
|
-
declare const getSwanId: () => Promise<
|
|
1228
|
-
errMsg: string;
|
|
1229
|
-
}>;
|
|
653
|
+
declare const getSwanId: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1230
654
|
// 百度收银台支付
|
|
1231
|
-
declare const requestPolymerPayment: () => Promise<
|
|
1232
|
-
errMsg: string;
|
|
1233
|
-
}>;
|
|
655
|
+
declare const requestPolymerPayment: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1234
656
|
// 打开小程序
|
|
1235
|
-
declare const navigateToSmartGameProgram: () => Promise<
|
|
1236
|
-
|
|
1237
|
-
}>;
|
|
1238
|
-
declare const
|
|
1239
|
-
errMsg: string;
|
|
1240
|
-
}>;
|
|
1241
|
-
declare const navigateBackSmartProgram: () => Promise<{
|
|
1242
|
-
errMsg: string;
|
|
1243
|
-
}>;
|
|
1244
|
-
declare const preloadSubPackage: () => Promise<{
|
|
1245
|
-
errMsg: string;
|
|
1246
|
-
}>;
|
|
657
|
+
declare const navigateToSmartGameProgram: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
658
|
+
declare const navigateToSmartProgram: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
659
|
+
declare const navigateBackSmartProgram: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
660
|
+
declare const preloadSubPackage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1247
661
|
// h5 的 createAnimation
|
|
1248
662
|
declare const createAnimation: typeof Taro.createAnimation;
|
|
1249
663
|
// 背景
|
|
1250
|
-
declare const setBackgroundTextStyle: () => Promise<
|
|
1251
|
-
|
|
1252
|
-
}>;
|
|
1253
|
-
declare const setBackgroundColor: () => Promise<{
|
|
1254
|
-
errMsg: string;
|
|
1255
|
-
}>;
|
|
664
|
+
declare const setBackgroundTextStyle: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
665
|
+
declare const setBackgroundColor: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1256
666
|
// 自定义组件
|
|
1257
667
|
declare const nextTick: (callback: (...args: any[]) => any) => void;
|
|
1258
668
|
// 字体
|
|
@@ -1263,31 +673,19 @@ declare const showLoading: typeof Taro.showLoading;
|
|
|
1263
673
|
declare const hideLoading: typeof Taro.hideLoading;
|
|
1264
674
|
declare const showModal: typeof Taro.showModal;
|
|
1265
675
|
declare const showActionSheet: typeof Taro.showActionSheet;
|
|
1266
|
-
declare const enableAlertBeforeUnload: () => Promise<
|
|
1267
|
-
|
|
1268
|
-
}>;
|
|
1269
|
-
declare const disableAlertBeforeUnload: () => Promise<{
|
|
1270
|
-
errMsg: string;
|
|
1271
|
-
}>;
|
|
676
|
+
declare const enableAlertBeforeUnload: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
677
|
+
declare const disableAlertBeforeUnload: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1272
678
|
// 菜单
|
|
1273
|
-
declare const getMenuButtonBoundingClientRect: () => Promise<
|
|
1274
|
-
errMsg: string;
|
|
1275
|
-
}>;
|
|
679
|
+
declare const getMenuButtonBoundingClientRect: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1276
680
|
// 导航栏
|
|
1277
|
-
declare const showNavigationBarLoading: () => Promise<
|
|
1278
|
-
errMsg: string;
|
|
1279
|
-
}>;
|
|
681
|
+
declare const showNavigationBarLoading: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1280
682
|
declare function setNavigationBarTitle(options: any): Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1281
683
|
/**
|
|
1282
684
|
* 设置页面导航条颜色
|
|
1283
685
|
*/
|
|
1284
686
|
declare const setNavigationBarColor: typeof Taro.setNavigationBarColor;
|
|
1285
|
-
declare const hideNavigationBarLoading: () => Promise<
|
|
1286
|
-
|
|
1287
|
-
}>;
|
|
1288
|
-
declare const hideHomeButton: () => Promise<{
|
|
1289
|
-
errMsg: string;
|
|
1290
|
-
}>;
|
|
687
|
+
declare const hideNavigationBarLoading: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
688
|
+
declare const hideHomeButton: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1291
689
|
/**
|
|
1292
690
|
* 开始下拉刷新。调用后触发下拉刷新动画,效果与用户手动下拉刷新一致。
|
|
1293
691
|
*/
|
|
@@ -1301,9 +699,7 @@ declare const stopPullDownRefresh: typeof Taro.stopPullDownRefresh;
|
|
|
1301
699
|
*/
|
|
1302
700
|
declare const pageScrollTo: typeof Taro.pageScrollTo;
|
|
1303
701
|
// 置顶
|
|
1304
|
-
declare const setTopBarText: () => Promise<
|
|
1305
|
-
errMsg: string;
|
|
1306
|
-
}>;
|
|
702
|
+
declare const setTopBarText: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1307
703
|
declare function initTabBarApis(config?: AppConfig): void;
|
|
1308
704
|
/**
|
|
1309
705
|
* 显示 tabBar 某一项的右上角的红点
|
|
@@ -1340,9 +736,7 @@ declare const hideTabBar: typeof Taro.hideTabBar;
|
|
|
1340
736
|
/**
|
|
1341
737
|
* 设置窗口大小,该接口仅适用于 PC 平台,使用细则请参见指南
|
|
1342
738
|
*/
|
|
1343
|
-
declare const setWindowSize: () => Promise<
|
|
1344
|
-
errMsg: string;
|
|
1345
|
-
}>;
|
|
739
|
+
declare const setWindowSize: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1346
740
|
/**
|
|
1347
741
|
* 监听窗口尺寸变化事件
|
|
1348
742
|
*/
|
|
@@ -1352,12 +746,8 @@ declare const onWindowResize: typeof Taro.onWindowResize;
|
|
|
1352
746
|
*/
|
|
1353
747
|
declare const offWindowResize: typeof Taro.offWindowResize;
|
|
1354
748
|
// Worker
|
|
1355
|
-
declare const createWorker: () => Promise<
|
|
1356
|
-
errMsg: string;
|
|
1357
|
-
}>;
|
|
749
|
+
declare const createWorker: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1358
750
|
declare const createSelectorQuery: typeof Taro.createSelectorQuery;
|
|
1359
|
-
declare const createIntersectionObserver: () => Promise<
|
|
1360
|
-
errMsg: string;
|
|
1361
|
-
}>;
|
|
751
|
+
declare const createIntersectionObserver: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
|
1362
752
|
export { createRewardedVideoAd, createInterstitialAd, stopFaceDetect, initFaceDetect, faceDetect, isVKSupport, createVKSession, getOpenUserInfo, canIUse, arrayBufferToBase64, base64ToArrayBuffer, getUserCryptoManager, setEnableDebug, getRealtimeLogManager, getLogManager, reportPerformance, getPerformance, openSystemBluetoothSetting, openAppAuthorizeSetting, getWindowInfo, getSystemSetting, getDeviceInfo, getAppBaseInfo, getAppAuthorizeSetting, getSystemInfoSync, getSystemInfoAsync, getSystemInfo, updateWeChatApp, getUpdateManager, onUnhandledRejection, onThemeChange, onPageNotFound, onError, onAudioInterruptionEnd, onAudioInterruptionBegin, onAppShow, onAppHide, offUnhandledRejection, offThemeChange, offPageNotFound, offError, offAudioInterruptionEnd, offAudioInterruptionBegin, offAppShow, offAppHide, getLaunchOptionsSync, getEnterOptionsSync, createOffscreenCanvas, createCanvasContext, canvasToTempFilePath, canvasPutImageData, canvasGetImageData, cloud, reportMonitor, reportAnalytics, reportEvent, getExptInfoSync, stopAccelerometer, startAccelerometer, onAccelerometerChange, offAccelerometerChange, checkIsOpenAccessibility, getBatteryInfoSync, getBatteryInfo, stopBluetoothDevicesDiscovery, startBluetoothDevicesDiscovery, openBluetoothAdapter, onBluetoothDeviceFound, onBluetoothAdapterStateChange, offBluetoothDeviceFound, offBluetoothAdapterStateChange, makeBluetoothPair, isBluetoothDevicePaired, getConnectedBluetoothDevices, getBluetoothDevices, getBluetoothAdapterState, closeBluetoothAdapter, writeBLECharacteristicValue, setBLEMTU, readBLECharacteristicValue, onBLEMTUChange, onBLEConnectionStateChange, onBLECharacteristicValueChange, offBLEMTUChange, offBLEConnectionStateChange, offBLECharacteristicValueChange, notifyBLECharacteristicValueChange, getBLEMTU, getBLEDeviceServices, getBLEDeviceRSSI, getBLEDeviceCharacteristics, createBLEConnection, closeBLEConnection, onBLEPeripheralConnectionStateChanged, offBLEPeripheralConnectionStateChanged, createBLEPeripheralServer, addPhoneRepeatCalendar, addPhoneCalendar, setClipboardData, getClipboardData, stopCompass, startCompass, onCompassChange, offCompassChange, chooseContact, addPhoneContact, getRandomValues, stopGyroscope, startGyroscope, onGyroscopeChange, offGyroscopeChange, stopBeaconDiscovery, startBeaconDiscovery, onBeaconUpdate, onBeaconServiceChange, offBeaconUpdate, offBeaconServiceChange, getBeacons, onKeyboardHeightChange, offKeyboardHeightChange, hideKeyboard, getSelectedTextRange, onMemoryWarning, offMemoryWarning, stopDeviceMotionListening, startDeviceMotionListening, onDeviceMotionChange, offDeviceMotionChange, getNetworkType, onNetworkWeakChange, onNetworkStatusChange, offNetworkWeakChange, offNetworkStatusChange, getLocalIPAddress, stopHCE, startHCE, sendHCEMessage, onHCEMessage, offHCEMessage, getNFCAdapter, getHCEState, makePhoneCall, scanCode, setVisualEffectOnCapture, setScreenBrightness, setKeepScreenOn, onUserCaptureScreen, offUserCaptureScreen, getScreenBrightness, vibrateShort, vibrateLong, stopWifi, startWifi, setWifiList, onWifiConnectedWithPartialInfo, onWifiConnected, onGetWifiList, offWifiConnected, offGetWifiList, getWifiList, getConnectedWifi, connectWifi, getExtConfigSync, getExtConfig, saveFileToDisk, saveFile, removeSavedFile, openDocument, getSavedFileList, getSavedFileInfo, getFileSystemManager, getFileInfo, getApp, getCurrentInstance, stopLocationUpdate, startLocationUpdateBackground, startLocationUpdate, openLocation, onLocationChangeError, onLocationChange, offLocationChangeError, offLocationChange, getLocation, choosePoi, getFuzzyLocation, chooseLocation, stopVoice, setInnerAudioOption, playVoice, pauseVoice, getAvailableAudioSources, createWebAudioContext, createMediaAudioPlayer, createInnerAudioContext, createAudioContext, stopBackgroundAudio, seekBackgroundAudio, playBackgroundAudio, pauseBackgroundAudio, onBackgroundAudioStop, onBackgroundAudioPlay, onBackgroundAudioPause, getBackgroundAudioPlayerState, getBackgroundAudioManager, createCameraContext, saveImageToPhotosAlbum, previewMedia, getImageInfo, previewImage, compressImage, chooseMessageFile, chooseImage, createLivePusherContext, createLivePlayerContext, createMapContext, createMediaRecorder, stopRecord, startRecord, getRecorderManager, saveVideoToPhotosAlbum, openVideoEditor, getVideoInfo, createVideoContext, compressVideo, chooseVideo, chooseMedia, createVideoDecoder, createMediaContainer, updateVoIPChatMuteConfig, subscribeVoIPVideoMembers, setEnable1v1Chat, onVoIPVideoMembersChanged, onVoIPChatStateChanged, onVoIPChatSpeakersChanged, onVoIPChatMembersChanged, onVoIPChatInterrupted, offVoIPVideoMembersChanged, offVoIPChatStateChanged, offVoIPChatMembersChanged, offVoIPChatInterrupted, joinVoIPChat, exitVoIPChat, openEmbeddedMiniProgram, navigateToMiniProgram, navigateBackMiniProgram, exitMiniProgram, openBusinessView, downloadFile, stopLocalServiceDiscovery, startLocalServiceDiscovery, onLocalServiceResolveFail, onLocalServiceLost, onLocalServiceFound, onLocalServiceDiscoveryStop, offLocalServiceResolveFail, offLocalServiceLost, offLocalServiceFound, offLocalServiceDiscoveryStop, request, addInterceptor, createTCPSocket, createUDPSocket, uploadFile, sendSocketMessage, onSocketOpen, onSocketMessage, onSocketError, onSocketClose, connectSocket, closeSocket, getAccountInfoSync, chooseAddress, authorizeForMiniProgram, authorize, openCard, addCard, reserveChannelsLive, openChannelsLive, openChannelsEvent, openChannelsActivity, getChannelsLiveNoticeInfo, getChannelsLiveInfo, openCustomerServiceChat, checkIsSupportFacialRecognition, startFacialRecognitionVerify, startFacialRecognitionVerifyAndUploadVideo, faceVerifyForPay, addVideoToFavorites, addFileToFavorites, getGroupEnterInfo, chooseInvoiceTitle, chooseInvoice, chooseLicensePlate, pluginLogin, login, checkSession, showRedPackage, openSetting, getSetting, startSoterAuthentication, checkIsSupportSoterAuthentication, checkIsSoterEnrolledInDevice, requestSubscribeMessage, getUserProfile, getUserInfo, shareToWeRun, getWeRunData, requestPayment, requestOrderPayment, updateShareMenu, showShareMenu, showShareImageMenu, shareVideoMessage, shareFileMessage, onCopyUrl, offCopyUrl, hideShareMenu, getShareInfo, authPrivateMessage, setStorageSync, setStorage, revokeBufferURL, removeStorageSync, removeStorage, getStorageSync, getStorageInfoSync, getStorageInfo, getStorage, createBufferURL, clearStorageSync, clearStorage, setBackgroundFetchToken, onBackgroundFetchData, getBackgroundFetchToken, getBackgroundFetchData, setPageInfo, ocrIdCard, ocrBankCard, ocrDrivingLicense, ocrVehicleLicense, textReview, textToAudio, imageAudit, advancedGeneralIdentify, objectDetectIdentify, carClassify, dishClassify, logoClassify, animalClassify, plantClassify, getSwanId, requestPolymerPayment, navigateToSmartGameProgram, navigateToSmartProgram, navigateBackSmartProgram, preloadSubPackage, createAnimation, setBackgroundTextStyle, setBackgroundColor, nextTick, loadFontFace, disableAlertBeforeUnload, enableAlertBeforeUnload, hideLoading, hideToast, showActionSheet, showLoading, showModal, showToast, getMenuButtonBoundingClientRect, showNavigationBarLoading, setNavigationBarTitle, setNavigationBarColor, hideNavigationBarLoading, hideHomeButton, startPullDownRefresh, stopPullDownRefresh, pageScrollTo, setTopBarText, initTabBarApis, showTabBarRedDot, showTabBar, setTabBarStyle, setTabBarItem, setTabBarBadge, removeTabBarBadge, hideTabBarRedDot, hideTabBar, setWindowSize, onWindowResize, offWindowResize, createWorker, createSelectorQuery, createIntersectionObserver };
|
|
1363
753
|
export { getCurrentPages, navigateBack, navigateTo, redirectTo, reLaunch, switchTab } from "@tarojs/router";
|