@tarojs/plugin-platform-harmony-ets 4.0.10-beta.2 → 4.0.10-beta.3
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/apis/apis.d.ts +19 -0
- package/dist/apis/base/crypto.d.ts +1 -0
- package/dist/apis/base/debug.d.ts +3 -0
- package/dist/apis/base/index.d.ts +10 -0
- package/dist/apis/base/performance.d.ts +5 -0
- package/dist/apis/base/system.d.ts +3 -0
- package/dist/apis/base/update.d.ts +2 -0
- package/dist/apis/base/weapp/app-event.d.ts +19 -0
- package/dist/apis/base/weapp/life-cycle.d.ts +3 -0
- package/dist/apis/canvas/index.d.ts +10 -0
- package/dist/apis/data-analysis/index.d.ts +4 -0
- package/dist/apis/device/accelerometer.d.ts +17 -0
- package/dist/apis/device/accessibility.d.ts +1 -0
- package/dist/apis/device/battery.d.ts +3 -0
- package/dist/apis/device/bluetooth-ble.d.ts +16 -0
- package/dist/apis/device/bluetooth-peripheral.d.ts +3 -0
- package/dist/apis/device/bluetooth.d.ts +13 -0
- package/dist/apis/device/calendar.d.ts +2 -0
- package/dist/apis/device/clipboard.d.ts +9 -0
- package/dist/apis/device/compass.d.ts +16 -0
- package/dist/apis/device/contact.d.ts +2 -0
- package/dist/apis/device/crypto.d.ts +1 -0
- package/dist/apis/device/gyroscope.d.ts +4 -0
- package/dist/apis/device/iBeacon.d.ts +7 -0
- package/dist/apis/device/index.d.ts +24 -0
- package/dist/apis/device/keyboard.d.ts +5 -0
- package/dist/apis/device/memory.d.ts +2 -0
- package/dist/apis/device/motion.d.ts +4 -0
- package/dist/apis/device/network.d.ts +14 -0
- package/dist/apis/device/nfc.d.ts +7 -0
- package/dist/apis/device/phone.d.ts +2 -0
- package/dist/apis/device/scan.d.ts +1 -0
- package/dist/apis/device/screen.d.ts +10 -0
- package/dist/apis/device/sms.d.ts +1 -0
- package/dist/apis/device/vibrate.d.ts +3 -0
- package/dist/apis/device/wifi.d.ts +12 -0
- package/dist/apis/ext/index.d.ts +2 -0
- package/dist/apis/files/index.d.ts +32 -0
- package/dist/apis/files/manager.d.ts +28 -0
- package/dist/apis/framework/index.d.ts +18 -0
- package/dist/apis/index.d.ts +22 -0
- package/dist/apis/location/index.d.ts +13 -0
- package/dist/apis/media/EditorContext.d.ts +16 -0
- package/dist/apis/media/audio/index.d.ts +12 -0
- package/dist/apis/media/background-audio/index.d.ts +12 -0
- package/dist/apis/media/camera.d.ts +2 -0
- package/dist/apis/media/common.d.ts +3 -0
- package/dist/apis/media/image/index.d.ts +6 -0
- package/dist/apis/media/index.d.ts +13 -0
- package/dist/apis/media/live.d.ts +2 -0
- package/dist/apis/media/map.d.ts +1 -0
- package/dist/apis/media/media-recorder.d.ts +1 -0
- package/dist/apis/media/recorder.d.ts +3 -0
- package/dist/apis/media/video/index.d.ts +7 -0
- package/dist/apis/media/video-decoder.d.ts +1 -0
- package/dist/apis/media/video-processing.d.ts +1 -0
- package/dist/apis/media/voip.d.ts +16 -0
- package/dist/apis/navigate/index.d.ts +5 -0
- package/dist/apis/network/downloadFile.d.ts +2 -0
- package/dist/apis/network/index.d.ts +7 -0
- package/dist/apis/network/mdns.d.ts +10 -0
- package/dist/apis/network/request.d.ts +2 -0
- package/dist/apis/network/tcp.d.ts +1 -0
- package/dist/apis/network/udp.d.ts +1 -0
- package/dist/apis/network/uploadFile.d.ts +2 -0
- package/dist/apis/network/webSocket.d.ts +2 -0
- package/dist/apis/open-api/account.d.ts +1 -0
- package/dist/apis/open-api/address.d.ts +1 -0
- package/dist/apis/open-api/authorize.d.ts +2 -0
- package/dist/apis/open-api/card.d.ts +2 -0
- package/dist/apis/open-api/channels-live.d.ts +8 -0
- package/dist/apis/open-api/customer-service.d.ts +1 -0
- package/dist/apis/open-api/device-voip.d.ts +2 -0
- package/dist/apis/open-api/facial.d.ts +4 -0
- package/dist/apis/open-api/favorites.d.ts +2 -0
- package/dist/apis/open-api/group.d.ts +1 -0
- package/dist/apis/open-api/index.d.ts +21 -0
- package/dist/apis/open-api/invoice.d.ts +2 -0
- package/dist/apis/open-api/license-plate.d.ts +1 -0
- package/dist/apis/open-api/login.d.ts +3 -0
- package/dist/apis/open-api/my-miniprogram.d.ts +1 -0
- package/dist/apis/open-api/privacy.d.ts +4 -0
- package/dist/apis/open-api/red-package.d.ts +1 -0
- package/dist/apis/open-api/settings.d.ts +2 -0
- package/dist/apis/open-api/soter.d.ts +3 -0
- package/dist/apis/open-api/subscribe-message.d.ts +2 -0
- package/dist/apis/open-api/user-info.d.ts +15 -0
- package/dist/apis/open-api/werun.d.ts +2 -0
- package/dist/apis/payment/index.d.ts +3 -0
- package/dist/apis/route/index.d.ts +10 -0
- package/dist/apis/share/index.d.ts +20 -0
- package/dist/apis/storage/background-fetch.d.ts +4 -0
- package/dist/apis/storage/cache-manager.d.ts +1 -0
- package/dist/apis/storage/index.d.ts +19 -0
- package/dist/apis/ui/animation/animation.d.ts +56 -0
- package/dist/apis/ui/animation/index.d.ts +3 -0
- package/dist/apis/ui/background.d.ts +2 -0
- package/dist/apis/ui/custom-component.d.ts +2 -0
- package/dist/apis/ui/fonts.d.ts +1 -0
- package/dist/apis/ui/index.d.ts +12 -0
- package/dist/apis/ui/interaction/index.d.ts +8 -0
- package/dist/apis/ui/menu.d.ts +1 -0
- package/dist/apis/ui/navigation-bar/index.d.ts +6 -0
- package/dist/apis/ui/pull-down-refresh.d.ts +3 -0
- package/dist/apis/ui/scroll/index.d.ts +5 -0
- package/dist/apis/ui/sticky.d.ts +1 -0
- package/dist/apis/ui/tab-bar.d.ts +9 -0
- package/dist/apis/ui/window.d.ts +14 -0
- package/dist/apis/utils/handler.d.ts +46 -0
- package/dist/apis/utils/index.d.ts +17 -0
- package/dist/apis/utils/permissions.d.ts +5 -0
- package/dist/apis/utils/types.d.ts +11 -0
- package/dist/apis/utils/validate.d.ts +39 -0
- package/dist/apis/worker/index.d.ts +1 -0
- package/dist/apis/wxml/IntersectionObserver.d.ts +12 -0
- package/dist/apis/wxml/index.d.ts +7 -0
- package/dist/apis/wxml/nodesRef.d.ts +14 -0
- package/dist/apis/wxml/selectorQuery.d.ts +39 -0
- package/dist/components/components-harmony-ets/tag.d.ts +53 -0
- package/dist/components/components-harmony-ets/utils/DynamicCenter.d.ts +7 -0
- package/dist/components/components-harmony-ets/utils/events.d.ts +3 -0
- package/dist/components/components-harmony-ets/utils/htmlParser/HarmonyHTMLParser.d.ts +11 -0
- package/dist/components/components-harmony-ets/utils/htmlParser/index.d.ts +3 -0
- package/dist/components/components-harmony-ets/utils/index.d.ts +11 -0
- package/dist/components/components-react.d.ts +7 -0
- package/dist/components/components-react.js +2 -41
- package/dist/components/components-react.js.map +1 -1
- package/dist/components/index.d.ts +119 -0
- package/dist/index.d.ts +6 -148
- package/dist/index.js.map +1 -1
- package/dist/program/arkTS.d.ts +40 -0
- package/dist/program/harmony.d.ts +36 -0
- package/dist/program/jsUI.d.ts +60 -0
- package/dist/runtime-ets/bom/URL.d.ts +2 -0
- package/dist/runtime-ets/bom/document.d.ts +2 -0
- package/dist/runtime-ets/bom/getComputedStyle.d.ts +1 -0
- package/dist/runtime-ets/bom/history.d.ts +1 -0
- package/dist/runtime-ets/bom/location.d.ts +1 -0
- package/dist/runtime-ets/bom/navigator.d.ts +1 -0
- package/dist/runtime-ets/bom/raf.d.ts +1 -0
- package/dist/runtime-ets/bom/window.d.ts +20 -0
- package/dist/runtime-ets/constant.d.ts +17 -0
- package/dist/runtime-ets/current.d.ts +4 -0
- package/dist/runtime-ets/dom/bind.d.ts +4 -0
- package/dist/runtime-ets/dom/class-list.d.ts +15 -0
- package/dist/runtime-ets/dom/comment.d.ts +5 -0
- package/dist/runtime-ets/dom/cssNesting.d.ts +7 -0
- package/dist/runtime-ets/dom/cssStyleDeclaration.d.ts +14 -0
- package/dist/runtime-ets/dom/document.d.ts +20 -0
- package/dist/runtime-ets/dom/element/index.d.ts +14 -0
- package/dist/runtime-ets/dom/element/movableArea.d.ts +5 -0
- package/dist/runtime-ets/dom/element/progress.d.ts +5 -0
- package/dist/runtime-ets/dom/element/text.d.ts +5 -0
- package/dist/runtime-ets/dom/element/webView.d.ts +15 -0
- package/dist/runtime-ets/dom/event-source.d.ts +1 -0
- package/dist/runtime-ets/dom/event.d.ts +24 -0
- package/dist/runtime-ets/dom/eventTarget.d.ts +17 -0
- package/dist/runtime-ets/dom/node.d.ts +62 -0
- package/dist/runtime-ets/dom/stylesheet/covertWeb2Hm.d.ts +3 -0
- package/dist/runtime-ets/dom/stylesheet/index.d.ts +83 -0
- package/dist/runtime-ets/emitter/emitter.d.ts +1 -0
- package/dist/runtime-ets/env.d.ts +1 -0
- package/dist/runtime-ets/index.d.ts +22 -0
- package/dist/runtime-ets/interface/event.d.ts +9 -0
- package/dist/runtime-ets/interface/index.d.ts +6 -0
- package/dist/runtime-ets/utils/index.d.ts +26 -0
- package/dist/runtime-ets/utils/info.d.ts +11 -0
- package/dist/runtime-ets/utils/router.d.ts +1 -0
- package/dist/runtime-framework/react/app.d.ts +12 -0
- package/dist/runtime-framework/react/connect.d.ts +1 -0
- package/dist/runtime-framework/react/constant.d.ts +5 -0
- package/dist/runtime-framework/react/hooks.d.ts +30 -0
- package/dist/runtime-framework/react/index.d.ts +5 -0
- package/dist/runtime-framework/react/native-page.d.ts +8 -0
- package/dist/runtime-framework/react/page.d.ts +13 -0
- package/dist/runtime-framework/react/utils/index.d.ts +7 -0
- package/dist/runtime-framework/react/utils/is.d.ts +10 -0
- package/dist/runtime-framework/solid/app.d.ts +10 -0
- package/dist/runtime-framework/solid/connect.d.ts +4 -0
- package/dist/runtime-framework/solid/constant.d.ts +5 -0
- package/dist/runtime-framework/solid/hooks.d.ts +30 -0
- package/dist/runtime-framework/solid/index.d.ts +4 -0
- package/dist/runtime-framework/solid/page.d.ts +13 -0
- package/dist/runtime-framework/solid/reconciler/h.d.ts +8 -0
- package/dist/runtime-framework/solid/reconciler/index.d.ts +3 -0
- package/dist/runtime-framework/solid/reconciler/props.d.ts +7 -0
- package/dist/runtime-framework/solid/reconciler/props.ts +1 -1
- package/dist/runtime-framework/solid/reconciler/render.d.ts +16 -0
- package/dist/runtime-framework/solid/reconciler/use.d.ts +1 -0
- package/dist/runtime-framework/solid/utils/index.d.ts +16 -0
- package/dist/runtime-framework/solid/utils/is.d.ts +10 -0
- package/dist/runtime-utils.d.ts +4 -818
- package/dist/runtime-utils.js +393 -393
- package/dist/runtime-utils.js.map +1 -1
- package/dist/runtime.js +393 -393
- package/dist/runtime.js.map +1 -1
- package/dist/template.d.ts +43 -0
- package/dist/utils/api-loader.d.ts +1 -0
- package/dist/utils/constants.d.ts +4 -0
- package/dist/utils/index.d.ts +3 -0
- package/package.json +10 -10
package/dist/runtime-utils.d.ts
CHANGED
|
@@ -1,820 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
/** 错误信息 */
|
|
6
|
-
errMsg: string;
|
|
7
|
-
}
|
|
8
|
-
type TCallback<T = Partial<ICallbackResult>> = (res: T) => Promise<void> | void;
|
|
9
|
-
interface IMethodParam<T = Partial<ICallbackResult>> {
|
|
10
|
-
name: string;
|
|
11
|
-
success?: TCallback<T & ICallbackResult>;
|
|
12
|
-
fail?: TCallback;
|
|
13
|
-
complete?: TCallback<T | ICallbackResult>;
|
|
14
|
-
}
|
|
15
|
-
interface IMockPromise {
|
|
16
|
-
resolve?: typeof Promise.resolve | TFunc;
|
|
17
|
-
reject?: typeof Promise.reject | TFunc;
|
|
18
|
-
}
|
|
19
|
-
class MethodHandler<T = Partial<ICallbackResult>> {
|
|
20
|
-
methodName: string;
|
|
21
|
-
protected __success?: TCallback<T>;
|
|
22
|
-
protected __fail?: TCallback;
|
|
23
|
-
protected __complete?: TCallback<T | ICallbackResult>;
|
|
24
|
-
protected isHandlerError: boolean;
|
|
25
|
-
constructor({ name, success, fail, complete }: IMethodParam<T>);
|
|
26
|
-
success<U = Record<string, unknown>>(res?: Partial<T> & Partial<ICallbackResult>, promise?: IMockPromise): Promise<T & U & ICallbackResult>;
|
|
27
|
-
fail<U = Record<string, unknown>>(res?: Partial<T> & Partial<ICallbackResult>, promise?: IMockPromise): Promise<T & U & ICallbackResult>;
|
|
28
|
-
}
|
|
29
|
-
type TCallbackManagerFunc<T extends unknown[] = unknown[]> = (...arr: T) => void;
|
|
30
|
-
interface ICallbackManagerOption<T extends unknown[] = unknown[]> {
|
|
31
|
-
callback?: TCallbackManagerFunc<T>;
|
|
32
|
-
ctx?: any;
|
|
33
|
-
[key: string]: unknown;
|
|
34
|
-
}
|
|
35
|
-
type TCallbackManagerUnit<T extends unknown[] = unknown[]> = (TCallbackManagerFunc<T> | ICallbackManagerOption<T>);
|
|
36
|
-
class CallbackManager<T extends unknown[] = unknown[]> {
|
|
37
|
-
callbacks: TCallbackManagerUnit<T>[];
|
|
38
|
-
/** 添加回调 */
|
|
39
|
-
add: (opt?: TCallbackManagerUnit<T>) => void;
|
|
40
|
-
/** 移除回调 */
|
|
41
|
-
remove: (opt?: TCallbackManagerUnit<T>) => void;
|
|
42
|
-
/** 获取回调函数数量 */
|
|
43
|
-
count: () => number;
|
|
44
|
-
/** 触发回调 */
|
|
45
|
-
trigger: (...args: T) => void;
|
|
46
|
-
}
|
|
47
|
-
const canIUse: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
48
|
-
const arrayBufferToBase64: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
49
|
-
const base64ToArrayBuffer: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
50
|
-
// 加密
|
|
51
|
-
const getUserCryptoManager: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
52
|
-
const setEnableDebug: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
53
|
-
const getRealtimeLogManager: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
54
|
-
const getLogManager: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
55
|
-
const reportPerformance: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
56
|
-
const getPerformance: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
57
|
-
const preloadWebview: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
58
|
-
const preloadSkylineView: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
59
|
-
const preloadAssets: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
60
|
-
/* 同步版本 */
|
|
61
|
-
const getSystemInfoSync: typeof Taro.getSystemInfoSync;
|
|
62
|
-
/* 异步版本 */
|
|
63
|
-
const getSystemInfo: typeof Taro.getSystemInfo;
|
|
64
|
-
const updateWeChatApp: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
65
|
-
const getUpdateManager: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
66
|
-
// 应用级事件
|
|
67
|
-
const onUnhandledRejection: typeof Taro.onUnhandledRejection;
|
|
68
|
-
const onThemeChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
69
|
-
const onPageNotFound: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
70
|
-
const onLazyLoadError: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
71
|
-
const onError: typeof Taro.onError;
|
|
72
|
-
const onAudioInterruptionEnd: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
73
|
-
const onAudioInterruptionBegin: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
74
|
-
const onAppShow: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
75
|
-
const onAppHide: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
76
|
-
const offUnhandledRejection: typeof Taro.offUnhandledRejection;
|
|
77
|
-
const offThemeChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
78
|
-
const offPageNotFound: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
79
|
-
const offLazyLoadError: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
80
|
-
const offError: typeof Taro.offError;
|
|
81
|
-
const offAudioInterruptionEnd: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
82
|
-
const offAudioInterruptionBegin: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
83
|
-
const offAppShow: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
84
|
-
const offAppHide: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
85
|
-
// 生命周期
|
|
86
|
-
const getLaunchOptionsSync: typeof Taro.getLaunchOptionsSync;
|
|
87
|
-
const getEnterOptionsSync: typeof Taro.getEnterOptionsSync;
|
|
88
|
-
// 画布
|
|
89
|
-
/** 创建离屏 canvas 实例 */
|
|
90
|
-
const createOffscreenCanvas: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
91
|
-
/** 创建 canvas 的绘图上下文 CanvasContext 对象 */
|
|
92
|
-
// export const createCanvasContext = /* @__PURE__ */ temporarilyNotSupport('createOffscreenCanvas')
|
|
93
|
-
const createCanvasContext: (canvasId: string) => any;
|
|
94
|
-
/** 把当前画布指定区域的内容导出生成指定大小的图片 */
|
|
95
|
-
const canvasToTempFilePath: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
96
|
-
/** 将像素数据绘制到画布 */
|
|
97
|
-
const canvasPutImageData: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
98
|
-
/** 获取 canvas 区域隐含的像素数据 */
|
|
99
|
-
const canvasGetImageData: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
100
|
-
const reportMonitor: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
101
|
-
const reportAnalytics: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
102
|
-
const reportEvent: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
103
|
-
const getExptInfoSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
104
|
-
/**
|
|
105
|
-
* 停止监听加速度数据。
|
|
106
|
-
*/
|
|
107
|
-
const stopAccelerometer: typeof Taro.stopAccelerometer;
|
|
108
|
-
/**
|
|
109
|
-
* 开始监听加速度数据。
|
|
110
|
-
*/
|
|
111
|
-
const startAccelerometer: typeof Taro.startAccelerometer;
|
|
112
|
-
/**
|
|
113
|
-
* 监听加速度数据事件。频率根据 Taro.startAccelerometer() 的 interval 参数。可使用 Taro.stopAccelerometer() 停止监听。
|
|
114
|
-
*/
|
|
115
|
-
const onAccelerometerChange: typeof Taro.onAccelerometerChange;
|
|
116
|
-
/**
|
|
117
|
-
* 取消监听加速度数据事件,参数为空,则取消所有的事件监听
|
|
118
|
-
*/
|
|
119
|
-
const offAccelerometerChange: typeof Taro.offAccelerometerChange;
|
|
120
|
-
// 无障碍
|
|
121
|
-
const checkIsOpenAccessibility: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
122
|
-
// 电量
|
|
123
|
-
const getBatteryInfoSync: typeof Taro.getBatteryInfoSync;
|
|
124
|
-
const getBatteryInfo: typeof Taro.getBatteryInfo;
|
|
125
|
-
// 蓝牙-通用
|
|
126
|
-
const stopBluetoothDevicesDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
127
|
-
const startBluetoothDevicesDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
128
|
-
const openBluetoothAdapter: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
129
|
-
const onBluetoothDeviceFound: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
130
|
-
const onBluetoothAdapterStateChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
131
|
-
const offBluetoothDeviceFound: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
132
|
-
const offBluetoothAdapterStateChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
133
|
-
const makeBluetoothPair: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
134
|
-
const isBluetoothDevicePaired: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
135
|
-
const getConnectedBluetoothDevices: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
136
|
-
const getBluetoothDevices: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
137
|
-
const getBluetoothAdapterState: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
138
|
-
const closeBluetoothAdapter: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
139
|
-
// 蓝牙-低功耗中心设备
|
|
140
|
-
const writeBLECharacteristicValue: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
141
|
-
const setBLEMTU: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
142
|
-
const readBLECharacteristicValue: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
143
|
-
const onBLEMTUChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
144
|
-
const onBLEConnectionStateChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
145
|
-
const onBLECharacteristicValueChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
146
|
-
const offBLEMTUChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
147
|
-
const offBLEConnectionStateChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
148
|
-
const offBLECharacteristicValueChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
149
|
-
const notifyBLECharacteristicValueChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
150
|
-
const getBLEMTU: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
151
|
-
const getBLEDeviceServices: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
152
|
-
const getBLEDeviceRSSI: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
153
|
-
const getBLEDeviceCharacteristics: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
154
|
-
const createBLEConnection: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
155
|
-
const closeBLEConnection: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
156
|
-
const onBLEPeripheralConnectionStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
157
|
-
const offBLEPeripheralConnectionStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
158
|
-
const createBLEPeripheralServer: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
159
|
-
const addPhoneRepeatCalendar: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
160
|
-
const addPhoneCalendar: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
161
|
-
/**
|
|
162
|
-
* 设置系统剪贴板的内容
|
|
163
|
-
*/
|
|
164
|
-
const setClipboardData: typeof Taro.setClipboardData;
|
|
165
|
-
/**
|
|
166
|
-
* 获取系统剪贴板的内容
|
|
167
|
-
*/
|
|
168
|
-
const getClipboardData: typeof Taro.getClipboardData;
|
|
169
|
-
/**
|
|
170
|
-
* 停止监听罗盘数据
|
|
171
|
-
*/
|
|
172
|
-
const stopCompass: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
173
|
-
/**
|
|
174
|
-
* 开始监听罗盘数据
|
|
175
|
-
*/
|
|
176
|
-
const startCompass: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
177
|
-
/**
|
|
178
|
-
* 监听罗盘数据变化事件。频率:5 次/秒,接口调用后会自动开始监听,可使用 wx.stopCompass 停止监听。
|
|
179
|
-
*/
|
|
180
|
-
const onCompassChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
181
|
-
/**
|
|
182
|
-
* 取消监听罗盘数据变化事件,参数为空,则取消所有的事件监听。
|
|
183
|
-
*/
|
|
184
|
-
const offCompassChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
185
|
-
const chooseContact: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
186
|
-
const addPhoneContact: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
187
|
-
const getRandomValues: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
188
|
-
const stopGyroscope: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
189
|
-
const startGyroscope: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
190
|
-
const onGyroscopeChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
191
|
-
const offGyroscopeChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
192
|
-
// 蓝牙-信标(Beacon)
|
|
193
|
-
const stopBeaconDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
194
|
-
const startBeaconDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
195
|
-
const onBeaconUpdate: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
196
|
-
const onBeaconServiceChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
197
|
-
const offBeaconUpdate: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
198
|
-
const offBeaconServiceChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
199
|
-
const getBeacons: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
200
|
-
const onKeyboardHeightChange: typeof Taro.onKeyboardHeightChange;
|
|
201
|
-
const offKeyboardHeightChange: typeof Taro.offKeyboardHeightChange;
|
|
202
|
-
const hideKeyboard: typeof Taro.hideKeyboard;
|
|
203
|
-
const getSelectedTextRange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
204
|
-
const onMemoryWarning: (listener: any) => void;
|
|
205
|
-
const offMemoryWarning: (listener: any) => void;
|
|
206
|
-
const stopDeviceMotionListening: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
207
|
-
const startDeviceMotionListening: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
208
|
-
const onDeviceMotionChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
209
|
-
const offDeviceMotionChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
210
|
-
const getNetworkType: typeof Taro.getNetworkType;
|
|
211
|
-
/**
|
|
212
|
-
* 在最近的八次网络请求中, 出现下列三个现象之一则判定弱网。
|
|
213
|
-
* - 出现三次以上连接超时
|
|
214
|
-
* - 出现三次 rtt 超过 400
|
|
215
|
-
* - 出现三次以上的丢包
|
|
216
|
-
* > 弱网事件通知规则是: 弱网状态变化时立即通知, 状态不变时 30s 内最多通知一次。
|
|
217
|
-
*/
|
|
218
|
-
const onNetworkWeakChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
219
|
-
const onNetworkStatusChange: typeof Taro.onNetworkStatusChange;
|
|
220
|
-
const offNetworkWeakChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
221
|
-
const offNetworkStatusChange: typeof Taro.offNetworkStatusChange;
|
|
222
|
-
const getLocalIPAddress: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
223
|
-
const stopHCE: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
224
|
-
const startHCE: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
225
|
-
const sendHCEMessage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
226
|
-
const onHCEMessage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
227
|
-
const offHCEMessage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
228
|
-
const getNFCAdapter: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
229
|
-
const getHCEState: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
230
|
-
const makePhoneCall: typeof Taro.makePhoneCall;
|
|
231
|
-
const scanCode: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
232
|
-
// 屏幕
|
|
233
|
-
const setVisualEffectOnCapture: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
234
|
-
const setScreenBrightness: typeof Taro.setScreenBrightness;
|
|
235
|
-
const setKeepScreenOn: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
236
|
-
const onUserCaptureScreen: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
237
|
-
const offUserCaptureScreen: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
238
|
-
const getScreenBrightness: typeof Taro.getScreenBrightness;
|
|
239
|
-
const onScreenRecordingStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
240
|
-
const offScreenRecordingStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
241
|
-
const getScreenRecordingState: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
242
|
-
const sendSms: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
243
|
-
const vibrateLong: ({ success, fail, complete }?: Taro.vibrateLong.Option) => Promise<unknown>;
|
|
244
|
-
const vibrateShort: ({ success, fail, complete }?: Taro.vibrateLong.Option) => Promise<unknown>;
|
|
245
|
-
const stopWifi: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
246
|
-
const startWifi: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
247
|
-
const setWifiList: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
248
|
-
const onWifiConnectedWithPartialInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
249
|
-
const onWifiConnected: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
250
|
-
const onGetWifiList: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
251
|
-
const offWifiConnectedWithPartialInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
252
|
-
const offWifiConnected: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
253
|
-
const offGetWifiList: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
254
|
-
const getWifiList: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
255
|
-
const getConnectedWifi: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
256
|
-
const connectWifi: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
257
|
-
const getExtConfigSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
258
|
-
const getExtConfig: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
259
|
-
function validateSavedFilePath(savedFilePath: string): void;
|
|
260
|
-
function getFileSystemManager(): Taro.FileSystemManager;
|
|
261
|
-
const saveFileToDisk: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
262
|
-
/**
|
|
263
|
-
* HarmonyOS 不支持 showMenu 选项,并且 type 目前仅支持 *,详情参见:
|
|
264
|
-
* https://developer.harmonyos.com/cn/docs/documentation/doc-references/js-apis-document-0000001168936589#section9616125953711
|
|
265
|
-
*/
|
|
266
|
-
function openDocument(option: Taro.openDocument.Option): Promise<any>;
|
|
267
|
-
function saveFile(option: Taro.saveFile.Option): Promise<any>;
|
|
268
|
-
function removeSavedFile(option: Taro.removeSavedFile.Option): Promise<any>;
|
|
269
|
-
function getFileInfo(option: Taro.getFileInfo.Option): Promise<Taro.getFileInfo.SuccessCallbackResult | Taro.getFileInfo.FailCallbackResult>;
|
|
270
|
-
function getSavedFileList(option?: Taro.getSavedFileList.Option): Promise<Taro.getSavedFileList.SuccessCallbackResult>;
|
|
271
|
-
function getSavedFileInfo(option: Taro.getSavedFileInfo.Option): Promise<Taro.getSavedFileInfo.SuccessCallbackResult>;
|
|
272
|
-
const ENV_TYPE: {
|
|
273
|
-
WEAPP: string;
|
|
274
|
-
SWAN: string;
|
|
275
|
-
ALIPAY: string;
|
|
276
|
-
TT: string;
|
|
277
|
-
QQ: string;
|
|
278
|
-
JD: string;
|
|
279
|
-
WEB: string;
|
|
280
|
-
RN: string;
|
|
281
|
-
HARMONY: string;
|
|
282
|
-
QUICKAPP: string;
|
|
283
|
-
};
|
|
284
|
-
function getEnv(): string;
|
|
285
|
-
// TODO
|
|
286
|
-
const getCurrentPages: () => never[];
|
|
287
|
-
const requirePlugin: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
288
|
-
// 位置
|
|
289
|
-
const stopLocationUpdate: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
290
|
-
const startLocationUpdateBackground: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
291
|
-
const startLocationUpdate: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
292
|
-
const openLocation: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
293
|
-
// TODO:增加参数校验
|
|
294
|
-
// const getLocationSchema = {
|
|
295
|
-
// type: 'String',
|
|
296
|
-
// altitude: 'Boolean',
|
|
297
|
-
// ishighAccuracy: 'Boolean',
|
|
298
|
-
// highAccuracyExpireTime: 'number'
|
|
299
|
-
// }
|
|
300
|
-
const getLocation: typeof Taro.getLocation;
|
|
301
|
-
const onLocationChange: typeof Taro.onLocationChange;
|
|
302
|
-
const offLocationChange: typeof Taro.offLocationChange;
|
|
303
|
-
const onLocationChangeError: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
304
|
-
const offLocationChangeError: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
305
|
-
const choosePoi: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
306
|
-
const chooseLocation: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
307
|
-
const getFuzzyLocation: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
308
|
-
// 音频
|
|
309
|
-
const stopVoice: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
310
|
-
const setInnerAudioOption: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
311
|
-
const playVoice: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
312
|
-
const pauseVoice: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
313
|
-
const getAvailableAudioSources: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
314
|
-
const createWebAudioContext: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
315
|
-
const createMediaAudioPlayer: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
316
|
-
/**
|
|
317
|
-
* 创建内部 audio 上下文 InnerAudioContext 对象。
|
|
318
|
-
*/
|
|
319
|
-
const createInnerAudioContext: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
320
|
-
const createAudioContext: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
321
|
-
// 背景音频
|
|
322
|
-
const stopBackgroundAudio: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
323
|
-
const seekBackgroundAudio: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
324
|
-
const playBackgroundAudio: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
325
|
-
const pauseBackgroundAudio: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
326
|
-
const onBackgroundAudioStop: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
327
|
-
const onBackgroundAudioPlay: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
328
|
-
const onBackgroundAudioPause: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
329
|
-
const getBackgroundAudioPlayerState: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
330
|
-
/**
|
|
331
|
-
* 获取全局唯一的背景音频管理器
|
|
332
|
-
*/
|
|
333
|
-
const getBackgroundAudioManager: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
334
|
-
const createCameraContext: typeof Taro.createCameraContext;
|
|
335
|
-
// TODO: 扩展支持预览video
|
|
336
|
-
const previewMedia: typeof Taro.previewMedia;
|
|
337
|
-
const chooseMedia: typeof Taro.chooseMedia;
|
|
338
|
-
const getImageInfo: typeof Taro.getImageInfo;
|
|
339
|
-
const compressImage: typeof Taro.compressImage;
|
|
340
|
-
const chooseImage: typeof Taro.chooseImage;
|
|
341
|
-
const previewImage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
342
|
-
const saveImageToPhotosAlbum: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
343
|
-
const createLivePusherContext: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
344
|
-
const createLivePlayerContext: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
345
|
-
const createMapContext: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
346
|
-
const createMediaRecorder: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
347
|
-
const stopRecord: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
348
|
-
const startRecord: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
349
|
-
const getRecorderManager: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
350
|
-
const createVideoContext: typeof Taro.createVideoContext;
|
|
351
|
-
// TODO: 1.返回属性补全
|
|
352
|
-
// TODO: 2.只支持从相册选择,补充摄像头拍摄功能,需要HarmonyOS提供选择组件
|
|
353
|
-
const chooseVideo: typeof Taro.chooseVideo;
|
|
354
|
-
const compressVideo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
355
|
-
const getVideoInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
356
|
-
const openVideoEditor: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
357
|
-
const saveVideoToPhotosAlbum: typeof Taro.saveVideoToPhotosAlbum;
|
|
358
|
-
const createVideoDecoder: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
359
|
-
const createMediaContainer: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
360
|
-
// 实时语音
|
|
361
|
-
const updateVoIPChatMuteConfig: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
362
|
-
const subscribeVoIPVideoMembers: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
363
|
-
const setEnable1v1Chat: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
364
|
-
const onVoIPVideoMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
365
|
-
const onVoIPChatStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
366
|
-
const onVoIPChatSpeakersChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
367
|
-
const onVoIPChatMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
368
|
-
const onVoIPChatInterrupted: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
369
|
-
const offVoIPChatSpeakersChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
370
|
-
const offVoIPVideoMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
371
|
-
const offVoIPChatStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
372
|
-
const offVoIPChatMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
373
|
-
const offVoIPChatInterrupted: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
374
|
-
const joinVoIPChat: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
375
|
-
const join1v1Chat: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
376
|
-
const exitVoIPChat: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
377
|
-
const openEmbeddedMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
378
|
-
const navigateToMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
379
|
-
const navigateBackMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
380
|
-
const exitMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
381
|
-
const openBusinessView: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
382
|
-
const downloadFile: typeof Taro.downloadFile;
|
|
383
|
-
const stopLocalServiceDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
384
|
-
const startLocalServiceDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
385
|
-
const onLocalServiceResolveFail: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
386
|
-
const onLocalServiceLost: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
387
|
-
const onLocalServiceFound: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
388
|
-
const onLocalServiceDiscoveryStop: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
389
|
-
const offLocalServiceResolveFail: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
390
|
-
const offLocalServiceLost: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
391
|
-
const offLocalServiceFound: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
392
|
-
const offLocalServiceDiscoveryStop: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
393
|
-
const request: typeof Taro.request;
|
|
394
|
-
// TCP 通信
|
|
395
|
-
const createTCPSocket: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
396
|
-
const createUDPSocket: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
397
|
-
// wx 只支持 HTTP POST 请求,OHOS 支持 POST 和 PUT 请求
|
|
398
|
-
// OHOS 不支持 wx 的 timeout,但是支持 file 文件列表上传,wx 是单文件上传
|
|
399
|
-
const uploadFile: typeof Taro.uploadFile;
|
|
400
|
-
const connectSocket: typeof Taro.connectSocket;
|
|
401
|
-
const getAccountInfoSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
402
|
-
const chooseAddress: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
403
|
-
const authorizeForMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
404
|
-
const authorize: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
405
|
-
const openCard: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
406
|
-
const addCard: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
407
|
-
const reserveChannelsLive: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
408
|
-
const openChannelsUserProfile: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
409
|
-
const openChannelsLive: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
410
|
-
const openChannelsEvent: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
411
|
-
const openChannelsActivity: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
412
|
-
const getChannelsShareKey: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
413
|
-
const getChannelsLiveNoticeInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
414
|
-
const getChannelsLiveInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
415
|
-
const openCustomerServiceChat: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
416
|
-
const requestDeviceVoIP: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
417
|
-
const getDeviceVoIPList: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
418
|
-
const checkIsSupportFacialRecognition: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
419
|
-
const startFacialRecognitionVerify: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
420
|
-
const startFacialRecognitionVerifyAndUploadVideo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
421
|
-
const faceVerifyForPay: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
422
|
-
const addVideoToFavorites: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
423
|
-
const addFileToFavorites: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
424
|
-
const getGroupEnterInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
425
|
-
const chooseInvoiceTitle: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
426
|
-
const chooseInvoice: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
427
|
-
const chooseLicensePlate: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
428
|
-
const pluginLogin: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
429
|
-
const login: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
430
|
-
const checkSession: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
431
|
-
const checkIsAddedToMyMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
432
|
-
const requirePrivacyAuthorize: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
433
|
-
const openPrivacyContract: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
434
|
-
const onNeedPrivacyAuthorization: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
435
|
-
const getPrivacySetting: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
436
|
-
const showRedPackage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
437
|
-
const openSetting: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
438
|
-
const getSetting: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
439
|
-
const startSoterAuthentication: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
440
|
-
const checkIsSupportSoterAuthentication: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
441
|
-
const checkIsSoterEnrolledInDevice: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
442
|
-
const requestSubscribeMessage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
443
|
-
// 订阅设备消息
|
|
444
|
-
const requestSubscribeDeviceMessage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
445
|
-
/**
|
|
446
|
-
* 通过Scope数组获取已登录的对应帐号信息(依赖login行为)
|
|
447
|
-
* @param options
|
|
448
|
-
*/
|
|
449
|
-
const getUserInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
450
|
-
// export function getUserInfo (options) {
|
|
451
|
-
// const { success, fail, complete } = options
|
|
452
|
-
// const res: Record<string, any> = {}
|
|
453
|
-
// // const result = hmsJSAccount.HuaweiIdAuthManager.getAuthResultWithScopes([hmsJSAccount.PROFILE])
|
|
454
|
-
// const result = null
|
|
455
|
-
// if (result) {
|
|
456
|
-
// res.data = { userInfo: generateUserInfo(result) }
|
|
457
|
-
// isFunction(success) && success(res)
|
|
458
|
-
// } else {
|
|
459
|
-
// res.errorMsg = 'getUserInfo result data is null'
|
|
460
|
-
// isFunction(fail) && fail(res)
|
|
461
|
-
// }
|
|
462
|
-
// isFunction(complete) && complete(res)
|
|
463
|
-
// }
|
|
464
|
-
/**
|
|
465
|
-
* 获取用户信息
|
|
466
|
-
*/
|
|
467
|
-
const getUserProfile: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
468
|
-
const shareToWeRun: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
469
|
-
const getWeRunData: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
470
|
-
const requestPayment: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
471
|
-
const requestPluginPayment: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
472
|
-
const requestOrderPayment: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
473
|
-
const navigateTo: (option: Taro.navigateTo.Option) => Promise<TaroGeneral.CallbackResult>;
|
|
474
|
-
const redirectTo: (option: Taro.navigateTo.Option) => Promise<TaroGeneral.CallbackResult>;
|
|
475
|
-
function navigateBack(options: Taro.navigateBack.Option & {
|
|
476
|
-
url?: string;
|
|
477
|
-
}): Promise<any>;
|
|
478
|
-
const reLaunch: typeof Taro.reLaunch;
|
|
479
|
-
const switchTab: typeof Taro.switchTab;
|
|
480
|
-
const getLength: () => any;
|
|
481
|
-
const getState: () => any;
|
|
482
|
-
// 转发
|
|
483
|
-
/** 更新转发属性 */
|
|
484
|
-
const updateShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
485
|
-
/** 显示当前页面的转发按钮 */
|
|
486
|
-
const showShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
487
|
-
/** 打开分享图片弹窗,可以将图片发送给朋友、收藏或下载 */
|
|
488
|
-
const showShareImageMenu: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
489
|
-
/** 转发视频到聊天 */
|
|
490
|
-
const shareVideoMessage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
491
|
-
/** 转发文件到聊天 */
|
|
492
|
-
const shareFileMessage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
493
|
-
/** 监听用户点击右上角菜单的「复制链接」按钮时触发的事件 */
|
|
494
|
-
const onCopyUrl: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
495
|
-
/** 移除用户点击右上角菜单的「复制链接」按钮时触发的事件的监听函数 */
|
|
496
|
-
const offCopyUrl: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
497
|
-
/** 隐藏当前页面的转发按钮 */
|
|
498
|
-
const hideShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
499
|
-
/** 获取转发详细信息 */
|
|
500
|
-
const getShareInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
501
|
-
/** 验证私密消息。 */
|
|
502
|
-
const authPrivateMessage: (option?: {}, ...args: any[]) => Promise<ICallbackResult & Record<string, unknown>>;
|
|
503
|
-
function getStorage<T = any>(options: Taro.getStorage.Option<T>): Promise<unknown> | undefined;
|
|
504
|
-
function setStorage(options: Taro.setStorage.Option): Promise<unknown> | undefined;
|
|
505
|
-
function removeStorage(options: Taro.removeStorage.Option): Promise<unknown> | undefined;
|
|
506
|
-
const getStorageInfoSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
507
|
-
const getStorageInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
508
|
-
const createBufferURL: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
509
|
-
const revokeBufferURL: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
510
|
-
const batchSetStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
511
|
-
const batchSetStorage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
512
|
-
const batchGetStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
513
|
-
const batchGetStorage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
514
|
-
const clearStorage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
515
|
-
const getStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
516
|
-
const setStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
517
|
-
const clearStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
518
|
-
const removeStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
519
|
-
const setBackgroundFetchToken: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
520
|
-
const onBackgroundFetchData: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
521
|
-
const getBackgroundFetchToken: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
522
|
-
const getBackgroundFetchData: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
523
|
-
const createCacheManager: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
524
|
-
interface IAnimationAttr {
|
|
525
|
-
duration: number;
|
|
526
|
-
delay: number;
|
|
527
|
-
timingFunction: string;
|
|
528
|
-
transformOrigin: string;
|
|
529
|
-
}
|
|
530
|
-
type TStep = {
|
|
531
|
-
delay: number;
|
|
532
|
-
duration: number;
|
|
533
|
-
timingFunction: string;
|
|
534
|
-
transformOrigin: string;
|
|
535
|
-
rule: TRule;
|
|
536
|
-
};
|
|
537
|
-
type TRule = Record<string, any>;
|
|
538
|
-
class Animation implements Taro.Animation {
|
|
539
|
-
unit: string;
|
|
540
|
-
DEFAULT: IAnimationAttr;
|
|
541
|
-
// 组合动画
|
|
542
|
-
steps: TStep[];
|
|
543
|
-
// 属性组合
|
|
544
|
-
rule: TRule;
|
|
545
|
-
constructor({ duration, delay, timingFunction, transformOrigin, unit }?: Taro.createAnimation.Option);
|
|
546
|
-
// 设置默认值
|
|
547
|
-
setDefault(duration: any, delay: any, timingFunction: any, transformOrigin: any): void;
|
|
548
|
-
export(): {
|
|
549
|
-
actions: any[];
|
|
550
|
-
};
|
|
551
|
-
step(arg?: Partial<IAnimationAttr>): Taro.Animation;
|
|
552
|
-
matrix(a: number, b: number, c: number, d: number, tx: number, ty: number): Taro.Animation;
|
|
553
|
-
matrix3d(a1: number, b1: number, c1: number, d1: number, a2: number, b2: number, c2: number, d2: number, a3: number, b3: number, c3: number, d3: number, a4: number, b4: number, c4: number, d4: number): Taro.Animation;
|
|
554
|
-
rotate(angle: number): Taro.Animation;
|
|
555
|
-
rotate3d(x: number, y?: number | undefined, z?: number | undefined, angle?: number | undefined): Taro.Animation;
|
|
556
|
-
rotateX(angle: number): Taro.Animation;
|
|
557
|
-
rotateY(angle: number): Taro.Animation;
|
|
558
|
-
rotateZ(angle: number): Taro.Animation;
|
|
559
|
-
scale(sx: number, sy?: number | undefined): Taro.Animation;
|
|
560
|
-
scale3d(sx: number, sy: number, sz: number): Taro.Animation;
|
|
561
|
-
scaleX(scale: number): Taro.Animation;
|
|
562
|
-
scaleY(scale: number): Taro.Animation;
|
|
563
|
-
scaleZ(scale: number): Taro.Animation;
|
|
564
|
-
skew(ax: number, ay: number): Taro.Animation;
|
|
565
|
-
skewX(angle: number): Taro.Animation;
|
|
566
|
-
skewY(angle: number): Taro.Animation;
|
|
567
|
-
translate(tx?: number | undefined, ty?: number | undefined): Taro.Animation;
|
|
568
|
-
translate3d(tx?: number | undefined, ty?: number | undefined, tz?: number | undefined): Taro.Animation;
|
|
569
|
-
translateX(translation: number): Taro.Animation;
|
|
570
|
-
translateY(translation: number): Taro.Animation;
|
|
571
|
-
translateZ(translation: number): Taro.Animation;
|
|
572
|
-
opacity(value: number): Taro.Animation;
|
|
573
|
-
backgroundColor(value: string): Taro.Animation;
|
|
574
|
-
width(value: string | number): Taro.Animation;
|
|
575
|
-
height(value: string | number): Taro.Animation;
|
|
576
|
-
left(value: string | number): Taro.Animation;
|
|
577
|
-
right(value: string | number): Taro.Animation;
|
|
578
|
-
top(value: string | number): Taro.Animation;
|
|
579
|
-
bottom(value: string | number): Taro.Animation;
|
|
580
|
-
}
|
|
581
|
-
const createAnimation: (option: Taro.createAnimation.Option) => Animation;
|
|
582
|
-
const setBackgroundTextStyle: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
583
|
-
function setBackgroundColor(options: Taro.setBackgroundColor.Option): Promise<unknown>;
|
|
584
|
-
// 自定义组件
|
|
585
|
-
const nextTick: typeof Taro.nextTick;
|
|
586
|
-
const loadFontFace: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
587
|
-
function showToast(options: any): Promise<unknown>;
|
|
588
|
-
function showModal(options: any): Promise<unknown>;
|
|
589
|
-
function showActionSheet(options: any): Promise<unknown>;
|
|
590
|
-
const hideToast: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
591
|
-
const showLoading: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
592
|
-
const hideLoading: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
593
|
-
const enableAlertBeforeUnload: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
594
|
-
const disableAlertBeforeUnload: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
595
|
-
const getMenuButtonBoundingClientRect: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
596
|
-
const setNavigationBarTitle: typeof Taro.setNavigationBarTitle;
|
|
597
|
-
const setNavigationBarColor: typeof Taro.setNavigationBarColor;
|
|
598
|
-
const showNavigationBarLoading: typeof Taro.setNavigationBarColor;
|
|
599
|
-
const hideNavigationBarLoading: typeof Taro.hideNavigationBarLoading;
|
|
600
|
-
const hideHomeButton: typeof Taro.hideHomeButton;
|
|
601
|
-
const startPullDownRefresh: typeof Taro.startPullDownRefresh;
|
|
602
|
-
const stopPullDownRefresh: typeof Taro.stopPullDownRefresh;
|
|
603
|
-
/**
|
|
604
|
-
* 将页面滚动到目标位置
|
|
605
|
-
*/
|
|
606
|
-
const pageScrollTo: typeof Taro.pageScrollTo;
|
|
607
|
-
const setTopBarText: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
608
|
-
const showTabBar: (option?: Taro.showTabBar.Option | undefined) => Promise<TaroGeneral.CallbackResult>;
|
|
609
|
-
const hideTabBar: (option?: Taro.hideTabBar.Option | undefined) => Promise<TaroGeneral.CallbackResult>;
|
|
610
|
-
const setTabBarStyle: typeof Taro.setTabBarStyle;
|
|
611
|
-
const setTabBarItem: typeof Taro.setTabBarItem;
|
|
612
|
-
function showTabBarRedDot(options: any): Promise<unknown>;
|
|
613
|
-
function hideTabBarRedDot(options: any): Promise<unknown>;
|
|
614
|
-
function setTabBarBadge(options: any): Promise<unknown>;
|
|
615
|
-
function removeTabBarBadge(options: any): Promise<unknown>;
|
|
616
|
-
/**
|
|
617
|
-
* 设置窗口大小,该接口仅适用于 PC 平台,使用细则请参见指南
|
|
618
|
-
*/
|
|
619
|
-
const setWindowSize: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
620
|
-
/**
|
|
621
|
-
* 监听窗口尺寸变化事件
|
|
622
|
-
*/
|
|
623
|
-
const onWindowResize: typeof Taro.onWindowResize;
|
|
624
|
-
/**
|
|
625
|
-
* 取消监听窗口尺寸变化事件
|
|
626
|
-
*/
|
|
627
|
-
const offWindowResize: typeof Taro.offWindowResize;
|
|
628
|
-
const checkIsPictureInPictureActive: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
629
|
-
const createWorker: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
630
|
-
class IntersectionObserver implements Taro.IntersectionObserver {
|
|
631
|
-
// 自定义组件实例
|
|
632
|
-
private _component;
|
|
633
|
-
// 监听的nodes
|
|
634
|
-
private _observerNodes;
|
|
635
|
-
// 选项
|
|
636
|
-
private _options;
|
|
637
|
-
constructor(component: any, options?: Taro.createIntersectionObserver.Option);
|
|
638
|
-
disconnect(): void;
|
|
639
|
-
observe(targetSelector: string, callback: Taro.IntersectionObserver.ObserveCallback): void;
|
|
640
|
-
relativeTo(): Taro.IntersectionObserver;
|
|
641
|
-
relativeToViewport(): Taro.IntersectionObserver;
|
|
642
|
-
// @ts-ignore
|
|
643
|
-
private handleResult;
|
|
644
|
-
}
|
|
645
|
-
class NodesRef implements Taro.NodesRef {
|
|
646
|
-
_component?: any;
|
|
647
|
-
_selector: string;
|
|
648
|
-
_selectorQuery: SelectorQuery;
|
|
649
|
-
_single: boolean;
|
|
650
|
-
constructor(selector: string, querySelectorQuery: SelectorQuery, single: boolean);
|
|
651
|
-
context(cb: any): SelectorQuery;
|
|
652
|
-
node(cb?: Taro.NodesRef.NodeCallback): SelectorQuery;
|
|
653
|
-
boundingClientRect(cb?: Taro.NodesRef.BoundingClientRectCallback): SelectorQuery;
|
|
654
|
-
scrollOffset(cb: any): SelectorQuery;
|
|
655
|
-
fields(fields: Taro.NodesRef.Fields, cb?: Taro.NodesRef.FieldsCallback): SelectorQuery;
|
|
656
|
-
}
|
|
657
|
-
interface ISelectorQueryQueue {
|
|
658
|
-
component: any;
|
|
659
|
-
selector: string;
|
|
660
|
-
single: boolean;
|
|
661
|
-
fields: any;
|
|
662
|
-
}
|
|
663
|
-
type TSelectorQueryQueueCallback = (res: ISelectorQueryQueue) => void;
|
|
664
|
-
class SelectorQuery implements Taro.SelectorQuery {
|
|
665
|
-
_queue: ISelectorQueryQueue[];
|
|
666
|
-
_queueCb: (TSelectorQueryQueueCallback | null)[];
|
|
667
|
-
_component?: any;
|
|
668
|
-
constructor();
|
|
669
|
-
/**
|
|
670
|
-
* 设置选择器的选取范围
|
|
671
|
-
* @param component 指定组件
|
|
672
|
-
* @return selectQuery 返回查询对象
|
|
673
|
-
*/
|
|
674
|
-
in: (_: any) => this;
|
|
675
|
-
/**
|
|
676
|
-
* 在当前页面下选择第一个匹配选择器selector的节点
|
|
677
|
-
* @param selector
|
|
678
|
-
* @return nodesRef 返回一个NodesRef 对象实例,可以用于获取节点信息
|
|
679
|
-
*/
|
|
680
|
-
select(selector: string): NodesRef;
|
|
681
|
-
/**
|
|
682
|
-
* 在当前页面下选择匹配选择器selector的所有节点
|
|
683
|
-
* @param selector
|
|
684
|
-
*/
|
|
685
|
-
selectAll(selector: string): NodesRef;
|
|
686
|
-
/**
|
|
687
|
-
* 选择显示区域。可用于获取显示区域的尺寸、滚动位置等信息
|
|
688
|
-
*/
|
|
689
|
-
selectViewport(): NodesRef;
|
|
690
|
-
exec(cb?: (...args: any[]) => any): any;
|
|
691
|
-
_push(selector: any, component: any, single: any, fields: any, callback?: Taro.NodesRef.FieldsCallback | null): void;
|
|
692
|
-
}
|
|
693
|
-
const createSelectorQuery: () => SelectorQuery;
|
|
694
|
-
const createIntersectionObserver: typeof Taro.createIntersectionObserver;
|
|
695
|
-
const createMediaQueryObserver: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
|
|
696
|
-
}
|
|
697
|
-
declare function initNativeApi(taro: any): void;
|
|
698
|
-
declare const components: {
|
|
699
|
-
Checkbox: {
|
|
700
|
-
"group-id": string;
|
|
701
|
-
cn: string;
|
|
702
|
-
};
|
|
703
|
-
Span: {};
|
|
704
|
-
Tabs: {
|
|
705
|
-
index: string;
|
|
706
|
-
vertical: string;
|
|
707
|
-
bindchange: string;
|
|
708
|
-
};
|
|
709
|
-
TabBar: {
|
|
710
|
-
mode: string;
|
|
711
|
-
};
|
|
712
|
-
TabContent: {
|
|
713
|
-
scrollable: string;
|
|
714
|
-
};
|
|
715
|
-
List: {
|
|
716
|
-
scrollpage: string;
|
|
717
|
-
cachedcount: string;
|
|
718
|
-
scrollbar: string;
|
|
719
|
-
scrolleffect: string;
|
|
720
|
-
indexer: string;
|
|
721
|
-
indexercircle: string;
|
|
722
|
-
indexermulti: string;
|
|
723
|
-
indexerbubble: string;
|
|
724
|
-
divider: string;
|
|
725
|
-
shapemode: string;
|
|
726
|
-
itemscale: string;
|
|
727
|
-
itemcenter: string;
|
|
728
|
-
updateeffect: string;
|
|
729
|
-
chainanimation: string;
|
|
730
|
-
scrollvibrate: string;
|
|
731
|
-
initialindex: string;
|
|
732
|
-
initialoffset: string;
|
|
733
|
-
selected: string;
|
|
734
|
-
bindindexerchange: string;
|
|
735
|
-
bindscroll: string;
|
|
736
|
-
bindscrollbottom: string;
|
|
737
|
-
bindscrolltop: string;
|
|
738
|
-
bindscrollend: string;
|
|
739
|
-
bindscrolltouchup: string;
|
|
740
|
-
bindrequestitem: string;
|
|
741
|
-
};
|
|
742
|
-
ListItem: {
|
|
743
|
-
type: string;
|
|
744
|
-
primary: string;
|
|
745
|
-
section: string;
|
|
746
|
-
sticky: string;
|
|
747
|
-
stickyradius: string;
|
|
748
|
-
clickeffect: string;
|
|
749
|
-
bindsticky: string;
|
|
750
|
-
};
|
|
751
|
-
Switch: {
|
|
752
|
-
showtext: string;
|
|
753
|
-
texton: string;
|
|
754
|
-
textoff: string;
|
|
755
|
-
};
|
|
756
|
-
Textarea: {
|
|
757
|
-
headericon: string;
|
|
758
|
-
showcounter: string;
|
|
759
|
-
menuoptions: string;
|
|
760
|
-
softkeyboardenabled: string;
|
|
761
|
-
bindtranslate: string;
|
|
762
|
-
bindshare: string;
|
|
763
|
-
bindsearch: string;
|
|
764
|
-
bindoptionselect: string;
|
|
765
|
-
bindselectchange: string;
|
|
766
|
-
};
|
|
767
|
-
Progress: {
|
|
768
|
-
"active-color": string;
|
|
769
|
-
"background-color": string;
|
|
770
|
-
type: string;
|
|
771
|
-
"font-size": string;
|
|
772
|
-
secondarypercent: string;
|
|
773
|
-
clockwise: string;
|
|
774
|
-
};
|
|
775
|
-
Slider: {
|
|
776
|
-
showsteps: string;
|
|
777
|
-
showtips: string;
|
|
778
|
-
};
|
|
779
|
-
Input: {
|
|
780
|
-
"placeholder-color": string;
|
|
781
|
-
};
|
|
782
|
-
Video: {
|
|
783
|
-
speed: string;
|
|
784
|
-
bindloadedmetadata: string;
|
|
785
|
-
bindprogress: string;
|
|
786
|
-
bindtap: string;
|
|
787
|
-
};
|
|
788
|
-
Image: {
|
|
789
|
-
alt: string;
|
|
790
|
-
};
|
|
791
|
-
Radio: {
|
|
792
|
-
"group-id": string;
|
|
793
|
-
};
|
|
794
|
-
Picker: {
|
|
795
|
-
selected: string;
|
|
796
|
-
hours: string;
|
|
797
|
-
containsecond: string;
|
|
798
|
-
vibrate: string;
|
|
799
|
-
lunar: string;
|
|
800
|
-
lunarswitch: string;
|
|
801
|
-
};
|
|
802
|
-
PickerView: {
|
|
803
|
-
mode: string;
|
|
804
|
-
range: string;
|
|
805
|
-
selected: string;
|
|
806
|
-
hours: string;
|
|
807
|
-
indicatorprefix: string;
|
|
808
|
-
indicatorsuffix: string;
|
|
809
|
-
containsecond: string;
|
|
810
|
-
vibrate: string;
|
|
811
|
-
lunar: string;
|
|
812
|
-
lunarswitch: string;
|
|
813
|
-
bindcolumnchange: string;
|
|
814
|
-
cn: string;
|
|
815
|
-
};
|
|
816
|
-
};
|
|
817
|
-
declare const hostConfig: {
|
|
1
|
+
import { initNativeApi } from './apis';
|
|
2
|
+
export { initNativeApi };
|
|
3
|
+
export * from './components';
|
|
4
|
+
export declare const hostConfig: {
|
|
818
5
|
initNativeApi: typeof initNativeApi;
|
|
819
6
|
modifyTaroEvent(event: any, node: any): void;
|
|
820
7
|
getPathIndex(indexOfNode: any): any;
|
|
@@ -823,4 +10,3 @@ declare const hostConfig: {
|
|
|
823
10
|
modifyPageObject(config: any): void;
|
|
824
11
|
isBubbleEvents(eventName: any): boolean;
|
|
825
12
|
};
|
|
826
|
-
export { initNativeApi, components, hostConfig };
|