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