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