@dcloudio/uni-app-x 0.7.14 → 0.7.16
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/options.d.ts +1 -1
- package/package.json +1 -1
- package/types/native/CSSStyleDeclaration.d.ts +0 -72
- package/types/native/CanvasRenderingContext2D.d.ts +1943 -0
- package/types/native/DOMRect.d.ts +0 -180
- package/types/native/DrawableContext.d.ts +161 -628
- package/types/native/IUniElement.d.ts +513 -1868
- package/types/native/IUniObjectElement.d.ts +124 -0
- package/types/native/Path2D.d.ts +241 -0
- package/types/native/SnapshotOptions.d.ts +1 -0
- package/types/native/UniApp.d.ts +110 -0
- package/types/native/UniCanvasElement.d.ts +9 -0
- package/types/native/UniNativePage.d.ts +48 -1
- package/types/native/UniPageManager.d.ts +4 -1
- package/types/native/UniProvider.d.ts +1 -0
- package/types/native/UniResizeObserver.d.ts +9 -99
- package/types/native/UniScrollEvent.d.ts +1 -1
- package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -1
- package/types/native/UniSwiperChangeEvent.d.ts +1 -1
- package/types/native/UniVideoElement.d.ts +5 -0
- package/types/native/global.d.ts +73 -15
- package/types/native/index.d.ts +4 -0
- package/types/shim-uts-basic.d.ts +4495 -0
- package/types/uni/env/index.d.ts +39 -0
- package/types/uni/uts-plugin-api/global.d.ts +20 -1
- package/types/uni/uts-plugin-api/index.d.ts +20 -1
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +26 -0
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -0
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +231 -0
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -0
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -0
- package/types/uni/uts-plugin-api/lib/uni-cancelAnimationFrame/utssdk/global.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-cancelAnimationFrame/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-cancelAnimationFrame/utssdk/interface.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +268 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -0
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -0
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +20 -3
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +24 -9
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +13 -6
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -0
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1335 -0
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +28 -0
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +6 -1
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -0
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -0
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +174 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +8 -1
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +20 -17
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +28 -20
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +201 -64
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +180 -59
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +10 -2
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -0
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +47 -0
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +10 -1
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +564 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +2 -14
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +1 -6
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -151
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/interface.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +114 -34
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +7 -1
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +304 -27
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +500 -149
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +123 -112
- package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +9 -6
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +18 -2
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -0
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +8 -1
- package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/global.d.ts +9 -6
- package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/index.d.ts +4 -2
- package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/interface.d.ts +40 -61
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +327 -58
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +12 -0
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +213 -5
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +280 -92
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +20 -15
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -0
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +16 -6
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +161 -11
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/interface.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/interface.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +120 -42
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +16 -1
- package/types/uni/uts-plugin-api/lib/uni-requestAnimationFrame/utssdk/global.d.ts +12 -0
- package/types/uni/uts-plugin-api/lib/uni-requestAnimationFrame/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-api/lib/uni-requestAnimationFrame/utssdk/interface.d.ts +28 -0
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +177 -32
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +7 -2
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -0
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +112 -43
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +16 -0
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +78 -1
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +199 -149
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -0
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -0
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +1068 -0
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +170 -83
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +11 -7
- package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +33 -15
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +777 -568
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +10 -6
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +132 -15
- package/types/uni/uts-plugin-extend/global.d.ts +1 -1
- package/types/uni/uts-plugin-extend/index.d.ts +1 -3
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -0
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
- package/types/uni-cloud/interface.d.ts +57 -3
- package/types/uni-cloud/unicloud-db/index.ts +3 -3
- package/types/vue/CheckboxGroupChangeEvent.d.ts +9 -1
- package/types/vue/PickerViewChangeEvent.d.ts +8 -0
- package/types/vue/ProgressActiveendEvent.d.ts +4 -0
- package/types/vue/RadioGroupChangeEvent.d.ts +9 -1
- package/types/vue/SliderChangeEvent.d.ts +4 -0
- package/types/vue/SwitchChangeEvent.d.ts +5 -1
- package/types/vue/UniCanvasElement.d.ts +6 -1
- package/types/vue/UniCloudDBElement.d.ts +5 -0
- package/types/vue/UniFormElement.d.ts +6 -1
- package/types/vue/UniNavigatorElement.d.ts +5 -0
- package/types/vue/global.d.ts +10 -9
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +0 -78
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +0 -38
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +0 -642
- package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/global.d.ts +0 -21
- package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/index.d.ts +0 -9
- package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/interface.d.ts +0 -119
- package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/global.d.ts +0 -21
- package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/index.d.ts +0 -9
- package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/interface.d.ts +0 -122
- package/types/uni-cloud/unicloud-db/index.d.ts +0 -81
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
export interface Uni {
|
|
2
2
|
/**
|
|
3
|
-
* ConnectSocket()
|
|
4
|
-
* @description
|
|
5
3
|
* 创建一个 WebSocket 连接。
|
|
6
|
-
* @
|
|
7
|
-
* @
|
|
8
|
-
* @tutorial https://
|
|
4
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/request/websocket.html#connectsocket
|
|
5
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#connectsocket
|
|
6
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#connectsocket
|
|
9
7
|
* @uniPlatform
|
|
10
8
|
* {
|
|
11
9
|
* "app": {
|
|
@@ -18,7 +16,12 @@ export interface Uni {
|
|
|
18
16
|
* "osVer": "12.0",
|
|
19
17
|
* "uniVer": "√",
|
|
20
18
|
* "unixVer": "4.11"
|
|
21
|
-
* }
|
|
19
|
+
* },
|
|
20
|
+
* "harmony": {
|
|
21
|
+
* "osVer": "3.0",
|
|
22
|
+
* "uniVer": "4.23",
|
|
23
|
+
* "unixVer": "x"
|
|
24
|
+
* }
|
|
22
25
|
* },
|
|
23
26
|
* "web": {
|
|
24
27
|
* "uniVer": "√",
|
|
@@ -37,12 +40,11 @@ export interface Uni {
|
|
|
37
40
|
*/
|
|
38
41
|
connectSocket(options: ConnectSocketOptions): SocketTask;
|
|
39
42
|
/**
|
|
40
|
-
*
|
|
41
|
-
* @description
|
|
43
|
+
* @description
|
|
42
44
|
* 监听WebSocket连接打开事件。
|
|
43
|
-
* @
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/request/websocket.html#onsocketopen
|
|
46
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#onsocketopen
|
|
47
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#onsocketopen
|
|
46
48
|
* @uniPlatform
|
|
47
49
|
* {
|
|
48
50
|
* "app": {
|
|
@@ -55,7 +57,12 @@ export interface Uni {
|
|
|
55
57
|
* "osVer": "12.0",
|
|
56
58
|
* "uniVer": "√",
|
|
57
59
|
* "unixVer": "4.11"
|
|
58
|
-
* }
|
|
60
|
+
* },
|
|
61
|
+
* "harmony": {
|
|
62
|
+
* "osVer": "3.0",
|
|
63
|
+
* "uniVer": "4.23",
|
|
64
|
+
* "unixVer": "x"
|
|
65
|
+
* }
|
|
59
66
|
* },
|
|
60
67
|
* "web": {
|
|
61
68
|
* "uniVer": "√",
|
|
@@ -72,12 +79,10 @@ export interface Uni {
|
|
|
72
79
|
onSocketOpen(options: OnSocketOpenCallback): void;
|
|
73
80
|
|
|
74
81
|
/**
|
|
75
|
-
*
|
|
76
|
-
* @
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
* @return {void}
|
|
80
|
-
* @tutorial https://uniapp.dcloud.net.cn/api/request/websocket.html#onsocketerror
|
|
82
|
+
* 监听WebSocket错误。
|
|
83
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/request/websocket.html#onsocketerror
|
|
84
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#onsocketerror
|
|
85
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#onsocketerror
|
|
81
86
|
* @uniPlatform
|
|
82
87
|
* {
|
|
83
88
|
* "app": {
|
|
@@ -90,7 +95,12 @@ export interface Uni {
|
|
|
90
95
|
* "osVer": "12.0",
|
|
91
96
|
* "uniVer": "√",
|
|
92
97
|
* "unixVer": "4.11"
|
|
93
|
-
* }
|
|
98
|
+
* },
|
|
99
|
+
* "harmony": {
|
|
100
|
+
* "osVer": "3.0",
|
|
101
|
+
* "uniVer": "4.23",
|
|
102
|
+
* "unixVer": "x"
|
|
103
|
+
* }
|
|
94
104
|
* },
|
|
95
105
|
* "web": {
|
|
96
106
|
* "uniVer": "√",
|
|
@@ -107,12 +117,10 @@ export interface Uni {
|
|
|
107
117
|
onSocketError(callback: OnSocketErrorCallback): void;
|
|
108
118
|
|
|
109
119
|
/**
|
|
110
|
-
* SendSocketMessage()
|
|
111
|
-
* @description
|
|
112
120
|
* 通过 WebSocket 连接发送数据,需要先 uni.connectSocket,并在 uni.onSocketOpen 回调之后才能发送。
|
|
113
|
-
* @
|
|
114
|
-
* @
|
|
115
|
-
* @tutorial https://
|
|
121
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/request/websocket.html#sendsocketmessage
|
|
122
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#sendsocketmessage
|
|
123
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#sendsocketmessage
|
|
116
124
|
* @uniPlatform
|
|
117
125
|
* {
|
|
118
126
|
* "app": {
|
|
@@ -125,7 +133,12 @@ export interface Uni {
|
|
|
125
133
|
* "osVer": "12.0",
|
|
126
134
|
* "uniVer": "√",
|
|
127
135
|
* "unixVer": "4.11"
|
|
128
|
-
* }
|
|
136
|
+
* },
|
|
137
|
+
* "harmony": {
|
|
138
|
+
* "osVer": "x",
|
|
139
|
+
* "uniVer": "x",
|
|
140
|
+
* "unixVer": "x"
|
|
141
|
+
* }
|
|
129
142
|
* },
|
|
130
143
|
* "web": {
|
|
131
144
|
* "uniVer": "√",
|
|
@@ -141,12 +154,10 @@ export interface Uni {
|
|
|
141
154
|
*/
|
|
142
155
|
sendSocketMessage(options: SendSocketMessageOptions): void;
|
|
143
156
|
/**
|
|
144
|
-
* OnSocketMessage()
|
|
145
|
-
* @description
|
|
146
157
|
* 监听WebSocket接受到服务器的消息事件。
|
|
147
|
-
* @
|
|
148
|
-
* @
|
|
149
|
-
* @tutorial https://
|
|
158
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/request/websocket.html#onsocketmessage
|
|
159
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#onsocketmessage
|
|
160
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#onsocketmessage
|
|
150
161
|
* @uniPlatform
|
|
151
162
|
* {
|
|
152
163
|
* "app": {
|
|
@@ -159,7 +170,12 @@ export interface Uni {
|
|
|
159
170
|
* "osVer": "12.0",
|
|
160
171
|
* "uniVer": "√",
|
|
161
172
|
* "unixVer": "4.11"
|
|
162
|
-
* }
|
|
173
|
+
* },
|
|
174
|
+
* "harmony": {
|
|
175
|
+
* "osVer": "3.0",
|
|
176
|
+
* "uniVer": "4.23",
|
|
177
|
+
* "unixVer": "x"
|
|
178
|
+
* }
|
|
163
179
|
* },
|
|
164
180
|
* "web": {
|
|
165
181
|
* "uniVer": "√",
|
|
@@ -175,12 +191,10 @@ export interface Uni {
|
|
|
175
191
|
*/
|
|
176
192
|
onSocketMessage(callback: OnSocketMessageCallback): void;
|
|
177
193
|
/**
|
|
178
|
-
* CloseSocket()
|
|
179
|
-
* @description
|
|
180
194
|
* 关闭 WebSocket 连接。
|
|
181
|
-
* @
|
|
182
|
-
* @
|
|
183
|
-
* @tutorial https://
|
|
195
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/request/websocket.html#closesocket
|
|
196
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#closesocket
|
|
197
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#closesocket
|
|
184
198
|
* @uniPlatform
|
|
185
199
|
* {
|
|
186
200
|
* "app": {
|
|
@@ -193,7 +207,12 @@ export interface Uni {
|
|
|
193
207
|
* "osVer": "12.0",
|
|
194
208
|
* "uniVer": "√",
|
|
195
209
|
* "unixVer": "4.11"
|
|
196
|
-
* }
|
|
210
|
+
* },
|
|
211
|
+
* "harmony": {
|
|
212
|
+
* "osVer": "3.0",
|
|
213
|
+
* "uniVer": "4.23",
|
|
214
|
+
* "unixVer": "x"
|
|
215
|
+
* }
|
|
197
216
|
* },
|
|
198
217
|
* "web": {
|
|
199
218
|
* "uniVer": "√",
|
|
@@ -207,12 +226,10 @@ export interface Uni {
|
|
|
207
226
|
*/
|
|
208
227
|
closeSocket(options: CloseSocketOptions): void;
|
|
209
228
|
/**
|
|
210
|
-
* OnSocketClose()
|
|
211
|
-
* @description
|
|
212
229
|
* 监听WebSocket关闭。
|
|
213
|
-
* @
|
|
214
|
-
* @
|
|
215
|
-
* @tutorial https://
|
|
230
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/request/websocket.html#onsocketclose
|
|
231
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#onsocketclose
|
|
232
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#onsocketclose
|
|
216
233
|
* @uniPlatform
|
|
217
234
|
* {
|
|
218
235
|
* "app": {
|
|
@@ -225,7 +242,12 @@ export interface Uni {
|
|
|
225
242
|
* "osVer": "12.0",
|
|
226
243
|
* "uniVer": "√",
|
|
227
244
|
* "unixVer": "4.11"
|
|
228
|
-
* }
|
|
245
|
+
* },
|
|
246
|
+
* "harmony": {
|
|
247
|
+
* "osVer": "3.0",
|
|
248
|
+
* "uniVer": "4.23",
|
|
249
|
+
* "unixVer": "x"
|
|
250
|
+
* }
|
|
229
251
|
* },
|
|
230
252
|
* "web": {
|
|
231
253
|
* "uniVer": "√",
|
|
@@ -256,7 +278,7 @@ export type ConnectSocketErrorCode = 600009;
|
|
|
256
278
|
/**
|
|
257
279
|
* 连接调用失败的错误回调参数
|
|
258
280
|
*/
|
|
259
|
-
export interface ConnectSocketFail extends IUniError {
|
|
281
|
+
export interface ConnectSocketFail extends IUniError {
|
|
260
282
|
errCode: ConnectSocketErrorCode;
|
|
261
283
|
};
|
|
262
284
|
|
|
@@ -278,6 +300,11 @@ export type ConnectSocketOptions = {
|
|
|
278
300
|
* "osVer": "12.0",
|
|
279
301
|
* "uniVer": "√",
|
|
280
302
|
* "unixVer": "4.11"
|
|
303
|
+
* },
|
|
304
|
+
* "harmony": {
|
|
305
|
+
* "osVer": "3.0",
|
|
306
|
+
* "uniVer": "4.23",
|
|
307
|
+
* "unixVer": "x"
|
|
281
308
|
* }
|
|
282
309
|
* }
|
|
283
310
|
* }
|
|
@@ -298,6 +325,11 @@ export type ConnectSocketOptions = {
|
|
|
298
325
|
* "osVer": "12.0",
|
|
299
326
|
* "uniVer": "√",
|
|
300
327
|
* "unixVer": "4.11"
|
|
328
|
+
* },
|
|
329
|
+
* "harmony": {
|
|
330
|
+
* "osVer": "3.0",
|
|
331
|
+
* "uniVer": "4.23",
|
|
332
|
+
* "unixVer": "x"
|
|
301
333
|
* }
|
|
302
334
|
* }
|
|
303
335
|
* }
|
|
@@ -355,7 +387,7 @@ export type SendSocketMessageErrorCode = 10001 | 10002 | 602001;
|
|
|
355
387
|
/**
|
|
356
388
|
* 发送失败的错误回调参数
|
|
357
389
|
*/
|
|
358
|
-
export interface SendSocketMessageFail extends IUniError {
|
|
390
|
+
export interface SendSocketMessageFail extends IUniError {
|
|
359
391
|
errCode: SendSocketMessageErrorCode;
|
|
360
392
|
};
|
|
361
393
|
export type SendSocketMessageOptions = {
|
|
@@ -375,6 +407,11 @@ export type SendSocketMessageOptions = {
|
|
|
375
407
|
* "osVer": "12.0",
|
|
376
408
|
* "uniVer": "√",
|
|
377
409
|
* "unixVer": "4.11"
|
|
410
|
+
* },
|
|
411
|
+
* "harmony": {
|
|
412
|
+
* "osVer": "3.0",
|
|
413
|
+
* "uniVer": "4.23",
|
|
414
|
+
* "unixVer": "x"
|
|
378
415
|
* }
|
|
379
416
|
* }
|
|
380
417
|
* }
|
|
@@ -412,6 +449,11 @@ export type CloseSocketOptions = {
|
|
|
412
449
|
* "osVer": "12.0",
|
|
413
450
|
* "uniVer": "√",
|
|
414
451
|
* "unixVer": "4.11"
|
|
452
|
+
* },
|
|
453
|
+
* "harmony": {
|
|
454
|
+
* "osVer": "3.0",
|
|
455
|
+
* "uniVer": "4.23",
|
|
456
|
+
* "unixVer": "x"
|
|
415
457
|
* }
|
|
416
458
|
* }
|
|
417
459
|
* }
|
|
@@ -432,6 +474,11 @@ export type CloseSocketOptions = {
|
|
|
432
474
|
* "osVer": "12.0",
|
|
433
475
|
* "uniVer": "√",
|
|
434
476
|
* "unixVer": "4.11"
|
|
477
|
+
* },
|
|
478
|
+
* "harmony": {
|
|
479
|
+
* "osVer": "3.0",
|
|
480
|
+
* "uniVer": "4.23",
|
|
481
|
+
* "unixVer": "x"
|
|
435
482
|
* }
|
|
436
483
|
* }
|
|
437
484
|
* }
|
|
@@ -468,6 +515,11 @@ export type OnSocketOpenCallbackResult = {
|
|
|
468
515
|
* "osVer": "12.0",
|
|
469
516
|
* "uniVer": "√",
|
|
470
517
|
* "unixVer": "4.11"
|
|
518
|
+
* },
|
|
519
|
+
* "harmony": {
|
|
520
|
+
* "osVer": "3.0",
|
|
521
|
+
* "uniVer": "4.23",
|
|
522
|
+
* "unixVer": "x"
|
|
471
523
|
* }
|
|
472
524
|
* }
|
|
473
525
|
* }
|
|
@@ -490,6 +542,11 @@ export type OnSocketMessageCallbackResult = {
|
|
|
490
542
|
* "osVer": "12.0",
|
|
491
543
|
* "uniVer": "√",
|
|
492
544
|
* "unixVer": "4.11"
|
|
545
|
+
* },
|
|
546
|
+
* "harmony": {
|
|
547
|
+
* "osVer": "3.0",
|
|
548
|
+
* "uniVer": "4.23",
|
|
549
|
+
* "unixVer": "x"
|
|
493
550
|
* }
|
|
494
551
|
* }
|
|
495
552
|
* }
|
|
@@ -498,12 +555,10 @@ export type OnSocketMessageCallbackResult = {
|
|
|
498
555
|
};
|
|
499
556
|
export interface SocketTask {
|
|
500
557
|
/**
|
|
501
|
-
* send()
|
|
502
|
-
* @description
|
|
503
558
|
* 通过 WebSocket 连接发送数据
|
|
504
|
-
* @
|
|
505
|
-
* @
|
|
506
|
-
* @tutorial https://
|
|
559
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/request/socket-task.html#sockettask-send
|
|
560
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#send
|
|
561
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#send
|
|
507
562
|
* @uniPlatform
|
|
508
563
|
* {
|
|
509
564
|
* "app": {
|
|
@@ -516,7 +571,12 @@ export interface SocketTask {
|
|
|
516
571
|
* "osVer": "12.0",
|
|
517
572
|
* "uniVer": "√",
|
|
518
573
|
* "unixVer": "4.11"
|
|
519
|
-
* }
|
|
574
|
+
* },
|
|
575
|
+
* "harmony": {
|
|
576
|
+
* "osVer": "3.0",
|
|
577
|
+
* "uniVer": "4.23",
|
|
578
|
+
* "unixVer": "x"
|
|
579
|
+
* }
|
|
520
580
|
* },
|
|
521
581
|
* "web": {
|
|
522
582
|
* "uniVer": "√",
|
|
@@ -530,12 +590,10 @@ export interface SocketTask {
|
|
|
530
590
|
*/
|
|
531
591
|
send(options: SendSocketMessageOptions): void;
|
|
532
592
|
/**
|
|
533
|
-
* close()
|
|
534
|
-
* @description
|
|
535
593
|
* 关闭 WebSocket 连接
|
|
536
|
-
* @
|
|
537
|
-
* @
|
|
538
|
-
* @tutorial https://
|
|
594
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/request/socket-task.html#sockettask-close
|
|
595
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#close
|
|
596
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#close
|
|
539
597
|
* @uniPlatform
|
|
540
598
|
* {
|
|
541
599
|
* "app": {
|
|
@@ -548,7 +606,12 @@ export interface SocketTask {
|
|
|
548
606
|
* "osVer": "12.0",
|
|
549
607
|
* "uniVer": "√",
|
|
550
608
|
* "unixVer": "4.11"
|
|
551
|
-
* }
|
|
609
|
+
* },
|
|
610
|
+
* "harmony": {
|
|
611
|
+
* "osVer": "3.0",
|
|
612
|
+
* "uniVer": "4.23",
|
|
613
|
+
* "unixVer": "x"
|
|
614
|
+
* }
|
|
552
615
|
* },
|
|
553
616
|
* "web": {
|
|
554
617
|
* "uniVer": "√",
|
|
@@ -562,12 +625,10 @@ export interface SocketTask {
|
|
|
562
625
|
*/
|
|
563
626
|
close(options: CloseSocketOptions): void;
|
|
564
627
|
/**
|
|
565
|
-
* onOpen()
|
|
566
|
-
* @description
|
|
567
628
|
* 监听 WebSocket 连接打开事件
|
|
568
|
-
* @
|
|
569
|
-
* @
|
|
570
|
-
* @tutorial https://
|
|
629
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/request/socket-task.html#sockettask-onopen
|
|
630
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#onopen
|
|
631
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#onopen
|
|
571
632
|
* @uniPlatform
|
|
572
633
|
* {
|
|
573
634
|
* "app": {
|
|
@@ -580,7 +641,12 @@ export interface SocketTask {
|
|
|
580
641
|
* "osVer": "12.0",
|
|
581
642
|
* "uniVer": "√",
|
|
582
643
|
* "unixVer": "4.11"
|
|
583
|
-
* }
|
|
644
|
+
* },
|
|
645
|
+
* "harmony": {
|
|
646
|
+
* "osVer": "3.0",
|
|
647
|
+
* "uniVer": "4.23",
|
|
648
|
+
* "unixVer": "x"
|
|
649
|
+
* }
|
|
584
650
|
* },
|
|
585
651
|
* "web": {
|
|
586
652
|
* "uniVer": "√",
|
|
@@ -594,12 +660,10 @@ export interface SocketTask {
|
|
|
594
660
|
*/
|
|
595
661
|
onOpen(callback: (result: OnSocketOpenCallbackResult) => void): void;
|
|
596
662
|
/**
|
|
597
|
-
* onClose()
|
|
598
|
-
* @description
|
|
599
663
|
* 监听 WebSocket 连接关闭事件
|
|
600
|
-
* @
|
|
601
|
-
* @
|
|
602
|
-
* @tutorial https://
|
|
664
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/request/socket-task.html#sockettask-onclose
|
|
665
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#onclose
|
|
666
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#onclose
|
|
603
667
|
* @uniPlatform
|
|
604
668
|
* {
|
|
605
669
|
* "app": {
|
|
@@ -612,7 +676,12 @@ export interface SocketTask {
|
|
|
612
676
|
* "osVer": "12.0",
|
|
613
677
|
* "uniVer": "√",
|
|
614
678
|
* "unixVer": "4.11"
|
|
615
|
-
* }
|
|
679
|
+
* },
|
|
680
|
+
* "harmony": {
|
|
681
|
+
* "osVer": "3.0",
|
|
682
|
+
* "uniVer": "4.23",
|
|
683
|
+
* "unixVer": "x"
|
|
684
|
+
* }
|
|
616
685
|
* },
|
|
617
686
|
* "web": {
|
|
618
687
|
* "uniVer": "√",
|
|
@@ -628,11 +697,11 @@ export interface SocketTask {
|
|
|
628
697
|
onClose(callback: (result: any) => void): void;
|
|
629
698
|
/**
|
|
630
699
|
* onError()
|
|
631
|
-
* @description
|
|
700
|
+
* @description
|
|
632
701
|
* 监听 WebSocket 错误
|
|
633
|
-
* @
|
|
634
|
-
* @
|
|
635
|
-
* @tutorial https://
|
|
702
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/request/socket-task.html#sockettask-onerror
|
|
703
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#onerror
|
|
704
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#onerror
|
|
636
705
|
* @uniPlatform
|
|
637
706
|
* {
|
|
638
707
|
* "app": {
|
|
@@ -645,7 +714,12 @@ export interface SocketTask {
|
|
|
645
714
|
* "osVer": "12.0",
|
|
646
715
|
* "uniVer": "√",
|
|
647
716
|
* "unixVer": "4.11"
|
|
648
|
-
* }
|
|
717
|
+
* },
|
|
718
|
+
* "harmony": {
|
|
719
|
+
* "osVer": "3.0",
|
|
720
|
+
* "uniVer": "4.23",
|
|
721
|
+
* "unixVer": "x"
|
|
722
|
+
* }
|
|
649
723
|
* },
|
|
650
724
|
* "web": {
|
|
651
725
|
* "uniVer": "√",
|
|
@@ -660,12 +734,10 @@ export interface SocketTask {
|
|
|
660
734
|
*/
|
|
661
735
|
onError(callback: (result: GeneralCallbackResult) => void): void;
|
|
662
736
|
/**
|
|
663
|
-
* onMessage()
|
|
664
|
-
* @description
|
|
665
737
|
* 监听 WebSocket 接受到服务器的消息事件
|
|
666
|
-
*
|
|
667
|
-
*
|
|
668
|
-
*
|
|
738
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/request/socket-task.html#sockettask-onmessage
|
|
739
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#onmessage
|
|
740
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/websocket-global.html#onmessage
|
|
669
741
|
* @uniPlatform
|
|
670
742
|
* {
|
|
671
743
|
* "app": {
|
|
@@ -678,7 +750,12 @@ export interface SocketTask {
|
|
|
678
750
|
* "osVer": "12.0",
|
|
679
751
|
* "uniVer": "√",
|
|
680
752
|
* "unixVer": "4.11"
|
|
681
|
-
* }
|
|
753
|
+
* },
|
|
754
|
+
* "harmony": {
|
|
755
|
+
* "osVer": "3.0",
|
|
756
|
+
* "uniVer": "4.23",
|
|
757
|
+
* "unixVer": "x"
|
|
758
|
+
* }
|
|
682
759
|
* },
|
|
683
760
|
* "web": {
|
|
684
761
|
* "uniVer": "√",
|
|
@@ -727,13 +804,18 @@ export type OnSocketCloseCallbackResult = {
|
|
|
727
804
|
* "osVer": "12.0",
|
|
728
805
|
* "uniVer": "√",
|
|
729
806
|
* "unixVer": "4.11"
|
|
730
|
-
* }
|
|
807
|
+
* },
|
|
808
|
+
* "harmony": {
|
|
809
|
+
* "osVer": "3.0",
|
|
810
|
+
* "uniVer": "4.23",
|
|
811
|
+
* "unixVer": "x"
|
|
812
|
+
* }
|
|
731
813
|
* }
|
|
732
814
|
* }
|
|
733
815
|
*/
|
|
734
816
|
code: number,
|
|
735
817
|
/**
|
|
736
|
-
* 一个可读的字符串,表示连接被关闭的原因。
|
|
818
|
+
* 一个可读的字符串,表示连接被关闭的原因。
|
|
737
819
|
* @uniPlatform
|
|
738
820
|
* {
|
|
739
821
|
* "app": {
|
|
@@ -746,7 +828,12 @@ export type OnSocketCloseCallbackResult = {
|
|
|
746
828
|
* "osVer": "12.0",
|
|
747
829
|
* "uniVer": "√",
|
|
748
830
|
* "unixVer": "4.11"
|
|
749
|
-
* }
|
|
831
|
+
* },
|
|
832
|
+
* "harmony": {
|
|
833
|
+
* "osVer": "3.0",
|
|
834
|
+
* "uniVer": "4.23",
|
|
835
|
+
* "unixVer": "x"
|
|
836
|
+
* }
|
|
750
837
|
* }
|
|
751
838
|
* }
|
|
752
839
|
*/
|
|
@@ -116,18 +116,22 @@ export interface Uni {
|
|
|
116
116
|
* 创建激励视频广告对象
|
|
117
117
|
* @description 创建激励视频广告对象
|
|
118
118
|
* @uniPlatform {
|
|
119
|
-
*
|
|
119
|
+
* "app": {
|
|
120
120
|
* "android": {
|
|
121
121
|
* "osVer": "4.4",
|
|
122
122
|
* "uniVer": "√",
|
|
123
123
|
* "unixVer": "4.0+"
|
|
124
124
|
* },
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
* }
|
|
125
|
+
* "ios": {
|
|
126
|
+
* osVer": "12.0",
|
|
127
|
+
* uniVer": "√",
|
|
128
|
+
* "unixVer": "4.22"
|
|
129
|
+
* }
|
|
130
|
+
* },
|
|
131
|
+
* "web": {
|
|
132
|
+
* "uniVer": "x",
|
|
133
|
+
* "unixVer": "x"
|
|
134
|
+
* }
|
|
131
135
|
* }
|
|
132
136
|
* @uniVueVersion 2,3
|
|
133
137
|
* @autotest {
|
|
@@ -103,18 +103,27 @@ export interface Uni {
|
|
|
103
103
|
* 获取阿里云实人认证meta info
|
|
104
104
|
* @description 获取阿里云实人认证meta info
|
|
105
105
|
* @uniPlatform {
|
|
106
|
-
*
|
|
106
|
+
* "app": {
|
|
107
107
|
* "android": {
|
|
108
108
|
* "osVer": "5.0",
|
|
109
109
|
* "uniVer": "√",
|
|
110
110
|
* "unixVer": "3.9+"
|
|
111
111
|
* },
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
|
|
112
|
+
* "ios": {
|
|
113
|
+
* "osVer": "12.0",
|
|
114
|
+
* "uniVer": "√",
|
|
115
|
+
* "unixVer": "4.11"
|
|
116
|
+
* },
|
|
117
|
+
* "harmony": {
|
|
118
|
+
* "osVer": "x",
|
|
119
|
+
* "uniVer": "x",
|
|
120
|
+
* "unixVer": "x"
|
|
121
|
+
* }
|
|
122
|
+
* },
|
|
123
|
+
* "web": {
|
|
124
|
+
* "uniVer": "x",
|
|
125
|
+
* "unixVer": "x"
|
|
126
|
+
* }
|
|
118
127
|
* }
|
|
119
128
|
* @uniVueVersion 2,3
|
|
120
129
|
*/
|
|
@@ -123,20 +132,29 @@ export interface Uni {
|
|
|
123
132
|
* 启动人脸识别
|
|
124
133
|
* @description 启动人脸识别
|
|
125
134
|
* @uniPlatform {
|
|
126
|
-
*
|
|
135
|
+
* "app": {
|
|
127
136
|
* "android": {
|
|
128
137
|
* "osVer": "5.0",
|
|
129
138
|
* "uniVer": "√",
|
|
130
139
|
* "unixVer": "3.9+"
|
|
131
140
|
* },
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
|
|
141
|
+
* "ios": {
|
|
142
|
+
* "osVer": "12.0",
|
|
143
|
+
* "uniVer": "√",
|
|
144
|
+
* "unixVer": "4.11"
|
|
145
|
+
* },
|
|
146
|
+
* "harmony": {
|
|
147
|
+
* "osVer": "x",
|
|
148
|
+
* "uniVer": "x",
|
|
149
|
+
* "unixVer": "x"
|
|
150
|
+
* }
|
|
151
|
+
* },
|
|
152
|
+
* "web": {
|
|
153
|
+
* "uniVer": "x",
|
|
154
|
+
* "unixVer": "x"
|
|
155
|
+
* }
|
|
138
156
|
* }
|
|
139
157
|
* @uniVueVersion 2,3
|
|
140
158
|
*/
|
|
141
159
|
startFacialRecognitionVerify(faceStyle : StartFacialRecognitionVerifyOptions) : void
|
|
142
|
-
}
|
|
160
|
+
}
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
GetChannelManager as GetChannelManagerOrigin,
|
|
17
17
|
SetPushChannelOptions as SetPushChannelOptionsOrigin,
|
|
18
18
|
ChannelManager as ChannelManagerOrigin,
|
|
19
|
+
PushChannelManager as PushChannelManagerOrigin,
|
|
19
20
|
CreatePushMessage as CreatePushMessageOrigin,
|
|
20
21
|
CreatePushMessageSuccess as CreatePushMessageSuccessOrigin,
|
|
21
22
|
CreatePushMessageSuccessCallback as CreatePushMessageSuccessCallbackOrigin,
|
|
@@ -24,6 +25,7 @@ import {
|
|
|
24
25
|
CreatePushMessageComplete as CreatePushMessageCompleteOrigin,
|
|
25
26
|
CreatePushMessageCompleteCallback as CreatePushMessageCompleteCallbackOrigin,
|
|
26
27
|
CreatePushMessageOptions as CreatePushMessageOptionsOrigin,
|
|
28
|
+
BadgeOptions as BadgeOptionsOrigin,
|
|
27
29
|
Uni as UniOrigin
|
|
28
30
|
} from './interface'
|
|
29
31
|
|
|
@@ -44,6 +46,7 @@ declare global {
|
|
|
44
46
|
type GetChannelManager = GetChannelManagerOrigin
|
|
45
47
|
type SetPushChannelOptions = SetPushChannelOptionsOrigin
|
|
46
48
|
type ChannelManager = ChannelManagerOrigin
|
|
49
|
+
type PushChannelManager = PushChannelManagerOrigin
|
|
47
50
|
type CreatePushMessage = CreatePushMessageOrigin
|
|
48
51
|
type CreatePushMessageSuccess = CreatePushMessageSuccessOrigin
|
|
49
52
|
type CreatePushMessageSuccessCallback = CreatePushMessageSuccessCallbackOrigin
|
|
@@ -52,5 +55,6 @@ declare global {
|
|
|
52
55
|
type CreatePushMessageComplete = CreatePushMessageCompleteOrigin
|
|
53
56
|
type CreatePushMessageCompleteCallback = CreatePushMessageCompleteCallbackOrigin
|
|
54
57
|
type CreatePushMessageOptions = CreatePushMessageOptionsOrigin
|
|
58
|
+
type BadgeOptions = BadgeOptionsOrigin
|
|
55
59
|
interface Uni extends UniOrigin { }
|
|
56
60
|
}
|
|
@@ -16,6 +16,7 @@ export {
|
|
|
16
16
|
GetChannelManager,
|
|
17
17
|
SetPushChannelOptions,
|
|
18
18
|
ChannelManager,
|
|
19
|
+
PushChannelManager,
|
|
19
20
|
CreatePushMessage,
|
|
20
21
|
CreatePushMessageSuccess,
|
|
21
22
|
CreatePushMessageSuccessCallback,
|
|
@@ -24,4 +25,5 @@ export {
|
|
|
24
25
|
CreatePushMessageComplete,
|
|
25
26
|
CreatePushMessageCompleteCallback,
|
|
26
27
|
CreatePushMessageOptions,
|
|
28
|
+
BadgeOptions,
|
|
27
29
|
} from './interface'
|