@dcloudio/uni-app-x 0.5.5 → 0.5.6
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/package.json +1 -1
- package/types/app.d.ts +17 -8
- package/types/native/AsyncApiResult.d.ts +1 -1
- package/types/native/CSSStyleDeclaration.d.ts +2 -2
- package/types/native/DrawableContext.d.ts +2 -2
- package/types/native/Element.d.ts +36 -5
- package/types/native/IDocument.d.ts +2 -3
- package/types/native/IPage.d.ts +1 -1
- package/types/native/IUniError.d.ts +1 -1
- package/types/native/NodeData.d.ts +1 -1
- package/types/native/SnapshotOptions.d.ts +63 -0
- package/types/native/UniAppManager.d.ts +1 -1
- package/types/native/UniElement.d.ts +97 -0
- package/types/native/UniTabsElement.d.ts +86 -0
- package/types/native/UniTextElement.d.ts +13 -0
- package/types/native/UniVideoElement.d.ts +70 -0
- package/types/native/{IWebViewNode.d.ts → UniWebViewElement.d.ts} +5 -2
- package/types/native/WebViewDownloadEvent.d.ts +37 -0
- package/types/native/WebViewErrorEvent.d.ts +26 -7
- package/types/native/WebViewLoadedEvent.d.ts +15 -2
- package/types/native/WebViewLoadingEvent.d.ts +15 -2
- package/types/native/WebViewMessageEvent.d.ts +15 -7
- package/types/native/WebViewStyles.d.ts +20 -0
- package/types/native/index.d.ts +8 -4
- package/types/shims-vue.d.ts +4 -2
- package/types/uni/core/lib/base/event/interface.d.ts +3 -6
- package/types/uni/core/lib/ui/get-element-by-id/interface.d.ts +3 -2
- package/types/uni/core/lib/ui/pull-down-refresh/index.d.ts +4 -0
- package/types/uni/core/lib/ui/pull-down-refresh/interface.d.ts +10 -1
- package/types/uni/core/lib/ui/tab-bar/interface.d.ts +4 -8
- package/types/uni/uts-plugin-api/index.d.ts +1 -2
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +86 -86
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +103 -103
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +52 -52
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +82 -82
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +59 -56
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +116 -97
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-push/utssdk/index.d.ts +55 -0
- package/types/uni/uts-plugin-api/lib/uni-push/utssdk/interface.d.ts +338 -0
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +39 -39
- package/types/uni-cloud/interface.d.ts +10 -10
- package/types/vue/CheckboxGroupChangeEvent.d.ts +13 -0
- package/types/vue/PickerViewChangeEvent.d.ts +13 -0
- package/types/vue/ProgressActiveendEvent.d.ts +7 -0
- package/types/vue/RadioGroupChangeEvent.d.ts +13 -0
- package/types/vue/SliderChangeEvent.d.ts +2 -2
- package/types/vue/SwitchChangeEvent.d.ts +7 -0
- package/types/vue/UniButtonElement.d.ts +7 -0
- package/types/vue/UniCloudDBElement.d.ts +213 -0
- package/types/vue/UniNavigatorElement.d.ts +7 -0
- package/types/vue/index.d.ts +3 -0
- package/types/native/DomNode.d.ts +0 -48
- package/types/native/ITabsNode.d.ts +0 -36
- package/types/uni/uts-plugin-api/lib/uni-audio/utssdk/index.d.ts +0 -17
- package/types/uni/uts-plugin-api/lib/uni-audio/utssdk/interface.d.ts +0 -804
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/index.d.ts +0 -15
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +0 -213
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
RecorderManagerStartOptions as RecorderManagerStartOptionsOrigin,
|
|
3
|
-
RecordManagerCallback as RecordManagerCallbackOrigin,
|
|
4
|
-
RecorderManager as RecorderManagerOrigin,
|
|
5
|
-
GetRecorderManager as GetRecorderManagerOrigin,
|
|
6
|
-
Uni as UniOrigin
|
|
7
|
-
} from './interface'
|
|
8
|
-
|
|
9
|
-
declare global {
|
|
10
|
-
type RecorderManagerStartOptions = RecorderManagerStartOptionsOrigin
|
|
11
|
-
type RecordManagerCallback = RecordManagerCallbackOrigin
|
|
12
|
-
type RecorderManager = RecorderManagerOrigin
|
|
13
|
-
type GetRecorderManager = GetRecorderManagerOrigin
|
|
14
|
-
interface Uni extends UniOrigin { }
|
|
15
|
-
}
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
export type RecorderManagerStartOptions = {
|
|
2
|
-
/**
|
|
3
|
-
* 指定录音的时长,单位 ms ,如果传入了合法的 duration ,在到达指定的 duration 后会自动停止录音,最大值 600000(10 分钟),默认值 60000(1 分钟)
|
|
4
|
-
*/
|
|
5
|
-
duration : (number) | null;
|
|
6
|
-
/**
|
|
7
|
-
* 采样率,有效值 8000/16000/44100
|
|
8
|
-
*/
|
|
9
|
-
sampleRate : (number) | null;
|
|
10
|
-
/**
|
|
11
|
-
* 录音通道数,有效值 1/2
|
|
12
|
-
*/
|
|
13
|
-
numberOfChannels : (number) | null;
|
|
14
|
-
/**
|
|
15
|
-
* 编码码率,有效值见下表格
|
|
16
|
-
*/
|
|
17
|
-
encodeBitRate : (number) | null;
|
|
18
|
-
/**
|
|
19
|
-
* 音频格式,有效值 aac/mp3
|
|
20
|
-
*/
|
|
21
|
-
format : (string) | null;
|
|
22
|
-
/**
|
|
23
|
-
* 指定帧大小,单位 KB。传入 frameSize 后,每录制指定帧大小的内容后,会回调录制的文件内容,不指定则不会回调。暂仅支持 mp3 格式。
|
|
24
|
-
*/
|
|
25
|
-
frameSize : (number) | null;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type RecordManagerCallback = (result : any) => void
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export interface RecorderManager {
|
|
32
|
-
/**
|
|
33
|
-
* 开始录音
|
|
34
|
-
* @description 开始录音
|
|
35
|
-
* @uniPlatform {
|
|
36
|
-
* "app": {
|
|
37
|
-
* "android": {
|
|
38
|
-
* "osVer": "4.4",
|
|
39
|
-
* "uniVer": "√",
|
|
40
|
-
* "unixVer": "3.9.0"
|
|
41
|
-
* }
|
|
42
|
-
* }
|
|
43
|
-
* }
|
|
44
|
-
* @uniVueVersion 2,3
|
|
45
|
-
*/
|
|
46
|
-
start(options : RecorderManagerStartOptions) : void;
|
|
47
|
-
/**
|
|
48
|
-
* 暂停录音
|
|
49
|
-
* @description 暂停录音
|
|
50
|
-
* @uniPlatform {
|
|
51
|
-
* "app": {
|
|
52
|
-
* "android": {
|
|
53
|
-
* "osVer": "4.4",
|
|
54
|
-
* "uniVer": "√",
|
|
55
|
-
* "unixVer": "3.9.0"
|
|
56
|
-
* }
|
|
57
|
-
* }
|
|
58
|
-
* }
|
|
59
|
-
* @uniVueVersion 2,3
|
|
60
|
-
*/
|
|
61
|
-
pause() : void;
|
|
62
|
-
/**
|
|
63
|
-
* 暂停录音
|
|
64
|
-
* @description 暂停录音
|
|
65
|
-
* @uniPlatform {
|
|
66
|
-
* "app": {
|
|
67
|
-
* "android": {
|
|
68
|
-
* "osVer": "4.4",
|
|
69
|
-
* "uniVer": "√",
|
|
70
|
-
* "unixVer": "3.9.0"
|
|
71
|
-
* }
|
|
72
|
-
* }
|
|
73
|
-
* }
|
|
74
|
-
* @uniVueVersion 2,3
|
|
75
|
-
*/
|
|
76
|
-
resume() : void;
|
|
77
|
-
/**
|
|
78
|
-
* 停止录音
|
|
79
|
-
* @description 停止录音
|
|
80
|
-
* @uniPlatform {
|
|
81
|
-
* "app": {
|
|
82
|
-
* "android": {
|
|
83
|
-
* "osVer": "4.4",
|
|
84
|
-
* "uniVer": "√",
|
|
85
|
-
* "unixVer": "3.9.0"
|
|
86
|
-
* }
|
|
87
|
-
* }
|
|
88
|
-
* }
|
|
89
|
-
* @uniVueVersion 2,3
|
|
90
|
-
*/
|
|
91
|
-
stop() : void;
|
|
92
|
-
/**
|
|
93
|
-
* 录音开始事件
|
|
94
|
-
* @description 录音开始事件
|
|
95
|
-
* @uniPlatform {
|
|
96
|
-
* "app": {
|
|
97
|
-
* "android": {
|
|
98
|
-
* "osVer": "4.4",
|
|
99
|
-
* "uniVer": "√",
|
|
100
|
-
* "unixVer": "3.9.0"
|
|
101
|
-
* }
|
|
102
|
-
* }
|
|
103
|
-
* }
|
|
104
|
-
* @uniVueVersion 2,3
|
|
105
|
-
*/
|
|
106
|
-
onStart(options : RecordManagerCallback) : void;
|
|
107
|
-
/**
|
|
108
|
-
* 录音暂停事件
|
|
109
|
-
* @description 录音暂停事件
|
|
110
|
-
* @uniPlatform {
|
|
111
|
-
* "app": {
|
|
112
|
-
* "android": {
|
|
113
|
-
* "osVer": "4.4",
|
|
114
|
-
* "uniVer": "√",
|
|
115
|
-
* "unixVer": "3.9.0"
|
|
116
|
-
* }
|
|
117
|
-
* }
|
|
118
|
-
* }
|
|
119
|
-
* @uniVueVersion 2,3
|
|
120
|
-
*/
|
|
121
|
-
onPause(options : RecordManagerCallback) : void;
|
|
122
|
-
/**
|
|
123
|
-
* 录音恢复事件
|
|
124
|
-
* @description 录音恢复事件
|
|
125
|
-
* @uniPlatform {
|
|
126
|
-
* "app": {
|
|
127
|
-
* "android": {
|
|
128
|
-
* "osVer": "4.4",
|
|
129
|
-
* "uniVer": "√",
|
|
130
|
-
* "unixVer": "3.9.0"
|
|
131
|
-
* }
|
|
132
|
-
* }
|
|
133
|
-
* }
|
|
134
|
-
* @uniVueVersion 2,3
|
|
135
|
-
*/
|
|
136
|
-
onResume(options : RecordManagerCallback) : void;
|
|
137
|
-
/**
|
|
138
|
-
* 录音停止事件,会回调文件地址
|
|
139
|
-
* @description 录音停止事件,会回调文件地址
|
|
140
|
-
* @uniPlatform {
|
|
141
|
-
* "app": {
|
|
142
|
-
* "android": {
|
|
143
|
-
* "osVer": "4.4",
|
|
144
|
-
* "uniVer": "√",
|
|
145
|
-
* "unixVer": "3.9.0"
|
|
146
|
-
* }
|
|
147
|
-
* }
|
|
148
|
-
* }
|
|
149
|
-
* @uniVueVersion 2,3
|
|
150
|
-
*/
|
|
151
|
-
onStop(options : RecordManagerCallback) : void;
|
|
152
|
-
/**
|
|
153
|
-
* 已录制完指定帧大小的文件,会回调录音分片结果数据。如果设置了 frameSize ,则会回调此事件
|
|
154
|
-
* @description 已录制完指定帧大小的文件,会回调录音分片结果数据。如果设置了 frameSize ,则会回调此事件
|
|
155
|
-
* @uniPlatform {
|
|
156
|
-
* "app": {
|
|
157
|
-
* "android": {
|
|
158
|
-
* "osVer": "4.4",
|
|
159
|
-
* "uniVer": "√",
|
|
160
|
-
* "unixVer": "3.9.0"
|
|
161
|
-
* }
|
|
162
|
-
* }
|
|
163
|
-
* }
|
|
164
|
-
* @uniVueVersion 2,3
|
|
165
|
-
*/
|
|
166
|
-
onFrameRecorded(options : RecordManagerCallback) : void;
|
|
167
|
-
/**
|
|
168
|
-
* 录音错误事件, 会回调错误信息
|
|
169
|
-
* @description 录音错误事件, 会回调错误信息
|
|
170
|
-
* @uniPlatform {
|
|
171
|
-
* "app": {
|
|
172
|
-
* "android": {
|
|
173
|
-
* "osVer": "4.4",
|
|
174
|
-
* "uniVer": "√",
|
|
175
|
-
* "unixVer": "3.9.0"
|
|
176
|
-
* }
|
|
177
|
-
* }
|
|
178
|
-
* }
|
|
179
|
-
* @uniVueVersion 2,3
|
|
180
|
-
*/
|
|
181
|
-
onError(options : RecordManagerCallback) : void;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export type GetRecorderManager = () => RecorderManager
|
|
185
|
-
|
|
186
|
-
export interface Uni {
|
|
187
|
-
/**
|
|
188
|
-
* 录音管理
|
|
189
|
-
* @description 录音管理
|
|
190
|
-
* @uniPlatform {
|
|
191
|
-
* "app": {
|
|
192
|
-
* "android": {
|
|
193
|
-
* "osVer": "4.4",
|
|
194
|
-
* "uniVer": "√",
|
|
195
|
-
* "unixVer": "3.9.0"
|
|
196
|
-
* }
|
|
197
|
-
* }
|
|
198
|
-
* }
|
|
199
|
-
* @uniVueVersion 2,3
|
|
200
|
-
* @tutorial http://uniapp.dcloud.io/api/media/record-manager?id=getrecordermanager
|
|
201
|
-
* @example
|
|
202
|
-
* ```typescript
|
|
203
|
-
* var manager = uni.getRecorderManager()
|
|
204
|
-
* manager.start({
|
|
205
|
-
* format:"mp3"
|
|
206
|
-
* })
|
|
207
|
-
* manager.onStop((e)=>{
|
|
208
|
-
* console.log("录音结束")
|
|
209
|
-
* })
|
|
210
|
-
* ```
|
|
211
|
-
*/
|
|
212
|
-
getRecorderManager() : RecorderManager;
|
|
213
|
-
}
|