@dcloudio/uni-app-x 0.7.13 → 0.7.15
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/app.d.ts +5 -6
- package/types/index.d.ts +1 -1
- package/types/native/CanvasRenderingContext2D.d.ts +378 -0
- package/types/native/IUniElement.d.ts +40 -12
- package/types/native/Path2D.d.ts +74 -0
- package/types/native/UniApp.d.ts +17 -1
- package/types/native/UniCanvasElement.d.ts +9 -0
- package/types/native/UniEvent.d.ts +30 -0
- package/types/native/UniNativePage.d.ts +31 -1
- package/types/native/UniPageManager.d.ts +4 -1
- package/types/native/UniProvider.d.ts +14 -0
- package/types/native/UniResizeObserver.d.ts +10 -10
- package/types/native/UniScrollEvent.d.ts +1 -1
- package/types/native/UniSwiperAnimationFinishEvent.d.ts +24 -2
- package/types/native/UniSwiperChangeEvent.d.ts +24 -2
- package/types/native/UniSwiperTransitionEvent.d.ts +2 -2
- package/types/native/UniWebViewErrorEvent.d.ts +3 -3
- package/types/native/UniWebViewLoadEvent.d.ts +2 -2
- package/types/native/UniWebViewLoadingEvent.d.ts +2 -2
- package/types/native/UniWebViewMessageEvent.d.ts +1 -1
- package/types/native/global.d.ts +40 -9
- package/types/native/index.d.ts +4 -0
- package/types/page.d.ts +85 -0
- package/types/shim-uts-basic.d.ts +4495 -0
- package/types/uni/env/index.d.ts +21 -0
- package/types/uni/global.d.ts +1 -0
- package/types/uni/index.d.ts +2 -1
- package/types/uni/uts-plugin-api/global.d.ts +14 -2
- package/types/uni/uts-plugin-api/index.d.ts +14 -2
- 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-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 +19 -8
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +13 -6
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +30 -2
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +12 -3
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +6 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +64 -8
- 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 +111 -27
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +465 -45
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +651 -115
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +7 -1
- 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 +173 -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/interface.d.ts +12 -5
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +11 -5
- 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 +176 -72
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1728 -59
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +123 -16
- 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-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +100 -0
- 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 +459 -67
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +34 -5
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +909 -101
- 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 +26 -16
- 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-route/utssdk/interface.d.ts +251 -42
- 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 +114 -45
- 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 +167 -7
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +42 -0
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +516 -0
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +320 -83
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +4 -4
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +2 -2
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +48 -39
- 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 -394
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +19 -15
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +132 -15
- package/types/uni/uts-plugin-extend/README.md +3 -0
- package/types/uni/uts-plugin-extend/global.d.ts +13 -0
- package/types/uni/uts-plugin-extend/index.d.ts +13 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +365 -0
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -0
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +710 -0
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +151 -0
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -0
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +363 -0
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +11 -0
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +224 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +53 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +25 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +486 -0
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +7 -0
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +296 -0
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -0
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -0
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -0
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +559 -0
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +163 -0
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +143 -0
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -0
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -0
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +165 -0
- package/types/uni-cloud/index.d.ts +4 -0
- package/types/uni-cloud/interface.d.ts +163 -20
- package/types/vue/CheckboxGroupChangeEvent.d.ts +10 -13
- package/types/vue/LifeCycle.d.ts +32 -32
- package/types/vue/PickerViewChangeEvent.d.ts +10 -13
- package/types/vue/ProgressActiveendEvent.d.ts +9 -11
- package/types/vue/RadioGroupChangeEvent.d.ts +10 -13
- package/types/vue/SliderChangeEvent.d.ts +9 -10
- package/types/vue/SwitchChangeEvent.d.ts +11 -13
- package/types/vue/UniCloudDBElement.d.ts +72 -75
- package/types/vue/UniFormElement.d.ts +17 -19
- package/types/vue/UniNavigatorElement.d.ts +1 -2
- package/types/vue/global.d.ts +190 -0
- package/types/vue/index.d.ts +10 -11
- package/types/vue-global/index.d.ts +1 -0
- 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 -643
|
@@ -1,84 +1,188 @@
|
|
|
1
1
|
export type GetProviderSuccess = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
2
|
+
/**
|
|
3
|
+
* 服务类型
|
|
4
|
+
* - payment: 支付
|
|
5
|
+
* @type 'payment'
|
|
6
|
+
*/
|
|
7
|
+
service : 'payment',
|
|
8
|
+
/**
|
|
9
|
+
* 得到的服务供应商
|
|
10
|
+
* @type PlusShareShareService['id'][] | PlusPushClientInfo['id'][] | PlusOauthAuthService['id'][] | PlusPaymentPaymentChannel['id'][]
|
|
11
|
+
*/
|
|
12
|
+
provider : string[],
|
|
13
|
+
/**
|
|
14
|
+
* 得到的服务供应商服务对象
|
|
15
|
+
* @uniPlatform {
|
|
16
|
+
* "app": {
|
|
17
|
+
* "android": {
|
|
18
|
+
* "osVer": "5.0",
|
|
19
|
+
* "uniVer": "√",
|
|
20
|
+
* "unixVer": "4.18"
|
|
21
|
+
* },
|
|
22
|
+
* "ios": {
|
|
23
|
+
* "osVer": "9.0",
|
|
24
|
+
* "uniVer": "√",
|
|
25
|
+
* "unixVer": "4.18"
|
|
26
|
+
* }
|
|
27
|
+
* },
|
|
28
|
+
* "web": {
|
|
29
|
+
* "uniVer": "x",
|
|
30
|
+
* "unixVer": "x"
|
|
31
|
+
* }
|
|
32
|
+
* }
|
|
33
|
+
*/
|
|
34
|
+
providers : UniProvider[],
|
|
35
|
+
/**
|
|
36
|
+
* 错误信息
|
|
37
|
+
*/
|
|
38
|
+
errMsg : string
|
|
21
39
|
};
|
|
22
|
-
export type GetProviderSuccessCallback = (result: GetProviderSuccess) => void;
|
|
40
|
+
export type GetProviderSuccessCallback = (result : GetProviderSuccess) => void;
|
|
23
41
|
export type GetProviderFail = UniError;
|
|
24
|
-
export type GetProviderFailCallback = (result: GetProviderFail) => void;
|
|
42
|
+
export type GetProviderFailCallback = (result : GetProviderFail) => void;
|
|
25
43
|
export type GetProviderComplete = any;
|
|
26
|
-
export type GetProviderCompleteCallback = (result: GetProviderComplete) => void;
|
|
44
|
+
export type GetProviderCompleteCallback = (result : GetProviderComplete) => void;
|
|
27
45
|
export type GetProviderOptions = {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
48
|
-
*/
|
|
49
|
-
complete?: GetProviderCompleteCallback | null
|
|
46
|
+
/**
|
|
47
|
+
* 服务类型,可取值“payment”
|
|
48
|
+
* - payment: 支付 (Alipay、Wxpay)
|
|
49
|
+
* @type 'payment'
|
|
50
|
+
*/
|
|
51
|
+
service : 'payment',
|
|
52
|
+
/**
|
|
53
|
+
* 接口调用成功的回调
|
|
54
|
+
*/
|
|
55
|
+
success ?: GetProviderSuccessCallback | null,
|
|
56
|
+
/**
|
|
57
|
+
* 接口调用失败的回调函数
|
|
58
|
+
*/
|
|
59
|
+
fail ?: GetProviderFailCallback | null,
|
|
60
|
+
/**
|
|
61
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
62
|
+
*/
|
|
63
|
+
complete ?: GetProviderCompleteCallback | null
|
|
50
64
|
};
|
|
51
65
|
|
|
52
|
-
export type GetProvider = (options: GetProviderOptions) => void;
|
|
66
|
+
export type GetProvider = (options : GetProviderOptions) => void;
|
|
67
|
+
|
|
68
|
+
export type GetProviderIds = (options : GetProviderIdsOptions) => string[] | null;
|
|
69
|
+
|
|
70
|
+
export type GetProviderObject = (options : GetProviderObjectOptions) => UniProvider | null;
|
|
71
|
+
|
|
72
|
+
export type GetProviderIdsOptions = {
|
|
73
|
+
/**
|
|
74
|
+
* 服务类型,可取值“payment”
|
|
75
|
+
* - payment: 支付 (Alipay、Wxpay)
|
|
76
|
+
* @type 'payment'
|
|
77
|
+
*/
|
|
78
|
+
service : 'payment',
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export type GetProviderObjectOptions = {
|
|
82
|
+
/**
|
|
83
|
+
* 服务类型,可取值“payment”
|
|
84
|
+
* - payment: 支付 (Alipay、Wxpay)
|
|
85
|
+
*/
|
|
86
|
+
service : 'payment',
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* 服务供应商
|
|
90
|
+
*/
|
|
91
|
+
provider : string
|
|
92
|
+
};
|
|
53
93
|
|
|
54
94
|
export interface Uni {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
95
|
+
/**
|
|
96
|
+
* 获取服务供应商
|
|
97
|
+
* @deprecated 已废弃(仅为了兼容uni1的规范)
|
|
98
|
+
*
|
|
99
|
+
* @param {GetProviderOptions} options
|
|
100
|
+
* @return {void}
|
|
101
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/plugins/provider.html#getprovider
|
|
102
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-provider.html
|
|
103
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-provider.html
|
|
104
|
+
* @uniPlatform {
|
|
105
|
+
* "app": {
|
|
106
|
+
* "android": {
|
|
107
|
+
* "osVer": "5.0",
|
|
108
|
+
* "uniVer": "√",
|
|
109
|
+
* "unixVer": "4.11"
|
|
110
|
+
* },
|
|
111
|
+
* "ios": {
|
|
112
|
+
* "osVer": "9.0",
|
|
113
|
+
* "uniVer": "√",
|
|
114
|
+
* "unixVer": "4.18"
|
|
115
|
+
* },
|
|
116
|
+
* "harmony": {
|
|
117
|
+
* "osVer": "3.0",
|
|
118
|
+
* "uniVer": "4.24",
|
|
119
|
+
* "unixVer": "x"
|
|
120
|
+
* }
|
|
121
|
+
* },
|
|
122
|
+
* "web": {
|
|
123
|
+
* "uniVer": "x",
|
|
124
|
+
* "unixVer": "x"
|
|
125
|
+
* }
|
|
126
|
+
* }
|
|
127
|
+
*/
|
|
128
|
+
getProvider(options : GetProviderOptions) : void;
|
|
129
|
+
/**
|
|
130
|
+
* 获取服务供应商ids
|
|
131
|
+
* @param {GetProviderIdsOptions} options
|
|
132
|
+
* @return {string[] | null} 服务提供商
|
|
133
|
+
* @uniPlatform {
|
|
134
|
+
* "app": {
|
|
135
|
+
* "android": {
|
|
136
|
+
* "osVer": "5.0",
|
|
137
|
+
* "uniVer": "√",
|
|
138
|
+
* "unixVer": "4.19"
|
|
139
|
+
* },
|
|
140
|
+
* "ios": {
|
|
141
|
+
* "osVer": "9.0",
|
|
142
|
+
* "uniVer": "√",
|
|
143
|
+
* "unixVer": "4.19"
|
|
144
|
+
* },
|
|
145
|
+
* "harmony": {
|
|
146
|
+
* "osVer": "x",
|
|
147
|
+
* "uniVer": "x",
|
|
148
|
+
* "unixVer": "x"
|
|
149
|
+
* }
|
|
150
|
+
* },
|
|
151
|
+
* "web": {
|
|
152
|
+
* "uniVer": "x",
|
|
153
|
+
* "unixVer": "x"
|
|
154
|
+
* }
|
|
155
|
+
* }
|
|
156
|
+
*/
|
|
157
|
+
getProviderIds(options : GetProviderIdsOptions) : string[] | null;
|
|
158
|
+
/**
|
|
159
|
+
* 获取服务供应商对象
|
|
160
|
+
* @param {GetProviderObjectOptions} options
|
|
161
|
+
* @return {UniProvider | null}
|
|
162
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-provider.html
|
|
163
|
+
* @uniPlatform {
|
|
164
|
+
* "app": {
|
|
165
|
+
* "android": {
|
|
166
|
+
* "osVer": "5.0",
|
|
167
|
+
* "uniVer": "√",
|
|
168
|
+
* "unixVer": "4.19"
|
|
169
|
+
* },
|
|
170
|
+
* "ios": {
|
|
171
|
+
* "osVer": "9.0",
|
|
172
|
+
* "uniVer": "√",
|
|
173
|
+
* "unixVer": "4.19"
|
|
174
|
+
* },
|
|
175
|
+
* "harmony": {
|
|
176
|
+
* "osVer": "x",
|
|
177
|
+
* "uniVer": "x",
|
|
70
178
|
* "unixVer": "x"
|
|
71
179
|
* }
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
uni.getProvider({service: ''})
|
|
81
|
-
```
|
|
82
|
-
*/
|
|
83
|
-
getProvider(options: GetProviderOptions) : void;
|
|
180
|
+
* },
|
|
181
|
+
* "web": {
|
|
182
|
+
* "uniVer": "x",
|
|
183
|
+
* "unixVer": "x"
|
|
184
|
+
* }
|
|
185
|
+
* }
|
|
186
|
+
*/
|
|
187
|
+
getProviderObject(options : GetProviderObjectOptions) : UniProvider | null;
|
|
84
188
|
}
|