@dcloudio/uni-app-x 0.7.59 → 0.7.60
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 +16 -8
- package/types/native/IUniElement.d.ts +0 -2
- package/types/native/UniFormControl.d.ts +1 -1
- package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -0
- package/types/native/UniSwiperChangeEvent.d.ts +1 -0
- package/types/native/WebViewStyles.d.ts +1 -1
- package/types/native/global.d.ts +2 -0
- package/types/page.d.ts +134 -22
- package/types/uni/uni-camera-global.d.ts +4 -0
- package/types/uni/uni-camera.d.ts +10 -9
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +9 -6
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +10 -8
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +7 -6
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +5 -3
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +8 -8
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +4 -1
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +26 -11
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +11 -10
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +8 -8
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +8 -6
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +7 -7
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +246 -236
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +141 -243
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +80 -696
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +10 -8
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +387 -95
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +401 -344
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +52 -52
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +24 -24
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +39 -25
- package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +18 -18
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +49 -49
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +26 -26
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +14 -14
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +16 -2
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +8 -1
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +153 -6
- package/types/uni-cloud/interface.d.ts +13 -9
- package/types/uni/uts-plugin-api/.temp/uni-actionSheet/utssdk/interface.uts +0 -554
- package/types/uni/uts-plugin-api/.temp/uni-addPhoneContact/utssdk/interface.uts +0 -224
- package/types/uni/uts-plugin-api/.temp/uni-arrayBufferToBase64/utssdk/interface.uts +0 -77
- package/types/uni/uts-plugin-api/.temp/uni-authentication/utssdk/interface.uts +0 -365
- package/types/uni/uts-plugin-api/.temp/uni-base64ToArrayBuffer/utssdk/interface.uts +0 -77
- package/types/uni/uts-plugin-api/.temp/uni-canvas/utssdk/interface.uts +0 -972
- package/types/uni/uts-plugin-api/.temp/uni-chooseLocation/utssdk/interface.uts +0 -410
- package/types/uni/uts-plugin-api/.temp/uni-chooseMedia/utssdk/interface.uts +0 -459
- package/types/uni/uts-plugin-api/.temp/uni-clipboard/utssdk/interface.uts +0 -203
- package/types/uni/uts-plugin-api/.temp/uni-createInnerAudioContext/utssdk/interface.uts +0 -2613
- package/types/uni/uts-plugin-api/.temp/uni-createIntersectionObserver/utssdk/interface.uts +0 -152
- package/types/uni/uts-plugin-api/.temp/uni-createRequestPermissionListener/utssdk/interface.uts +0 -61
- package/types/uni/uts-plugin-api/.temp/uni-createSelectorQuery/utssdk/interface.uts +0 -548
- package/types/uni/uts-plugin-api/.temp/uni-createWebviewContext/utssdk/interface.uts +0 -137
- package/types/uni/uts-plugin-api/.temp/uni-dialogPage/utssdk/interface.uts +0 -1380
- package/types/uni/uts-plugin-api/.temp/uni-document/utssdk/interface.uts +0 -76
- package/types/uni/uts-plugin-api/.temp/uni-event/utssdk/interface.uts +0 -338
- package/types/uni/uts-plugin-api/.temp/uni-exit/utssdk/interface.uts +0 -102
- package/types/uni/uts-plugin-api/.temp/uni-file/utssdk/interface.uts +0 -384
- package/types/uni/uts-plugin-api/.temp/uni-fileSystemManager/utssdk/interface.uts +0 -5316
- package/types/uni/uts-plugin-api/.temp/uni-getAccessibilityInfo/utssdk/interface.uts +0 -35
- package/types/uni/uts-plugin-api/.temp/uni-getAppAuthorizeSetting/utssdk/interface.uts +0 -616
- package/types/uni/uts-plugin-api/.temp/uni-getAppBaseInfo/utssdk/interface.uts +0 -2157
- package/types/uni/uts-plugin-api/.temp/uni-getBackgroundAudioManager/utssdk/interface.uts +0 -895
- package/types/uni/uts-plugin-api/.temp/uni-getDeviceInfo/utssdk/interface.uts +0 -1755
- package/types/uni/uts-plugin-api/.temp/uni-getElementById/utssdk/interface.uts +0 -82
- package/types/uni/uts-plugin-api/.temp/uni-getEnterOptionsSync/utssdk/interface.uts +0 -295
- package/types/uni/uts-plugin-api/.temp/uni-getLaunchOptionsSync/utssdk/interface.uts +0 -299
- package/types/uni/uts-plugin-api/.temp/uni-getLocation/utssdk/interface.uts +0 -1764
- package/types/uni/uts-plugin-api/.temp/uni-getLocation-system/utssdk/interface.uts +0 -1
- package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent/utssdk/interface.uts +0 -1
- package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent-uni1/utssdk/interface.uts +0 -736
- package/types/uni/uts-plugin-api/.temp/uni-getNetworkType/utssdk/interface.uts +0 -274
- package/types/uni/uts-plugin-api/.temp/uni-getPerformance/utssdk/interface.uts +0 -198
- package/types/uni/uts-plugin-api/.temp/uni-getProvider/utssdk/interface.uts +0 -634
- package/types/uni/uts-plugin-api/.temp/uni-getRecorderManager/utssdk/interface.uts +0 -980
- package/types/uni/uts-plugin-api/.temp/uni-getSystemInfo/utssdk/interface.uts +0 -5550
- package/types/uni/uts-plugin-api/.temp/uni-getSystemSetting/utssdk/interface.uts +0 -501
- package/types/uni/uts-plugin-api/.temp/uni-installApk/utssdk/interface.uts +0 -83
- package/types/uni/uts-plugin-api/.temp/uni-interceptor/utssdk/interface.uts +0 -169
- package/types/uni/uts-plugin-api/.temp/uni-keyboard/utssdk/interface.uts +0 -102
- package/types/uni/uts-plugin-api/.temp/uni-loadFontFace/utssdk/interface.uts +0 -580
- package/types/uni/uts-plugin-api/.temp/uni-makePhoneCall/utssdk/interface.uts +0 -100
- package/types/uni/uts-plugin-api/.temp/uni-media/utssdk/interface.uts +0 -2980
- package/types/uni/uts-plugin-api/.temp/uni-modal/utssdk/interface.uts +0 -190
- package/types/uni/uts-plugin-api/.temp/uni-navigationBar/utssdk/interface.uts +0 -1002
- package/types/uni/uts-plugin-api/.temp/uni-network/utssdk/interface.uts +0 -3620
- package/types/uni/uts-plugin-api/.temp/uni-oauth/utssdk/interface.uts +0 -1592
- package/types/uni/uts-plugin-api/.temp/uni-oauth-huawei/utssdk/interface.uts +0 -1
- package/types/uni/uts-plugin-api/.temp/uni-openAppAuthorizeSetting/utssdk/interface.uts +0 -254
- package/types/uni/uts-plugin-api/.temp/uni-openDocument/utssdk/interface.uts +0 -112
- package/types/uni/uts-plugin-api/.temp/uni-pageScrollTo/utssdk/interface.uts +0 -153
- package/types/uni/uts-plugin-api/.temp/uni-payment/utssdk/interface.uts +0 -833
- package/types/uni/uts-plugin-api/.temp/uni-payment-alipay/utssdk/interface.uts +0 -1
- package/types/uni/uts-plugin-api/.temp/uni-payment-huawei/utssdk/interface.uts +0 -1
- package/types/uni/uts-plugin-api/.temp/uni-payment-wxpay/utssdk/interface.uts +0 -3
- package/types/uni/uts-plugin-api/.temp/uni-previewImage/utssdk/interface.uts +0 -518
- package/types/uni/uts-plugin-api/.temp/uni-privacy/utssdk/interface.uts +0 -560
- package/types/uni/uts-plugin-api/.temp/uni-prompt/utssdk/interface.uts +0 -2607
- package/types/uni/uts-plugin-api/.temp/uni-pullDownRefresh/utssdk/interface.uts +0 -189
- package/types/uni/uts-plugin-api/.temp/uni-requestMerchantTransfer/utssdk/interface.uts +0 -710
- package/types/uni/uts-plugin-api/.temp/uni-route/utssdk/interface.uts +0 -2695
- package/types/uni/uts-plugin-api/.temp/uni-rpx2px/utssdk/interface.uts +0 -80
- package/types/uni/uts-plugin-api/.temp/uni-scanCode/utssdk/interface.uts +0 -130
- package/types/uni/uts-plugin-api/.temp/uni-shareWithSystem/utssdk/interface.uts +0 -719
- package/types/uni/uts-plugin-api/.temp/uni-sse/utssdk/interface.uts +0 -277
- package/types/uni/uts-plugin-api/.temp/uni-storage/utssdk/interface.uts +0 -1020
- package/types/uni/uts-plugin-api/.temp/uni-tabBar/utssdk/interface.uts +0 -1148
- package/types/uni/uts-plugin-api/.temp/uni-theme/utssdk/interface.uts +0 -1059
- package/types/uni/uts-plugin-api/.temp/uni-virtualPayment/utssdk/interface.uts +0 -1660
- package/types/uni/uts-plugin-api/.temp/uni-websocket/utssdk/interface.uts +0 -1941
- package/types/uni/uts-plugin-biz/.temp/uni-ad/utssdk/interface.uts +0 -726
- package/types/uni/uts-plugin-biz/.temp/uni-crash/utssdk/interface.uts +0 -89
- package/types/uni/uts-plugin-biz/.temp/uni-facialRecognitionVerify/utssdk/interface.uts +0 -212
- package/types/uni/uts-plugin-biz/.temp/uni-map-tencent/utssdk/interface.uts +0 -2359
- package/types/uni/uts-plugin-biz/.temp/uni-push/utssdk/interface.uts +0 -960
- package/types/uni/uts-plugin-biz/.temp/uni-secure-network/utssdk/interface.uts +0 -204
- package/types/uni/uts-plugin-biz/.temp/uni-verify/utssdk/interface.uts +0 -730
- package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +0 -221
- package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +0 -935
|
@@ -1,459 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 错误码
|
|
3
|
-
*/
|
|
4
|
-
export type ChooseMediaErrorCode =
|
|
5
|
-
/**
|
|
6
|
-
* 用户取消
|
|
7
|
-
*/
|
|
8
|
-
1101001 |
|
|
9
|
-
/**
|
|
10
|
-
* 未获取权限
|
|
11
|
-
*/
|
|
12
|
-
1101005 |
|
|
13
|
-
/**
|
|
14
|
-
* 图片或视频保存失败
|
|
15
|
-
*/
|
|
16
|
-
1101006 |
|
|
17
|
-
/**
|
|
18
|
-
* 拍照或录像失败
|
|
19
|
-
*/
|
|
20
|
-
1101008;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* 图片或视频操作失败的错误回调
|
|
24
|
-
*/
|
|
25
|
-
export interface IChooseMediaError extends IUniError {
|
|
26
|
-
errCode : ChooseMediaErrorCode
|
|
27
|
-
};
|
|
28
|
-
export type ChooseMediaFileType = 'image' | 'video'
|
|
29
|
-
export type ChooseMediaTempFile = {
|
|
30
|
-
/**
|
|
31
|
-
* 选定视频的临时文件路径
|
|
32
|
-
*/
|
|
33
|
-
tempFilePath : string,
|
|
34
|
-
/**
|
|
35
|
-
* 文件类型
|
|
36
|
-
*/
|
|
37
|
-
fileType : ChooseMediaFileType
|
|
38
|
-
/**
|
|
39
|
-
* 选定视频的数据量大小
|
|
40
|
-
*/
|
|
41
|
-
size : number,
|
|
42
|
-
/**
|
|
43
|
-
* 选定视频的时间长度
|
|
44
|
-
*/
|
|
45
|
-
duration ?: number | null,
|
|
46
|
-
/**
|
|
47
|
-
* 返回选定视频的长
|
|
48
|
-
*/
|
|
49
|
-
height ?: number | null,
|
|
50
|
-
/**
|
|
51
|
-
* 返回选定视频的宽
|
|
52
|
-
*/
|
|
53
|
-
width ?: number | null,
|
|
54
|
-
/**
|
|
55
|
-
* 视频缩略图临时文件路径
|
|
56
|
-
*/
|
|
57
|
-
thumbTempFilePath ?: string | null
|
|
58
|
-
}
|
|
59
|
-
export type ChooseMediaSuccess = {
|
|
60
|
-
tempFiles : ChooseMediaTempFile[],
|
|
61
|
-
type : 'image' | 'video' | 'mix'
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export type ChooseMediaFail = IChooseMediaError;
|
|
65
|
-
export type ChooseMediaSuccessCallback = (callback : ChooseMediaSuccess) => void
|
|
66
|
-
export type ChooseMediaFailCallback = (callback : ChooseMediaFail) => void
|
|
67
|
-
export type ChooseMediaCompleteCallback = (callback : any) => void
|
|
68
|
-
export type ChooseMediaPageOrientation = /**
|
|
69
|
-
* 自动
|
|
70
|
-
*/
|
|
71
|
-
"auto" |
|
|
72
|
-
/**
|
|
73
|
-
* 竖屏显示
|
|
74
|
-
*/
|
|
75
|
-
"portrait" |
|
|
76
|
-
/**
|
|
77
|
-
* 横屏显示
|
|
78
|
-
*/
|
|
79
|
-
"landscape"
|
|
80
|
-
|
|
81
|
-
export type ChooseMediaOptions = {
|
|
82
|
-
/**
|
|
83
|
-
* 屏幕方向。默认为page.json中的pageOrientation。
|
|
84
|
-
* @uniPlatform {
|
|
85
|
-
* "app": {
|
|
86
|
-
* "android": {
|
|
87
|
-
* "osVer": "5.0",
|
|
88
|
-
* "uniVer": "x",
|
|
89
|
-
* "unixVer": "4.51"
|
|
90
|
-
* },
|
|
91
|
-
* "ios": {
|
|
92
|
-
* "osVer": "12.0",
|
|
93
|
-
* "uniVer": "x",
|
|
94
|
-
* "unixVer": "x"
|
|
95
|
-
* },
|
|
96
|
-
* "harmony": {
|
|
97
|
-
* "osVer": "3.0",
|
|
98
|
-
* "uniVer": "4.31",
|
|
99
|
-
* "unixVer": "4.61"
|
|
100
|
-
* }
|
|
101
|
-
* },
|
|
102
|
-
* "mp": {
|
|
103
|
-
* "weixin": {
|
|
104
|
-
* "hostVer": "√",
|
|
105
|
-
* "uniVer": "√",
|
|
106
|
-
* "unixVer": "4.41"
|
|
107
|
-
* },
|
|
108
|
-
* "alipay": {
|
|
109
|
-
* "hostVer": "√",
|
|
110
|
-
* "uniVer": "√",
|
|
111
|
-
* "unixVer": "x"
|
|
112
|
-
* },
|
|
113
|
-
* "baidu": {
|
|
114
|
-
* "hostVer": "√",
|
|
115
|
-
* "uniVer": "√",
|
|
116
|
-
* "unixVer": "x"
|
|
117
|
-
* },
|
|
118
|
-
* "toutiao": {
|
|
119
|
-
* "hostVer": "√",
|
|
120
|
-
* "uniVer": "√",
|
|
121
|
-
* "unixVer": "x"
|
|
122
|
-
* },
|
|
123
|
-
* "lark": {
|
|
124
|
-
* "hostVer": "√",
|
|
125
|
-
* "uniVer": "√",
|
|
126
|
-
* "unixVer": "x"
|
|
127
|
-
* },
|
|
128
|
-
* "qq": {
|
|
129
|
-
* "hostVer": "√",
|
|
130
|
-
* "uniVer": "√",
|
|
131
|
-
* "unixVer": "x"
|
|
132
|
-
* },
|
|
133
|
-
* "kuaishou": {
|
|
134
|
-
* "hostVer": "√",
|
|
135
|
-
* "uniVer": "√",
|
|
136
|
-
* "unixVer": "x"
|
|
137
|
-
* },
|
|
138
|
-
* "jd": {
|
|
139
|
-
* "hostVer": "√",
|
|
140
|
-
* "uniVer": "√",
|
|
141
|
-
* "unixVer": "x"
|
|
142
|
-
* }
|
|
143
|
-
* },
|
|
144
|
-
* "web": {
|
|
145
|
-
* "uniVer": "x",
|
|
146
|
-
* "unixVer": "x"
|
|
147
|
-
* }
|
|
148
|
-
* }
|
|
149
|
-
*/
|
|
150
|
-
pageOrientation ?: ChooseMediaPageOrientation | null,
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* 最多可以选择的文件个数
|
|
154
|
-
* @defaultValue 9
|
|
155
|
-
* @uniPlatform {
|
|
156
|
-
* "app": {
|
|
157
|
-
* "android": {
|
|
158
|
-
* "osVer": "5.0",
|
|
159
|
-
* "uniVer": "x",
|
|
160
|
-
* "unixVer": "4.51"
|
|
161
|
-
* },
|
|
162
|
-
* "ios": {
|
|
163
|
-
* "osVer": "12.0",
|
|
164
|
-
* "uniVer": "x",
|
|
165
|
-
* "unixVer": "4.51"
|
|
166
|
-
* },
|
|
167
|
-
* "harmony": {
|
|
168
|
-
* "osVer": "3.0",
|
|
169
|
-
* "uniVer": "4.31",
|
|
170
|
-
* "unixVer": "4.61"
|
|
171
|
-
* }
|
|
172
|
-
* },
|
|
173
|
-
*/
|
|
174
|
-
count ?: number | null
|
|
175
|
-
/**
|
|
176
|
-
* album 从相册选视频,camera 使用相机拍摄,合法值:'image'、'video'、'mix'
|
|
177
|
-
* @defaultValue ['image', 'video']
|
|
178
|
-
* @uniPlatform {
|
|
179
|
-
* "app": {
|
|
180
|
-
* "android": {
|
|
181
|
-
* "osVer": "5.0",
|
|
182
|
-
* "uniVer": "x",
|
|
183
|
-
* "unixVer": "4.51"
|
|
184
|
-
* },
|
|
185
|
-
* "ios": {
|
|
186
|
-
* "osVer": "12.0",
|
|
187
|
-
* "uniVer": "x",
|
|
188
|
-
* "unixVer": "4.51"
|
|
189
|
-
* },
|
|
190
|
-
* "harmony": {
|
|
191
|
-
* "osVer": "3.0",
|
|
192
|
-
* "uniVer": "4.31",
|
|
193
|
-
* "unixVer": "4.61"
|
|
194
|
-
* }
|
|
195
|
-
* },
|
|
196
|
-
*/
|
|
197
|
-
mediaType ?: (string[]) | null,
|
|
198
|
-
/**
|
|
199
|
-
* album 从相册选视频,camera 使用相机拍摄
|
|
200
|
-
* @defaultValue ['album', 'camera']
|
|
201
|
-
* @uniPlatform {
|
|
202
|
-
* "app": {
|
|
203
|
-
* "android": {
|
|
204
|
-
* "osVer": "5.0",
|
|
205
|
-
* "uniVer": "x",
|
|
206
|
-
* "unixVer": "4.51"
|
|
207
|
-
* },
|
|
208
|
-
* "ios": {
|
|
209
|
-
* "osVer": "12.0",
|
|
210
|
-
* "uniVer": "x",
|
|
211
|
-
* "unixVer": "4.51"
|
|
212
|
-
* },
|
|
213
|
-
* "harmony": {
|
|
214
|
-
* "osVer": "3.0",
|
|
215
|
-
* "uniVer": "4.31",
|
|
216
|
-
* "unixVer": "4.61"
|
|
217
|
-
* }
|
|
218
|
-
* },
|
|
219
|
-
*/
|
|
220
|
-
sourceType ?: (string[]) | null,
|
|
221
|
-
/**
|
|
222
|
-
* 拍摄视频最长拍摄时间,单位秒。时间范围为 3s 至 30s 之间
|
|
223
|
-
* @defaultValue 10
|
|
224
|
-
* @uniPlatform {
|
|
225
|
-
* "app": {
|
|
226
|
-
* "android": {
|
|
227
|
-
* "osVer": "5.0",
|
|
228
|
-
* "uniVer": "x",
|
|
229
|
-
* "unixVer": "4.51"
|
|
230
|
-
* },
|
|
231
|
-
* "ios": {
|
|
232
|
-
* "osVer": "12.0",
|
|
233
|
-
* "uniVer": "x",
|
|
234
|
-
* "unixVer": "4.51"
|
|
235
|
-
* },
|
|
236
|
-
* "harmony": {
|
|
237
|
-
* "osVer": "3.0",
|
|
238
|
-
* "uniVer": "4.31",
|
|
239
|
-
* "unixVer": "4.61"
|
|
240
|
-
* }
|
|
241
|
-
* },
|
|
242
|
-
* "mp": {
|
|
243
|
-
* "weixin": {
|
|
244
|
-
* "hostVer": "√",
|
|
245
|
-
* "uniVer": "√",
|
|
246
|
-
* "unixVer": "4.41"
|
|
247
|
-
* },
|
|
248
|
-
* "alipay": {
|
|
249
|
-
* "hostVer": "√",
|
|
250
|
-
* "uniVer": "√",
|
|
251
|
-
* "unixVer": "x"
|
|
252
|
-
* },
|
|
253
|
-
* "baidu": {
|
|
254
|
-
* "hostVer": "√",
|
|
255
|
-
* "uniVer": "√",
|
|
256
|
-
* "unixVer": "x"
|
|
257
|
-
* },
|
|
258
|
-
* "toutiao": {
|
|
259
|
-
* "hostVer": "√",
|
|
260
|
-
* "uniVer": "√",
|
|
261
|
-
* "unixVer": "x"
|
|
262
|
-
* },
|
|
263
|
-
* "lark": {
|
|
264
|
-
* "hostVer": "√",
|
|
265
|
-
* "uniVer": "√",
|
|
266
|
-
* "unixVer": "x"
|
|
267
|
-
* },
|
|
268
|
-
* "qq": {
|
|
269
|
-
* "hostVer": "√",
|
|
270
|
-
* "uniVer": "√",
|
|
271
|
-
* "unixVer": "x"
|
|
272
|
-
* },
|
|
273
|
-
* "kuaishou": {
|
|
274
|
-
* "hostVer": "√",
|
|
275
|
-
* "uniVer": "√",
|
|
276
|
-
* "unixVer": "x"
|
|
277
|
-
* },
|
|
278
|
-
* "jd": {
|
|
279
|
-
* "hostVer": "√",
|
|
280
|
-
* "uniVer": "√",
|
|
281
|
-
* "unixVer": "x"
|
|
282
|
-
* }
|
|
283
|
-
* },
|
|
284
|
-
* "web": {
|
|
285
|
-
* "uniVer": "x",
|
|
286
|
-
* "unixVer": "x"
|
|
287
|
-
* }
|
|
288
|
-
* }
|
|
289
|
-
*/
|
|
290
|
-
maxDuration ?: number | null,
|
|
291
|
-
/**
|
|
292
|
-
* 仅在 sourceType 为 camera 时生效,使用前置或后置摄像头
|
|
293
|
-
*
|
|
294
|
-
* @uniPlatform {
|
|
295
|
-
* "app": {
|
|
296
|
-
* "android": {
|
|
297
|
-
* "osVer": "5.0",
|
|
298
|
-
* "uniVer": "x",
|
|
299
|
-
* "unixVer": "4.51"
|
|
300
|
-
* },
|
|
301
|
-
* "ios": {
|
|
302
|
-
* "osVer": "12.0",
|
|
303
|
-
* "uniVer": "x",
|
|
304
|
-
* "unixVer": "4.51"
|
|
305
|
-
* },
|
|
306
|
-
* "harmony": {
|
|
307
|
-
* "osVer": "3.0",
|
|
308
|
-
* "uniVer": "4.25",
|
|
309
|
-
* "unixVer": "4.61"
|
|
310
|
-
* }
|
|
311
|
-
* },
|
|
312
|
-
* "mp": {
|
|
313
|
-
* "weixin": {
|
|
314
|
-
* "hostVer": "√",
|
|
315
|
-
* "uniVer": "√",
|
|
316
|
-
* "unixVer": "4.41"
|
|
317
|
-
* },
|
|
318
|
-
* "alipay": {
|
|
319
|
-
* "hostVer": "√",
|
|
320
|
-
* "uniVer": "√",
|
|
321
|
-
* "unixVer": "x"
|
|
322
|
-
* },
|
|
323
|
-
* "baidu": {
|
|
324
|
-
* "hostVer": "√",
|
|
325
|
-
* "uniVer": "√",
|
|
326
|
-
* "unixVer": "x"
|
|
327
|
-
* },
|
|
328
|
-
* "toutiao": {
|
|
329
|
-
* "hostVer": "√",
|
|
330
|
-
* "uniVer": "√",
|
|
331
|
-
* "unixVer": "x"
|
|
332
|
-
* },
|
|
333
|
-
* "lark": {
|
|
334
|
-
* "hostVer": "√",
|
|
335
|
-
* "uniVer": "√",
|
|
336
|
-
* "unixVer": "x"
|
|
337
|
-
* },
|
|
338
|
-
* "qq": {
|
|
339
|
-
* "hostVer": "√",
|
|
340
|
-
* "uniVer": "√",
|
|
341
|
-
* "unixVer": "x"
|
|
342
|
-
* },
|
|
343
|
-
* "kuaishou": {
|
|
344
|
-
* "hostVer": "√",
|
|
345
|
-
* "uniVer": "√",
|
|
346
|
-
* "unixVer": "x"
|
|
347
|
-
* },
|
|
348
|
-
* "jd": {
|
|
349
|
-
* "hostVer": "√",
|
|
350
|
-
* "uniVer": "√",
|
|
351
|
-
* "unixVer": "x"
|
|
352
|
-
* }
|
|
353
|
-
* },
|
|
354
|
-
* "web": {
|
|
355
|
-
* "uniVer": "x",
|
|
356
|
-
* "unixVer": "x"
|
|
357
|
-
* }
|
|
358
|
-
* }
|
|
359
|
-
*/
|
|
360
|
-
camera ?:
|
|
361
|
-
/**
|
|
362
|
-
* 前置摄像头
|
|
363
|
-
*/
|
|
364
|
-
'front' |
|
|
365
|
-
/**
|
|
366
|
-
* 后置摄像头
|
|
367
|
-
*/
|
|
368
|
-
'back' | null,
|
|
369
|
-
/**
|
|
370
|
-
* 接口调用成功,返回视频文件的临时文件路径,详见返回参数说明
|
|
371
|
-
*/
|
|
372
|
-
success ?: (ChooseMediaSuccessCallback) | null,
|
|
373
|
-
/**
|
|
374
|
-
* 接口调用失败的回调函数
|
|
375
|
-
*/
|
|
376
|
-
fail ?: (ChooseMediaFailCallback) | null,
|
|
377
|
-
/**
|
|
378
|
-
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
379
|
-
*/
|
|
380
|
-
complete ?: (ChooseMediaCompleteCallback) | null
|
|
381
|
-
};
|
|
382
|
-
|
|
383
|
-
export type ChooseMedia = (options : ChooseMediaOptions) => void;
|
|
384
|
-
|
|
385
|
-
export interface Uni {
|
|
386
|
-
/**
|
|
387
|
-
* 拍摄或从手机相册中选择图片或视频。
|
|
388
|
-
*
|
|
389
|
-
* @tutorial https://uniapp.dcloud.net.cn/api/media/video.html#choosemedia
|
|
390
|
-
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/video.html#choosemedia
|
|
391
|
-
* @uniPlatform {
|
|
392
|
-
* "app": {
|
|
393
|
-
* "android": {
|
|
394
|
-
* "osVer": "5.0",
|
|
395
|
-
* "uniVer": "x",
|
|
396
|
-
* "unixVer": "4.51"
|
|
397
|
-
* },
|
|
398
|
-
* "ios": {
|
|
399
|
-
* "osVer": "12.0",
|
|
400
|
-
* "uniVer": "x",
|
|
401
|
-
* "unixVer": "4.51"
|
|
402
|
-
* },
|
|
403
|
-
* "harmony": {
|
|
404
|
-
* "osVer": "3.0",
|
|
405
|
-
* "uniVer": "4.31",
|
|
406
|
-
* "unixVer": "4.61"
|
|
407
|
-
* }
|
|
408
|
-
* },
|
|
409
|
-
* "mp": {
|
|
410
|
-
* "weixin": {
|
|
411
|
-
* "hostVer": "√",
|
|
412
|
-
* "uniVer": "√",
|
|
413
|
-
* "unixVer": "4.41"
|
|
414
|
-
* },
|
|
415
|
-
* "alipay": {
|
|
416
|
-
* "hostVer": "√",
|
|
417
|
-
* "uniVer": "√",
|
|
418
|
-
* "unixVer": "x"
|
|
419
|
-
* },
|
|
420
|
-
* "baidu": {
|
|
421
|
-
* "hostVer": "√",
|
|
422
|
-
* "uniVer": "√",
|
|
423
|
-
* "unixVer": "x"
|
|
424
|
-
* },
|
|
425
|
-
* "toutiao": {
|
|
426
|
-
* "hostVer": "√",
|
|
427
|
-
* "uniVer": "√",
|
|
428
|
-
* "unixVer": "x"
|
|
429
|
-
* },
|
|
430
|
-
* "lark": {
|
|
431
|
-
* "hostVer": "√",
|
|
432
|
-
* "uniVer": "√",
|
|
433
|
-
* "unixVer": "x"
|
|
434
|
-
* },
|
|
435
|
-
* "qq": {
|
|
436
|
-
* "hostVer": "√",
|
|
437
|
-
* "uniVer": "√",
|
|
438
|
-
* "unixVer": "x"
|
|
439
|
-
* },
|
|
440
|
-
* "kuaishou": {
|
|
441
|
-
* "hostVer": "√",
|
|
442
|
-
* "uniVer": "√",
|
|
443
|
-
* "unixVer": "x"
|
|
444
|
-
* },
|
|
445
|
-
* "jd": {
|
|
446
|
-
* "hostVer": "√",
|
|
447
|
-
* "uniVer": "√",
|
|
448
|
-
* "unixVer": "x"
|
|
449
|
-
* }
|
|
450
|
-
* },
|
|
451
|
-
* "web": {
|
|
452
|
-
* "uniVer": "x",
|
|
453
|
-
* "unixVer": "x"
|
|
454
|
-
* }
|
|
455
|
-
* }
|
|
456
|
-
*/
|
|
457
|
-
chooseMedia(options : ChooseMediaOptions) : void;
|
|
458
|
-
|
|
459
|
-
}
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
export interface Uni {
|
|
2
|
-
/**
|
|
3
|
-
* 设置系统剪贴板的内容
|
|
4
|
-
*
|
|
5
|
-
* @tutorial https://uniapp.dcloud.net.cn/api/system/clipboard.html#setclipboarddata
|
|
6
|
-
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/system/clipboard.html#setclipboarddata
|
|
7
|
-
* @uniPlatform {
|
|
8
|
-
* "app": {
|
|
9
|
-
* "android": {
|
|
10
|
-
* "osVer": "5.0",
|
|
11
|
-
* "uniVer": "√",
|
|
12
|
-
* "unixVer": "x"
|
|
13
|
-
* },
|
|
14
|
-
* "ios": {
|
|
15
|
-
* "osVer": "12.0",
|
|
16
|
-
* "uniVer": "√",
|
|
17
|
-
* "unixVer": "x"
|
|
18
|
-
* },
|
|
19
|
-
* "harmony": {
|
|
20
|
-
* "osVer": "3.0",
|
|
21
|
-
* "uniVer": "4.23",
|
|
22
|
-
* "unixVer": "4.61"
|
|
23
|
-
* }
|
|
24
|
-
* },
|
|
25
|
-
* "mp": {
|
|
26
|
-
* "weixin": {
|
|
27
|
-
* "hostVer": "√",
|
|
28
|
-
* "uniVer": "√",
|
|
29
|
-
* "unixVer": "4.41"
|
|
30
|
-
* },
|
|
31
|
-
* "alipay": {
|
|
32
|
-
* "hostVer": "√",
|
|
33
|
-
* "uniVer": "√",
|
|
34
|
-
* "unixVer": "x"
|
|
35
|
-
* },
|
|
36
|
-
* "baidu": {
|
|
37
|
-
* "hostVer": "√",
|
|
38
|
-
* "uniVer": "√",
|
|
39
|
-
* "unixVer": "x"
|
|
40
|
-
* },
|
|
41
|
-
* "toutiao": {
|
|
42
|
-
* "hostVer": "√",
|
|
43
|
-
* "uniVer": "√",
|
|
44
|
-
* "unixVer": "x"
|
|
45
|
-
* },
|
|
46
|
-
* "lark": {
|
|
47
|
-
* "hostVer": "√",
|
|
48
|
-
* "uniVer": "√",
|
|
49
|
-
* "unixVer": "x"
|
|
50
|
-
* },
|
|
51
|
-
* "qq": {
|
|
52
|
-
* "hostVer": "√",
|
|
53
|
-
* "uniVer": "√",
|
|
54
|
-
* "unixVer": "x"
|
|
55
|
-
* },
|
|
56
|
-
* "kuaishou": {
|
|
57
|
-
* "hostVer": "√",
|
|
58
|
-
* "uniVer": "√",
|
|
59
|
-
* "unixVer": "x"
|
|
60
|
-
* },
|
|
61
|
-
* "jd": {
|
|
62
|
-
* "hostVer": "√",
|
|
63
|
-
* "uniVer": "√",
|
|
64
|
-
* "unixVer": "x"
|
|
65
|
-
* }
|
|
66
|
-
* },
|
|
67
|
-
* "web": {
|
|
68
|
-
* "uniVer": "√",
|
|
69
|
-
* "unixVer": "4.0"
|
|
70
|
-
* }
|
|
71
|
-
* }
|
|
72
|
-
*/
|
|
73
|
-
setClipboardData(options: SetClipboardDataOptions): void;
|
|
74
|
-
/**
|
|
75
|
-
* 获得系统剪贴板的内容
|
|
76
|
-
*
|
|
77
|
-
* @tutorial https://uniapp.dcloud.net.cn/api/system/clipboard.html#getclipboarddata
|
|
78
|
-
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/system/clipboard.html#getclipboarddata
|
|
79
|
-
* @uniPlatform {
|
|
80
|
-
* "app": {
|
|
81
|
-
* "android": {
|
|
82
|
-
* "osVer": "5.0",
|
|
83
|
-
* "uniVer": "√",
|
|
84
|
-
* "unixVer": "x"
|
|
85
|
-
* },
|
|
86
|
-
* "ios": {
|
|
87
|
-
* "osVer": "12.0",
|
|
88
|
-
* "uniVer": "√",
|
|
89
|
-
* "unixVer": "x"
|
|
90
|
-
* },
|
|
91
|
-
* "harmony": {
|
|
92
|
-
* "osVer": "3.0",
|
|
93
|
-
* "uniVer": "4.23",
|
|
94
|
-
* "unixVer": "4.61"
|
|
95
|
-
* }
|
|
96
|
-
* },
|
|
97
|
-
* "mp": {
|
|
98
|
-
* "weixin": {
|
|
99
|
-
* "hostVer": "√",
|
|
100
|
-
* "uniVer": "√",
|
|
101
|
-
* "unixVer": "4.41"
|
|
102
|
-
* },
|
|
103
|
-
* "alipay": {
|
|
104
|
-
* "hostVer": "√",
|
|
105
|
-
* "uniVer": "√",
|
|
106
|
-
* "unixVer": "x"
|
|
107
|
-
* },
|
|
108
|
-
* "baidu": {
|
|
109
|
-
* "hostVer": "√",
|
|
110
|
-
* "uniVer": "√",
|
|
111
|
-
* "unixVer": "x"
|
|
112
|
-
* },
|
|
113
|
-
* "toutiao": {
|
|
114
|
-
* "hostVer": "√",
|
|
115
|
-
* "uniVer": "√",
|
|
116
|
-
* "unixVer": "x"
|
|
117
|
-
* },
|
|
118
|
-
* "lark": {
|
|
119
|
-
* "hostVer": "√",
|
|
120
|
-
* "uniVer": "√",
|
|
121
|
-
* "unixVer": "√"
|
|
122
|
-
* },
|
|
123
|
-
* "qq": {
|
|
124
|
-
* "hostVer": "√",
|
|
125
|
-
* "uniVer": "√",
|
|
126
|
-
* "unixVer": "x"
|
|
127
|
-
* },
|
|
128
|
-
* "kuaishou": {
|
|
129
|
-
* "hostVer": "√",
|
|
130
|
-
* "uniVer": "√",
|
|
131
|
-
* "unixVer": "x"
|
|
132
|
-
* },
|
|
133
|
-
* "jd": {
|
|
134
|
-
* "hostVer": "√",
|
|
135
|
-
* "uniVer": "√",
|
|
136
|
-
* "unixVer": "x"
|
|
137
|
-
* }
|
|
138
|
-
* },
|
|
139
|
-
* "web": {
|
|
140
|
-
* "uniVer": "√",
|
|
141
|
-
* "unixVer": "4.0"
|
|
142
|
-
* }
|
|
143
|
-
* }
|
|
144
|
-
*/
|
|
145
|
-
getClipboardData(options: GetClipboardDataOptions): void;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export type SetClipboardData = (options: SetClipboardDataOptions) => void;
|
|
149
|
-
export type SetClipboardDataSuccess = {};
|
|
150
|
-
export type SetClipboardDataSuccessCallback = (result: SetClipboardDataSuccess) => void;
|
|
151
|
-
export type SetClipboardDataFail = UniError;
|
|
152
|
-
export type SetClipboardDataFailCallback = (result: SetClipboardDataFail) => void;
|
|
153
|
-
export type SetClipboardDataComplete = any;
|
|
154
|
-
export type SetClipboardDataCompleteCallback = (result: SetClipboardDataComplete) => void;
|
|
155
|
-
export type SetClipboardDataOptions = {
|
|
156
|
-
/**
|
|
157
|
-
* 需要设置的内容
|
|
158
|
-
*/
|
|
159
|
-
data: string,
|
|
160
|
-
/**
|
|
161
|
-
* 是否弹出提示,默认弹出提示
|
|
162
|
-
* @type boolean
|
|
163
|
-
*/
|
|
164
|
-
showToast?: boolean | null,
|
|
165
|
-
/**
|
|
166
|
-
* 成功返回的回调函数
|
|
167
|
-
*/
|
|
168
|
-
success?: SetClipboardDataSuccessCallback | null,
|
|
169
|
-
/**
|
|
170
|
-
* 失败的回调函数
|
|
171
|
-
*/
|
|
172
|
-
fail?: SetClipboardDataFailCallback | null,
|
|
173
|
-
/**
|
|
174
|
-
* 结束的回调函数(调用成功、失败都会执行)
|
|
175
|
-
*/
|
|
176
|
-
complete?: SetClipboardDataCompleteCallback | null
|
|
177
|
-
};
|
|
178
|
-
export type GetClipboardData = (options: GetClipboardDataOptions) => void;
|
|
179
|
-
export type GetClipboardDataSuccess = {
|
|
180
|
-
/**
|
|
181
|
-
* 剪贴板的内容
|
|
182
|
-
*/
|
|
183
|
-
data: string
|
|
184
|
-
};
|
|
185
|
-
export type GetClipboardDataSuccessCallback = (result: GetClipboardDataSuccess) => void;
|
|
186
|
-
export type GetClipboardDataFail = UniError;
|
|
187
|
-
export type GetClipboardDataFailCallback = (result: GetClipboardDataFail) => void;
|
|
188
|
-
export type GetClipboardDataComplete = any;
|
|
189
|
-
export type GetClipboardDataCompleteCallback = (result: GetClipboardDataComplete) => void;
|
|
190
|
-
export type GetClipboardDataOptions = {
|
|
191
|
-
/**
|
|
192
|
-
* 成功返回的回调函数
|
|
193
|
-
*/
|
|
194
|
-
success?: GetClipboardDataSuccessCallback | null,
|
|
195
|
-
/**
|
|
196
|
-
* 失败的回调函数
|
|
197
|
-
*/
|
|
198
|
-
fail?: GetClipboardDataFailCallback | null,
|
|
199
|
-
/**
|
|
200
|
-
* 结束的回调函数(调用成功、失败都会执行)
|
|
201
|
-
*/
|
|
202
|
-
complete?: GetClipboardDataCompleteCallback | null
|
|
203
|
-
};
|