@dcloudio/uni-app-x 0.7.59 → 0.7.61
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 +2 -2
- package/types/app.d.ts +24 -9
- package/types/native/IUniElement.d.ts +1 -3
- package/types/native/UniCustomElement.d.ts +2 -2
- package/types/native/UniFormControl.d.ts +1 -1
- package/types/native/UniInputChangeEvent.d.ts +31 -0
- package/types/native/UniPage.d.ts +10 -2
- 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 +14 -0
- package/types/native/index.d.ts +1 -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/global.d.ts +1 -0
- package/types/uni/uts-plugin-api/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +77 -433
- 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-chooseLocation/utssdk/interface.d.ts +2 -0
- 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/global.d.ts +16 -0
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +569 -139
- 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 +22 -37
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +12 -16
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +5 -3
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +5 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +34 -15
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +3 -1
- 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 +32 -61
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +45 -80
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +5 -3
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +13 -11
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +16 -15
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +12 -10
- 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 +88 -4
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +54 -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 +5 -5
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/global.d.ts +38 -0
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/index.d.ts +19 -0
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +1783 -107
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +16 -20
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +209 -451
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +80 -698
- 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 +474 -184
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +755 -405
- package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/global.d.ts +16 -0
- package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +40 -0
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +10 -15
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +116 -124
- 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-privacy/utssdk/interface.d.ts +25 -26
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +54 -84
- 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 +71 -89
- 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 +300 -6
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +347 -10
- package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +3 -1
- package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +3 -1
- package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +25 -33
- 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/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +70 -82
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +6 -5
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +49 -72
- package/types/uni/uts-plugin-biz/global.d.ts +11 -0
- package/types/uni/uts-plugin-biz/index.d.ts +11 -0
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +60 -3
- package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +6 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/global.d.ts +52 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/index.d.ts +25 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/interface.d.ts +445 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/global.d.ts +48 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/index.d.ts +23 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/interface.d.ts +138 -0
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +28 -12
- package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/global.d.ts +18 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/interface.d.ts +45 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +21 -16
- 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/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +37 -44
- package/types/uni/uts-plugin-extend/global.d.ts +0 -2
- package/types/uni/uts-plugin-extend/index.d.ts +0 -2
- package/types/uni-cloud/interface.d.ts +13 -9
- package/types/vue/LifeCycle.d.ts +723 -1
- 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
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +0 -14
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +0 -1670
|
@@ -1,560 +0,0 @@
|
|
|
1
|
-
export interface Uni {
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 开启监听隐私协议状态改变
|
|
5
|
-
* @uniPlatform
|
|
6
|
-
{
|
|
7
|
-
"app": {
|
|
8
|
-
"android": {
|
|
9
|
-
"osVer": "5.0",
|
|
10
|
-
"uniVer": "4.31",
|
|
11
|
-
"uniUtsPlugin": "4.31",
|
|
12
|
-
"unixVer": "4.31",
|
|
13
|
-
"unixUtsPlugin": "4.31"
|
|
14
|
-
},
|
|
15
|
-
"ios": {
|
|
16
|
-
"osVer": "12.0",
|
|
17
|
-
"uniVer": "4.31",
|
|
18
|
-
"uniUtsPlugin": "4.31",
|
|
19
|
-
"unixVer": "4.31",
|
|
20
|
-
"unixUtsPlugin": "4.31"
|
|
21
|
-
},
|
|
22
|
-
"harmony": {
|
|
23
|
-
"osVer": "x",
|
|
24
|
-
"uniVer": "x",
|
|
25
|
-
"unixVer": "x"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"web": {
|
|
29
|
-
"uniVer": "x",
|
|
30
|
-
"unixVer": "x"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
* @example
|
|
34
|
-
```typescript
|
|
35
|
-
const id = uni.onPrivacyAuthorizationChange((res) => {
|
|
36
|
-
|
|
37
|
-
})
|
|
38
|
-
```
|
|
39
|
-
*/
|
|
40
|
-
onPrivacyAuthorizationChange(callback: OnPrivacyAuthorizationChangeCallback): number
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* 取消监听隐私协议状态改变
|
|
44
|
-
* @param {number} id 开启监听隐私协议状态改变返回的id
|
|
45
|
-
* @uniPlatform
|
|
46
|
-
{
|
|
47
|
-
"app": {
|
|
48
|
-
"android": {
|
|
49
|
-
"osVer": "5.0",
|
|
50
|
-
"uniVer": "4.31",
|
|
51
|
-
"uniUtsPlugin": "4.31",
|
|
52
|
-
"unixVer": "4.31",
|
|
53
|
-
"unixUtsPlugin": "4.31"
|
|
54
|
-
},
|
|
55
|
-
"ios": {
|
|
56
|
-
"osVer": "12.0",
|
|
57
|
-
"uniVer": "4.31",
|
|
58
|
-
"uniUtsPlugin": "4.31",
|
|
59
|
-
"unixVer": "4.31",
|
|
60
|
-
"unixUtsPlugin": "4.31"
|
|
61
|
-
},
|
|
62
|
-
"harmony": {
|
|
63
|
-
"osVer": "x",
|
|
64
|
-
"uniVer": "x",
|
|
65
|
-
"unixVer": "x"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"web": {
|
|
69
|
-
"uniVer": "x",
|
|
70
|
-
"unixVer": "x"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
* @example
|
|
74
|
-
```typescript
|
|
75
|
-
uni.offPrivacyAuthorizationChange(id)
|
|
76
|
-
```
|
|
77
|
-
*/
|
|
78
|
-
offPrivacyAuthorizationChange(id: number): void
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* 获取隐私协议状态
|
|
82
|
-
* @uniPlatform
|
|
83
|
-
{
|
|
84
|
-
"app": {
|
|
85
|
-
"android": {
|
|
86
|
-
"osVer": "5.0",
|
|
87
|
-
"uniVer": "4.31",
|
|
88
|
-
"uniUtsPlugin": "4.31",
|
|
89
|
-
"unixVer": "4.31",
|
|
90
|
-
"unixUtsPlugin": "4.31"
|
|
91
|
-
},
|
|
92
|
-
"ios": {
|
|
93
|
-
"osVer": "12.0",
|
|
94
|
-
"uniVer": "4.31",
|
|
95
|
-
"uniUtsPlugin": "4.31",
|
|
96
|
-
"unixVer": "4.31",
|
|
97
|
-
"unixUtsPlugin": "4.31"
|
|
98
|
-
},
|
|
99
|
-
"harmony": {
|
|
100
|
-
"osVer": "x",
|
|
101
|
-
"uniVer": "x",
|
|
102
|
-
"unixVer": "x"
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
"mp": {
|
|
106
|
-
"weixin": {
|
|
107
|
-
"hostVer": "√",
|
|
108
|
-
"uniVer": "√",
|
|
109
|
-
"unixVer": "4.41"
|
|
110
|
-
},
|
|
111
|
-
"alipay": {
|
|
112
|
-
"hostVer": "√",
|
|
113
|
-
"uniVer": "√",
|
|
114
|
-
"unixVer": "x"
|
|
115
|
-
},
|
|
116
|
-
"baidu": {
|
|
117
|
-
"hostVer": "√",
|
|
118
|
-
"uniVer": "√",
|
|
119
|
-
"unixVer": "x"
|
|
120
|
-
},
|
|
121
|
-
"toutiao": {
|
|
122
|
-
"hostVer": "√",
|
|
123
|
-
"uniVer": "√",
|
|
124
|
-
"unixVer": "x"
|
|
125
|
-
},
|
|
126
|
-
"lark": {
|
|
127
|
-
"hostVer": "√",
|
|
128
|
-
"uniVer": "√",
|
|
129
|
-
"unixVer": "x"
|
|
130
|
-
},
|
|
131
|
-
"qq": {
|
|
132
|
-
"hostVer": "√",
|
|
133
|
-
"uniVer": "√",
|
|
134
|
-
"unixVer": "x"
|
|
135
|
-
},
|
|
136
|
-
"kuaishou": {
|
|
137
|
-
"hostVer": "√",
|
|
138
|
-
"uniVer": "√",
|
|
139
|
-
"unixVer": "x"
|
|
140
|
-
},
|
|
141
|
-
"jd": {
|
|
142
|
-
"hostVer": "√",
|
|
143
|
-
"uniVer": "√",
|
|
144
|
-
"unixVer": "x"
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
"web": {
|
|
148
|
-
"uniVer": "x",
|
|
149
|
-
"unixVer": "x"
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
* @example
|
|
153
|
-
```typescript
|
|
154
|
-
uni.getPrivacySetting({
|
|
155
|
-
success: (res) => {
|
|
156
|
-
console.log('success')
|
|
157
|
-
},
|
|
158
|
-
fail: (err) => {
|
|
159
|
-
console.log(err)
|
|
160
|
-
},
|
|
161
|
-
complete: (res) => {
|
|
162
|
-
console.log('complete')
|
|
163
|
-
}
|
|
164
|
-
})
|
|
165
|
-
```
|
|
166
|
-
*/
|
|
167
|
-
getPrivacySetting(options: GetPrivacySettingOptions): void
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* 重置隐私协议状态为未同意
|
|
171
|
-
* @uniPlatform
|
|
172
|
-
{
|
|
173
|
-
"app": {
|
|
174
|
-
"android": {
|
|
175
|
-
"osVer": "5.0",
|
|
176
|
-
"uniVer": "4.31",
|
|
177
|
-
"uniUtsPlugin": "4.31",
|
|
178
|
-
"unixVer": "4.31",
|
|
179
|
-
"unixUtsPlugin": "4.31"
|
|
180
|
-
},
|
|
181
|
-
"ios": {
|
|
182
|
-
"osVer": "12.0",
|
|
183
|
-
"uniVer": "4.31",
|
|
184
|
-
"uniUtsPlugin": "4.31",
|
|
185
|
-
"unixVer": "4.31",
|
|
186
|
-
"unixUtsPlugin": "4.31"
|
|
187
|
-
},
|
|
188
|
-
"harmony": {
|
|
189
|
-
"osVer": "x",
|
|
190
|
-
"uniVer": "x",
|
|
191
|
-
"unixVer": "x"
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
"web": {
|
|
195
|
-
"uniVer": "x",
|
|
196
|
-
"unixVer": "x"
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
* @example
|
|
200
|
-
```typescript
|
|
201
|
-
uni.resetPrivacyAuthorization()
|
|
202
|
-
```
|
|
203
|
-
*/
|
|
204
|
-
resetPrivacyAuthorization(): void
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
export type OnPrivacyAuthorizationChange = (callback: OnPrivacyAuthorizationChangeCallback) => number
|
|
208
|
-
|
|
209
|
-
export type OffPrivacyAuthorizationChange = (id: number) => void
|
|
210
|
-
|
|
211
|
-
export type OnPrivacyAuthorizationChangeCallback = (res: PrivacyChangeResult) => void
|
|
212
|
-
|
|
213
|
-
export type PrivacyChangeResult = {
|
|
214
|
-
/**
|
|
215
|
-
* 是否需要用户授权隐私协议(用户之前同意过返回false,没同意过则返回true)
|
|
216
|
-
* @uniPlatform
|
|
217
|
-
{
|
|
218
|
-
"app": {
|
|
219
|
-
"android": {
|
|
220
|
-
"osVer": "5.0",
|
|
221
|
-
"uniVer": "4.31",
|
|
222
|
-
"uniUtsPlugin": "4.31",
|
|
223
|
-
"unixVer": "4.31",
|
|
224
|
-
"unixUtsPlugin": "4.31"
|
|
225
|
-
},
|
|
226
|
-
"ios": {
|
|
227
|
-
"osVer": "12.0",
|
|
228
|
-
"uniVer": "4.31",
|
|
229
|
-
"uniUtsPlugin": "4.31",
|
|
230
|
-
"unixVer": "4.31",
|
|
231
|
-
"unixUtsPlugin": "4.31"
|
|
232
|
-
},
|
|
233
|
-
"harmony": {
|
|
234
|
-
"osVer": "x",
|
|
235
|
-
"uniVer": "x",
|
|
236
|
-
"unixVer": "x"
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
"web": {
|
|
240
|
-
"uniVer": "x",
|
|
241
|
-
"unixVer": "x"
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
*/
|
|
245
|
-
needAuthorization: boolean
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
export type GetPrivacySetting = (options: GetPrivacySettingOptions) => void
|
|
249
|
-
|
|
250
|
-
export type GetPrivacySettingSuccessCallback = (result: GetPrivacySettingSuccessResult) => void;
|
|
251
|
-
export type GetPrivacySettingFailCallback = (result: any) => void;
|
|
252
|
-
export type GetPrivacySettingCompleteCallback = (result: any) => void;
|
|
253
|
-
export type ResetPrivacyAuthorization = () => void
|
|
254
|
-
|
|
255
|
-
export type GetPrivacySettingSuccessResult = {
|
|
256
|
-
/**
|
|
257
|
-
* 是否需要用户授权隐私协议(用户之前同意过返回false,没同意过则返回true)
|
|
258
|
-
* @uniPlatform
|
|
259
|
-
{
|
|
260
|
-
"app": {
|
|
261
|
-
"android": {
|
|
262
|
-
"osVer": "5.0",
|
|
263
|
-
"uniVer": "4.31",
|
|
264
|
-
"uniUtsPlugin": "4.31",
|
|
265
|
-
"unixVer": "4.31",
|
|
266
|
-
"unixUtsPlugin": "4.31"
|
|
267
|
-
},
|
|
268
|
-
"ios": {
|
|
269
|
-
"osVer": "12.0",
|
|
270
|
-
"uniVer": "4.31",
|
|
271
|
-
"uniUtsPlugin": "4.31",
|
|
272
|
-
"unixVer": "4.31",
|
|
273
|
-
"unixUtsPlugin": "4.31"
|
|
274
|
-
},
|
|
275
|
-
"harmony": {
|
|
276
|
-
"osVer": "x",
|
|
277
|
-
"uniVer": "x",
|
|
278
|
-
"unixVer": "x"
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
|
-
"mp": {
|
|
282
|
-
"weixin": {
|
|
283
|
-
"hostVer": "√",
|
|
284
|
-
"uniVer": "√",
|
|
285
|
-
"unixVer": "4.41"
|
|
286
|
-
},
|
|
287
|
-
"alipay": {
|
|
288
|
-
"hostVer": "√",
|
|
289
|
-
"uniVer": "√",
|
|
290
|
-
"unixVer": "x"
|
|
291
|
-
},
|
|
292
|
-
"baidu": {
|
|
293
|
-
"hostVer": "√",
|
|
294
|
-
"uniVer": "√",
|
|
295
|
-
"unixVer": "x"
|
|
296
|
-
},
|
|
297
|
-
"toutiao": {
|
|
298
|
-
"hostVer": "√",
|
|
299
|
-
"uniVer": "√",
|
|
300
|
-
"unixVer": "x"
|
|
301
|
-
},
|
|
302
|
-
"lark": {
|
|
303
|
-
"hostVer": "√",
|
|
304
|
-
"uniVer": "√",
|
|
305
|
-
"unixVer": "x"
|
|
306
|
-
},
|
|
307
|
-
"qq": {
|
|
308
|
-
"hostVer": "√",
|
|
309
|
-
"uniVer": "√",
|
|
310
|
-
"unixVer": "x"
|
|
311
|
-
},
|
|
312
|
-
"kuaishou": {
|
|
313
|
-
"hostVer": "√",
|
|
314
|
-
"uniVer": "√",
|
|
315
|
-
"unixVer": "x"
|
|
316
|
-
},
|
|
317
|
-
"jd": {
|
|
318
|
-
"hostVer": "√",
|
|
319
|
-
"uniVer": "√",
|
|
320
|
-
"unixVer": "x"
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
"web": {
|
|
324
|
-
"uniVer": "x",
|
|
325
|
-
"unixVer": "x"
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
*/
|
|
329
|
-
needAuthorization: boolean
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
export type GetPrivacySettingOptions = {
|
|
333
|
-
/**
|
|
334
|
-
* 接口调用成功的回调函数
|
|
335
|
-
* @defaultValue null
|
|
336
|
-
* @uniPlatform
|
|
337
|
-
{
|
|
338
|
-
"app": {
|
|
339
|
-
"android": {
|
|
340
|
-
"osVer": "5.0",
|
|
341
|
-
"uniVer": "4.31",
|
|
342
|
-
"uniUtsPlugin": "4.31",
|
|
343
|
-
"unixVer": "4.31",
|
|
344
|
-
"unixUtsPlugin": "4.31"
|
|
345
|
-
},
|
|
346
|
-
"ios": {
|
|
347
|
-
"osVer": "12.0",
|
|
348
|
-
"uniVer": "4.31",
|
|
349
|
-
"uniUtsPlugin": "4.31",
|
|
350
|
-
"unixVer": "4.31",
|
|
351
|
-
"unixUtsPlugin": "4.31"
|
|
352
|
-
},
|
|
353
|
-
"harmony": {
|
|
354
|
-
"osVer": "x",
|
|
355
|
-
"uniVer": "x",
|
|
356
|
-
"unixVer": "x"
|
|
357
|
-
}
|
|
358
|
-
},
|
|
359
|
-
"mp": {
|
|
360
|
-
"weixin": {
|
|
361
|
-
"hostVer": "√",
|
|
362
|
-
"uniVer": "√",
|
|
363
|
-
"unixVer": "4.41"
|
|
364
|
-
},
|
|
365
|
-
"alipay": {
|
|
366
|
-
"hostVer": "√",
|
|
367
|
-
"uniVer": "√",
|
|
368
|
-
"unixVer": "x"
|
|
369
|
-
},
|
|
370
|
-
"baidu": {
|
|
371
|
-
"hostVer": "√",
|
|
372
|
-
"uniVer": "√",
|
|
373
|
-
"unixVer": "x"
|
|
374
|
-
},
|
|
375
|
-
"toutiao": {
|
|
376
|
-
"hostVer": "√",
|
|
377
|
-
"uniVer": "√",
|
|
378
|
-
"unixVer": "x"
|
|
379
|
-
},
|
|
380
|
-
"lark": {
|
|
381
|
-
"hostVer": "√",
|
|
382
|
-
"uniVer": "√",
|
|
383
|
-
"unixVer": "x"
|
|
384
|
-
},
|
|
385
|
-
"qq": {
|
|
386
|
-
"hostVer": "√",
|
|
387
|
-
"uniVer": "√",
|
|
388
|
-
"unixVer": "x"
|
|
389
|
-
},
|
|
390
|
-
"kuaishou": {
|
|
391
|
-
"hostVer": "√",
|
|
392
|
-
"uniVer": "√",
|
|
393
|
-
"unixVer": "x"
|
|
394
|
-
},
|
|
395
|
-
"jd": {
|
|
396
|
-
"hostVer": "√",
|
|
397
|
-
"uniVer": "√",
|
|
398
|
-
"unixVer": "x"
|
|
399
|
-
}
|
|
400
|
-
},
|
|
401
|
-
"web": {
|
|
402
|
-
"uniVer": "x",
|
|
403
|
-
"unixVer": "x"
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
*/
|
|
407
|
-
success?: GetPrivacySettingSuccessCallback
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* 接口调用失败的回调函数
|
|
411
|
-
* @defaultValue null
|
|
412
|
-
* @uniPlatform
|
|
413
|
-
{
|
|
414
|
-
"app": {
|
|
415
|
-
"android": {
|
|
416
|
-
"osVer": "5.0",
|
|
417
|
-
"uniVer": "4.31",
|
|
418
|
-
"uniUtsPlugin": "4.31",
|
|
419
|
-
"unixVer": "4.31",
|
|
420
|
-
"unixUtsPlugin": "4.31"
|
|
421
|
-
},
|
|
422
|
-
"ios": {
|
|
423
|
-
"osVer": "12.0",
|
|
424
|
-
"uniVer": "4.31",
|
|
425
|
-
"uniUtsPlugin": "4.31",
|
|
426
|
-
"unixVer": "4.31",
|
|
427
|
-
"unixUtsPlugin": "4.31"
|
|
428
|
-
},
|
|
429
|
-
"harmony": {
|
|
430
|
-
"osVer": "x",
|
|
431
|
-
"uniVer": "x",
|
|
432
|
-
"unixVer": "x"
|
|
433
|
-
}
|
|
434
|
-
},
|
|
435
|
-
"mp": {
|
|
436
|
-
"weixin": {
|
|
437
|
-
"hostVer": "√",
|
|
438
|
-
"uniVer": "√",
|
|
439
|
-
"unixVer": "4.41"
|
|
440
|
-
},
|
|
441
|
-
"alipay": {
|
|
442
|
-
"hostVer": "√",
|
|
443
|
-
"uniVer": "√",
|
|
444
|
-
"unixVer": "x"
|
|
445
|
-
},
|
|
446
|
-
"baidu": {
|
|
447
|
-
"hostVer": "√",
|
|
448
|
-
"uniVer": "√",
|
|
449
|
-
"unixVer": "x"
|
|
450
|
-
},
|
|
451
|
-
"toutiao": {
|
|
452
|
-
"hostVer": "√",
|
|
453
|
-
"uniVer": "√",
|
|
454
|
-
"unixVer": "x"
|
|
455
|
-
},
|
|
456
|
-
"lark": {
|
|
457
|
-
"hostVer": "√",
|
|
458
|
-
"uniVer": "√",
|
|
459
|
-
"unixVer": "x"
|
|
460
|
-
},
|
|
461
|
-
"qq": {
|
|
462
|
-
"hostVer": "√",
|
|
463
|
-
"uniVer": "√",
|
|
464
|
-
"unixVer": "x"
|
|
465
|
-
},
|
|
466
|
-
"kuaishou": {
|
|
467
|
-
"hostVer": "√",
|
|
468
|
-
"uniVer": "√",
|
|
469
|
-
"unixVer": "x"
|
|
470
|
-
},
|
|
471
|
-
"jd": {
|
|
472
|
-
"hostVer": "√",
|
|
473
|
-
"uniVer": "√",
|
|
474
|
-
"unixVer": "x"
|
|
475
|
-
}
|
|
476
|
-
},
|
|
477
|
-
"web": {
|
|
478
|
-
"uniVer": "x",
|
|
479
|
-
"unixVer": "x"
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
*/
|
|
483
|
-
fail?: GetPrivacySettingFailCallback
|
|
484
|
-
|
|
485
|
-
/**
|
|
486
|
-
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
487
|
-
* @defaultValue null
|
|
488
|
-
* @uniPlatform
|
|
489
|
-
{
|
|
490
|
-
"app": {
|
|
491
|
-
"android": {
|
|
492
|
-
"osVer": "5.0",
|
|
493
|
-
"uniVer": "4.31",
|
|
494
|
-
"uniUtsPlugin": "4.31",
|
|
495
|
-
"unixVer": "4.31",
|
|
496
|
-
"unixUtsPlugin": "4.31"
|
|
497
|
-
},
|
|
498
|
-
"ios": {
|
|
499
|
-
"osVer": "12.0",
|
|
500
|
-
"uniVer": "4.31",
|
|
501
|
-
"uniUtsPlugin": "4.31",
|
|
502
|
-
"unixVer": "4.31",
|
|
503
|
-
"unixUtsPlugin": "4.31"
|
|
504
|
-
},
|
|
505
|
-
"harmony": {
|
|
506
|
-
"osVer": "x",
|
|
507
|
-
"uniVer": "x",
|
|
508
|
-
"unixVer": "x"
|
|
509
|
-
}
|
|
510
|
-
},
|
|
511
|
-
"mp": {
|
|
512
|
-
"weixin": {
|
|
513
|
-
"hostVer": "√",
|
|
514
|
-
"uniVer": "√",
|
|
515
|
-
"unixVer": "4.41"
|
|
516
|
-
},
|
|
517
|
-
"alipay": {
|
|
518
|
-
"hostVer": "√",
|
|
519
|
-
"uniVer": "√",
|
|
520
|
-
"unixVer": "x"
|
|
521
|
-
},
|
|
522
|
-
"baidu": {
|
|
523
|
-
"hostVer": "√",
|
|
524
|
-
"uniVer": "√",
|
|
525
|
-
"unixVer": "x"
|
|
526
|
-
},
|
|
527
|
-
"toutiao": {
|
|
528
|
-
"hostVer": "√",
|
|
529
|
-
"uniVer": "√",
|
|
530
|
-
"unixVer": "x"
|
|
531
|
-
},
|
|
532
|
-
"lark": {
|
|
533
|
-
"hostVer": "√",
|
|
534
|
-
"uniVer": "√",
|
|
535
|
-
"unixVer": "x"
|
|
536
|
-
},
|
|
537
|
-
"qq": {
|
|
538
|
-
"hostVer": "√",
|
|
539
|
-
"uniVer": "√",
|
|
540
|
-
"unixVer": "x"
|
|
541
|
-
},
|
|
542
|
-
"kuaishou": {
|
|
543
|
-
"hostVer": "√",
|
|
544
|
-
"uniVer": "√",
|
|
545
|
-
"unixVer": "x"
|
|
546
|
-
},
|
|
547
|
-
"jd": {
|
|
548
|
-
"hostVer": "√",
|
|
549
|
-
"uniVer": "√",
|
|
550
|
-
"unixVer": "x"
|
|
551
|
-
}
|
|
552
|
-
},
|
|
553
|
-
"web": {
|
|
554
|
-
"uniVer": "x",
|
|
555
|
-
"unixVer": "x"
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
*/
|
|
559
|
-
complete?: GetPrivacySettingCompleteCallback
|
|
560
|
-
}
|