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