@dcloudio/uni-app-x 0.7.122 → 0.7.123
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/dom2-internal/UniTextLayout.d.ts +5 -0
- package/types/native/IUniElement.d.ts +253 -13
- package/types/native/UniAnimation.d.ts +63 -9
- package/types/page.d.ts +3 -3
- package/types/uni/uts-plugin-api/global.d.ts +1 -2
- package/types/uni/uts-plugin-api/index.d.ts +1 -2
- package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/global.d.ts +36 -12
- package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/index.d.ts +18 -6
- package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/interface.d.ts +84 -13
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +6 -0
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +22 -6
- package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/global.d.ts +28 -12
- package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/index.d.ts +14 -6
- package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/interface.d.ts +203 -178
- package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/interface.d.ts +7 -559
- package/types/uni/uts-plugin-api/lib/uni-compass/utssdk/global.d.ts +38 -14
- package/types/uni/uts-plugin-api/lib/uni-compass/utssdk/index.d.ts +19 -7
- package/types/uni/uts-plugin-api/lib/uni-compass/utssdk/interface.d.ts +415 -350
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +4 -2
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +2 -1
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +75 -23
- package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +720 -0
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +154 -20
- package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/global.d.ts +36 -12
- package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/index.d.ts +18 -6
- package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/interface.d.ts +91 -16
- package/types/uni/{uts-plugin-component/lib/uni-memorywarning → uts-plugin-api/lib/uni-memory}/utssdk/global.d.ts +2 -2
- package/types/uni/{uts-plugin-component/lib/uni-memorywarning → uts-plugin-api/lib/uni-memory}/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-memory/utssdk/interface.d.ts +178 -0
- package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/interface.d.ts +14 -4
- package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/global.d.ts +6 -0
- package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/index.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +15 -3
- package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/global.d.ts +24 -2
- package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/index.d.ts +12 -1
- package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/interface.d.ts +158 -47
- package/types/uni/uts-plugin-biz/global.d.ts +2 -1
- package/types/uni/uts-plugin-biz/index.d.ts +2 -1
- package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/global.d.ts +36 -12
- package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/index.d.ts +18 -6
- package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/interface.d.ts +772 -257
- package/types/uni/uts-plugin-biz/lib/uni-ad-dom2/utssdk/global.d.ts +45 -0
- package/types/uni/uts-plugin-biz/lib/uni-ad-dom2/utssdk/index.d.ts +22 -0
- package/types/uni/uts-plugin-biz/lib/uni-ad-dom2/utssdk/interface.d.ts +732 -0
- package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/global.d.ts +6 -0
- package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/index.d.ts +3 -0
- package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/interface.d.ts +22 -6
- package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/global.d.ts +28 -12
- package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/index.d.ts +14 -6
- package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/interface.d.ts +203 -178
- package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/global.d.ts +38 -14
- package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/index.d.ts +19 -7
- package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/interface.d.ts +415 -350
- package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/global.d.ts +36 -12
- package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/index.d.ts +18 -6
- package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/interface.d.ts +91 -16
- package/types/uni/uts-plugin-biz/lib/uni-memory/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-biz/lib/uni-memory/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-biz/lib/uni-memory/utssdk/interface.d.ts +178 -0
- package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/interface.d.ts +14 -4
- package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/global.d.ts +6 -0
- package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/index.d.ts +3 -0
- package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/interface.d.ts +15 -3
- package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/global.d.ts +24 -2
- package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/index.d.ts +12 -1
- package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/interface.d.ts +132 -19
- package/types/uni/uts-plugin-component/global.d.ts +23 -112
- package/types/uni/uts-plugin-component/index.d.ts +23 -112
- package/types/uni/uts-plugin-component/lib/{uni-editor-global → uni-editor-editor-global}/utssdk/interface.d.ts +2 -0
- package/types/uni/uts-plugin-component/lib/uni-form-checkbox-global/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/uni-form-checkbox-global/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-form-checkbox-global/utssdk/interface.d.ts +7 -0
- package/types/uni/uts-plugin-component/lib/uni-form-checkbox-group-global/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/uni-form-checkbox-group-global/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-form-checkbox-group-global/utssdk/interface.d.ts +2 -0
- package/types/uni/uts-plugin-component/lib/uni-form-form-global/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/{uni-getElementById → uni-form-form-global}/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-component/lib/uni-form-form-global/utssdk/interface.d.ts +2 -0
- package/types/uni/uts-plugin-component/lib/uni-form-label-global/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/{uni-page-container-global → uni-form-label-global}/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-component/lib/uni-form-label-global/utssdk/interface.d.ts +2 -0
- package/types/uni/uts-plugin-component/lib/uni-form-picker-global/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/uni-form-picker-global/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-form-picker-global/utssdk/interface.d.ts +2 -0
- package/types/uni/uts-plugin-component/lib/uni-form-picker-view-column-global/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/uni-form-picker-view-column-global/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-form-picker-view-column-global/utssdk/interface.d.ts +2 -0
- package/types/uni/uts-plugin-component/lib/uni-form-picker-view-global/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/{uni-arrayBufferToBase64 → uni-form-picker-view-global}/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-component/lib/uni-form-picker-view-global/utssdk/interface.d.ts +2 -0
- package/types/uni/uts-plugin-component/lib/uni-form-radio-global/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/{uni-input → uni-form-radio-global}/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-component/lib/uni-form-radio-global/utssdk/interface.d.ts +7 -0
- package/types/uni/uts-plugin-component/lib/uni-form-radio-group-global/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/{uni-base64ToArrayBuffer → uni-form-radio-group-global}/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-component/lib/uni-form-radio-group-global/utssdk/interface.d.ts +2 -0
- package/types/uni/uts-plugin-component/lib/uni-form-slider-global/utssdk/global.d.ts +13 -0
- package/types/uni/uts-plugin-component/lib/uni-form-slider-global/utssdk/index.d.ts +7 -0
- package/types/uni/uts-plugin-component/lib/uni-form-slider-global/utssdk/interface.d.ts +18 -0
- package/types/uni/uts-plugin-component/lib/uni-form-switch-global/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/uni-form-switch-global/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-form-switch-global/utssdk/interface.d.ts +7 -0
- package/types/vue/LifeCycle.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +0 -25
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +0 -12
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +0 -1767
- package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/global.d.ts +0 -35
- package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/index.d.ts +0 -17
- package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/interface.d.ts +0 -359
- package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/global.d.ts +0 -29
- package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/index.d.ts +0 -14
- package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/interface.d.ts +0 -1673
- package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/global.d.ts +0 -25
- package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/index.d.ts +0 -12
- package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/interface.d.ts +0 -226
- package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +0 -11
- package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +0 -79
- package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/global.d.ts +0 -59
- package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/index.d.ts +0 -29
- package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/interface.d.ts +0 -1342
- package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +0 -11
- package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +0 -79
- package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/global.d.ts +0 -35
- package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/index.d.ts +0 -17
- package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/interface.d.ts +0 -944
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +0 -55
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +0 -27
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +0 -1330
- package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/global.d.ts +0 -25
- package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/index.d.ts +0 -12
- package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +0 -978
- package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/global.d.ts +0 -25
- package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/index.d.ts +0 -12
- package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/interface.d.ts +0 -979
- package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/global.d.ts +0 -25
- package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/index.d.ts +0 -12
- package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/interface.d.ts +0 -423
- package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/global.d.ts +0 -33
- package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/index.d.ts +0 -16
- package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/interface.d.ts +0 -499
- package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/global.d.ts +0 -45
- package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/index.d.ts +0 -22
- package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/interface.d.ts +0 -217
- package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/global.d.ts +0 -35
- package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/index.d.ts +0 -17
- package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/interface.d.ts +0 -353
- package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/global.d.ts +0 -33
- package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/index.d.ts +0 -16
- package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +0 -3379
- package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/global.d.ts +0 -21
- package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/index.d.ts +0 -10
- package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +0 -153
- package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +0 -19
- package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +0 -9
- package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +0 -61
- package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/global.d.ts +0 -21
- package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/index.d.ts +0 -10
- package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/interface.d.ts +0 -560
- package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/global.d.ts +0 -15
- package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/index.d.ts +0 -7
- package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/interface.d.ts +0 -214
- package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/global.d.ts +0 -23
- package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/index.d.ts +0 -11
- package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/interface.d.ts +0 -158
- package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/global.d.ts +0 -27
- package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/index.d.ts +0 -13
- package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/interface.d.ts +0 -2303
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/global.d.ts +0 -43
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/index.d.ts +0 -21
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +0 -943
- package/types/uni/uts-plugin-component/lib/uni-event/utssdk/global.d.ts +0 -17
- package/types/uni/uts-plugin-component/lib/uni-event/utssdk/index.d.ts +0 -8
- package/types/uni/uts-plugin-component/lib/uni-event/utssdk/interface.d.ts +0 -338
- package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/global.d.ts +0 -27
- package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/index.d.ts +0 -13
- package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/interface.d.ts +0 -147
- package/types/uni/uts-plugin-component/lib/uni-file/utssdk/global.d.ts +0 -81
- package/types/uni/uts-plugin-component/lib/uni-file/utssdk/index.d.ts +0 -40
- package/types/uni/uts-plugin-component/lib/uni-file/utssdk/interface.d.ts +0 -397
- package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/global.d.ts +0 -151
- package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/index.d.ts +0 -75
- package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/interface.d.ts +0 -6428
- package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +0 -11
- package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +0 -5
- package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +0 -37
- package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +0 -13
- package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +0 -6
- package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +0 -620
- package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/global.d.ts +0 -15
- package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/index.d.ts +0 -7
- package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +0 -2220
- package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +0 -17
- package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +0 -8
- package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +0 -1406
- package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/global.d.ts +0 -15
- package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/index.d.ts +0 -7
- package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/interface.d.ts +0 -1774
- package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/global.d.ts +0 -11
- package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/interface.d.ts +0 -83
- package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +0 -13
- package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +0 -6
- package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +0 -833
- package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +0 -13
- package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +0 -6
- package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +0 -836
- package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +0 -21
- package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/index.d.ts +0 -11
- package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +0 -736
- package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/global.d.ts +0 -33
- package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/index.d.ts +0 -16
- package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/interface.d.ts +0 -420
- package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/global.d.ts +0 -23
- package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/index.d.ts +0 -11
- package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/interface.d.ts +0 -199
- package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/global.d.ts +0 -37
- package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/index.d.ts +0 -18
- package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/interface.d.ts +0 -757
- package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/global.d.ts +0 -33
- package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/index.d.ts +0 -16
- package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/interface.d.ts +0 -6084
- package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/global.d.ts +0 -13
- package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/index.d.ts +0 -6
- package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/interface.d.ts +0 -508
- package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/global.d.ts +0 -35
- package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/index.d.ts +0 -17
- package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/interface.d.ts +0 -362
- package/types/uni/uts-plugin-component/lib/uni-input/utssdk/global.d.ts +0 -9
- package/types/uni/uts-plugin-component/lib/uni-input/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/global.d.ts +0 -25
- package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/index.d.ts +0 -12
- package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/interface.d.ts +0 -125
- package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/global.d.ts +0 -17
- package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/index.d.ts +0 -8
- package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/interface.d.ts +0 -171
- package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/global.d.ts +0 -45
- package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/index.d.ts +0 -22
- package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/interface.d.ts +0 -693
- package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/global.d.ts +0 -29
- package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/index.d.ts +0 -14
- package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/interface.d.ts +0 -603
- package/types/uni/uts-plugin-component/lib/uni-loading-global/utssdk/global.d.ts +0 -9
- package/types/uni/uts-plugin-component/lib/uni-loading-global/utssdk/index.d.ts +0 -5
- package/types/uni/uts-plugin-component/lib/uni-loading-global/utssdk/interface.d.ts +0 -5
- package/types/uni/uts-plugin-component/lib/uni-location/utssdk/global.d.ts +0 -61
- package/types/uni/uts-plugin-component/lib/uni-location/utssdk/index.d.ts +0 -30
- package/types/uni/uts-plugin-component/lib/uni-location/utssdk/interface.d.ts +0 -3443
- package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/global.d.ts +0 -9
- package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/index.d.ts +0 -5
- package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/interface.d.ts +0 -3
- package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/global.d.ts +0 -9
- package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/index.d.ts +0 -5
- package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/interface.d.ts +0 -3
- package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/global.d.ts +0 -29
- package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/index.d.ts +0 -14
- package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/interface.d.ts +0 -392
- package/types/uni/uts-plugin-component/lib/uni-media/utssdk/global.d.ts +0 -157
- package/types/uni/uts-plugin-component/lib/uni-media/utssdk/index.d.ts +0 -78
- package/types/uni/uts-plugin-component/lib/uni-media/utssdk/interface.d.ts +0 -5245
- package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/interface.d.ts +0 -20
- package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/global.d.ts +0 -39
- package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/index.d.ts +0 -19
- package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/interface.d.ts +0 -1743
- package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/global.d.ts +0 -69
- package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/index.d.ts +0 -34
- package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/interface.d.ts +0 -1047
- package/types/uni/uts-plugin-component/lib/uni-network/utssdk/global.d.ts +0 -109
- package/types/uni/uts-plugin-component/lib/uni-network/utssdk/index.d.ts +0 -54
- package/types/uni/uts-plugin-component/lib/uni-network/utssdk/interface.d.ts +0 -4462
- package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/global.d.ts +0 -71
- package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/index.d.ts +0 -35
- package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/interface.d.ts +0 -3031
- package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/global.d.ts +0 -9
- package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/index.d.ts +0 -5
- package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/interface.d.ts +0 -1
- package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/global.d.ts +0 -17
- package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/index.d.ts +0 -9
- package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/interface.d.ts +0 -48
- package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +0 -25
- package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +0 -12
- package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +0 -256
- package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/global.d.ts +0 -29
- package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/index.d.ts +0 -14
- package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/interface.d.ts +0 -823
- package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/global.d.ts +0 -23
- package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/index.d.ts +0 -11
- package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/interface.d.ts +0 -420
- package/types/uni/uts-plugin-component/lib/uni-page-container-global/utssdk/global.d.ts +0 -9
- package/types/uni/uts-plugin-component/lib/uni-page-container-global/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/global.d.ts +0 -27
- package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/index.d.ts +0 -13
- package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/interface.d.ts +0 -618
- package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/global.d.ts +0 -33
- package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/index.d.ts +0 -16
- package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/interface.d.ts +0 -856
- package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/global.d.ts +0 -9
- package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/index.d.ts +0 -5
- package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/interface.d.ts +0 -3
- package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/global.d.ts +0 -9
- package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/index.d.ts +0 -5
- package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/interface.d.ts +0 -1
- package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/global.d.ts +0 -9
- package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/index.d.ts +0 -5
- package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/interface.d.ts +0 -5
- package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/global.d.ts +0 -49
- package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/index.d.ts +0 -24
- package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/interface.d.ts +0 -349
- package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/global.d.ts +0 -47
- package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/index.d.ts +0 -23
- package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/interface.d.ts +0 -520
- package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/global.d.ts +0 -33
- package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/index.d.ts +0 -16
- package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/interface.d.ts +0 -625
- package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/global.d.ts +0 -33
- package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/index.d.ts +0 -16
- package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/interface.d.ts +0 -1693
- package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/global.d.ts +0 -29
- package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/index.d.ts +0 -14
- package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/interface.d.ts +0 -191
- package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/global.d.ts +0 -21
- package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/index.d.ts +0 -10
- package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/interface.d.ts +0 -2999
- package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/global.d.ts +0 -21
- package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/index.d.ts +0 -10
- package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +0 -713
- package/types/uni/uts-plugin-component/lib/uni-route/utssdk/global.d.ts +0 -59
- package/types/uni/uts-plugin-component/lib/uni-route/utssdk/index.d.ts +0 -29
- package/types/uni/uts-plugin-component/lib/uni-route/utssdk/interface.d.ts +0 -2731
- package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/global.d.ts +0 -11
- package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/index.d.ts +0 -5
- package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/interface.d.ts +0 -81
- package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/global.d.ts +0 -25
- package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/index.d.ts +0 -12
- package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/interface.d.ts +0 -429
- package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/global.d.ts +0 -57
- package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/index.d.ts +0 -28
- package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/interface.d.ts +0 -1175
- package/types/uni/uts-plugin-component/lib/uni-share/utssdk/global.d.ts +0 -41
- package/types/uni/uts-plugin-component/lib/uni-share/utssdk/index.d.ts +0 -20
- package/types/uni/uts-plugin-component/lib/uni-share/utssdk/interface.d.ts +0 -1192
- package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/global.d.ts +0 -9
- package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/index.d.ts +0 -5
- package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/interface.d.ts +0 -5
- package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/global.d.ts +0 -27
- package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/index.d.ts +0 -13
- package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/interface.d.ts +0 -722
- package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/global.d.ts +0 -55
- package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/index.d.ts +0 -27
- package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/interface.d.ts +0 -1617
- package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/global.d.ts +0 -21
- package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/index.d.ts +0 -10
- package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/interface.d.ts +0 -330
- package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/global.d.ts +0 -79
- package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/index.d.ts +0 -39
- package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/interface.d.ts +0 -1030
- package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/global.d.ts +0 -149
- package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/index.d.ts +0 -74
- package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/interface.d.ts +0 -1221
- package/types/uni/uts-plugin-component/lib/uni-textarea/utssdk/global.d.ts +0 -9
- package/types/uni/uts-plugin-component/lib/uni-textarea/utssdk/index.d.ts +0 -5
- package/types/uni/uts-plugin-component/lib/uni-textarea/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/global.d.ts +0 -53
- package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/index.d.ts +0 -26
- package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/interface.d.ts +0 -1141
- package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/global.d.ts +0 -27
- package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/index.d.ts +0 -13
- package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/interface.d.ts +0 -88
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +0 -47
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +0 -23
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +0 -926
- package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/global.d.ts +0 -113
- package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/index.d.ts +0 -56
- package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/interface.d.ts +0 -1661
- package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/global.d.ts +0 -29
- package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/index.d.ts +0 -14
- package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/interface.d.ts +0 -452
- package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/global.d.ts +0 -59
- package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/index.d.ts +0 -29
- package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/interface.d.ts +0 -1939
- /package/types/uni/uts-plugin-component/lib/{uni-camera-global → uni-camera-camera-global}/utssdk/global.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-camera-global → uni-camera-camera-global}/utssdk/index.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-camera-global → uni-camera-camera-global}/utssdk/interface.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-editor-global → uni-editor-editor-global}/utssdk/global.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-editor-global → uni-editor-editor-global}/utssdk/index.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-form-global → uni-form-button-global}/utssdk/global.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-form-global → uni-form-button-global}/utssdk/index.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-form-global → uni-form-button-global}/utssdk/interface.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-map-tencent-global → uni-map-tencent-map-global}/utssdk/global.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-map-tencent-global → uni-map-tencent-map-global}/utssdk/index.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-map-tencent-global → uni-map-tencent-map-global}/utssdk/interface.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-match-media-global → uni-match-media-match-media-global}/utssdk/global.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-match-media-global → uni-match-media-match-media-global}/utssdk/index.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-match-media-global → uni-match-media-match-media-global}/utssdk/interface.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-navigator-global → uni-navigator-navigator-global}/utssdk/global.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-navigator-global → uni-navigator-navigator-global}/utssdk/index.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-navigator-global → uni-navigator-navigator-global}/utssdk/interface.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-barcode-scanning → uni-page-container-page-container-global}/utssdk/global.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-barcode-scanning → uni-page-container-page-container-global}/utssdk/index.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-barcode-scanning → uni-page-container-page-container-global}/utssdk/interface.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-picker-global → uni-picker-picker-global}/utssdk/global.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-picker-global → uni-picker-picker-global}/utssdk/index.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-picker-global → uni-picker-picker-global}/utssdk/interface.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-progress-global → uni-progress-progress-global}/utssdk/global.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-progress-global → uni-progress-progress-global}/utssdk/index.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-progress-global → uni-progress-progress-global}/utssdk/interface.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-rich-text-global → uni-rich-text-rich-text-global}/utssdk/global.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-rich-text-global → uni-rich-text-rich-text-global}/utssdk/index.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-rich-text-global → uni-rich-text-rich-text-global}/utssdk/interface.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-video-global → uni-video-video-global}/utssdk/global.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-video-global → uni-video-video-global}/utssdk/index.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-video-global → uni-video-video-global}/utssdk/interface.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-web-view-global → uni-web-view-web-view-global}/utssdk/global.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-web-view-global → uni-web-view-web-view-global}/utssdk/index.d.ts +0 -0
- /package/types/uni/uts-plugin-component/lib/{uni-web-view-global → uni-web-view-web-view-global}/utssdk/interface.d.ts +0 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 内存不足告警数据
|
|
3
|
+
*/
|
|
4
|
+
export type MemoryWarningCallbackResult = {
|
|
5
|
+
/**
|
|
6
|
+
* 内存告警等级,只有 Android 才有,对应系统宏定义5(TRIM_MEMORY_RUNNING_MODERATE)、10(TRIM_MEMORY_RUNNING_LOW)、15(TRIM_MEMORY_RUNNING_CRITICAL)、20(TRIM_MEMORY_UI_HIDDEN)。
|
|
7
|
+
*/
|
|
8
|
+
level?: number | null
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type OnMemoryWarningCallback = (result: MemoryWarningCallbackResult) => void
|
|
12
|
+
|
|
13
|
+
export type OnMemoryWarning = (callback: OnMemoryWarningCallback) => void
|
|
14
|
+
|
|
15
|
+
export type OffMemoryWarning = (callback: OnMemoryWarningCallback | null) => void
|
|
16
|
+
|
|
17
|
+
export type MemoryWarningErrorCode = 1100601 | 1100602
|
|
18
|
+
|
|
19
|
+
export interface MemoryWarningFail extends IUniError {
|
|
20
|
+
errCode: MemoryWarningErrorCode
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface Uni {
|
|
24
|
+
/**
|
|
25
|
+
* 监听内存不足告警事件。当系统内存不足时,会触发该事件,开发者可以在回调函数中获取当前内存使用情况,并进行相应的处理。
|
|
26
|
+
* @param callback 内存不足告警事件的监听函数
|
|
27
|
+
*
|
|
28
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/memory.html#onmemorywarning
|
|
29
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/memory.html#onmemorywarning
|
|
30
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/memory.html#onmemorywarning
|
|
31
|
+
*
|
|
32
|
+
* @uniPlatform {
|
|
33
|
+
* "app": {
|
|
34
|
+
* "android": {
|
|
35
|
+
* "osVer": "5.0",
|
|
36
|
+
* "uniVer": "√",
|
|
37
|
+
* "unixVer": "5.08"
|
|
38
|
+
* },
|
|
39
|
+
* "ios": {
|
|
40
|
+
* "osVer": "12.0",
|
|
41
|
+
* "uniVer": "√",
|
|
42
|
+
* "unixVer": "5.08",
|
|
43
|
+
* "unixUtsPlugin": "x"
|
|
44
|
+
* },
|
|
45
|
+
* "harmony": {
|
|
46
|
+
* "osVer": "5.0.0",
|
|
47
|
+
* "uniVer": "5.08",
|
|
48
|
+
* "unixVer": "5.08",
|
|
49
|
+
* "unixvVer": "5.08"
|
|
50
|
+
* }
|
|
51
|
+
* },
|
|
52
|
+
* "web": {
|
|
53
|
+
* "uniVer": "x",
|
|
54
|
+
* "unixVer": "x"
|
|
55
|
+
* },
|
|
56
|
+
* "mp":{
|
|
57
|
+
* "weixin": {
|
|
58
|
+
* "hostVer": "2.0.2",
|
|
59
|
+
* "uniVer": "√",
|
|
60
|
+
* "unixVer": "4.41"
|
|
61
|
+
* },
|
|
62
|
+
* "alipay": {
|
|
63
|
+
* "hostVer": "x",
|
|
64
|
+
* "uniVer": "x",
|
|
65
|
+
* "unixVer": "x"
|
|
66
|
+
* },
|
|
67
|
+
* "baidu": {
|
|
68
|
+
* "hostVer": "x",
|
|
69
|
+
* "uniVer": "x",
|
|
70
|
+
* "unixVer": "x"
|
|
71
|
+
* },
|
|
72
|
+
* "toutiao": {
|
|
73
|
+
* "hostVer": "x",
|
|
74
|
+
* "uniVer": "x",
|
|
75
|
+
* "unixVer": "x"
|
|
76
|
+
* },
|
|
77
|
+
* "lark": {
|
|
78
|
+
* "hostVer": "x",
|
|
79
|
+
* "uniVer": "x",
|
|
80
|
+
* "unixVer": "x"
|
|
81
|
+
* },
|
|
82
|
+
* "qq": {
|
|
83
|
+
* "hostVer": "x",
|
|
84
|
+
* "uniVer": "x",
|
|
85
|
+
* "unixVer": "x"
|
|
86
|
+
* },
|
|
87
|
+
* "kuaishou": {
|
|
88
|
+
* "hostVer": "x",
|
|
89
|
+
* "uniVer": "x",
|
|
90
|
+
* "unixVer": "x"
|
|
91
|
+
* },
|
|
92
|
+
* "jd": {
|
|
93
|
+
* "hostVer": "x",
|
|
94
|
+
* "uniVer": "x",
|
|
95
|
+
* "unixVer": "x"
|
|
96
|
+
* }
|
|
97
|
+
* }
|
|
98
|
+
* }
|
|
99
|
+
*/
|
|
100
|
+
onMemoryWarning(callback: OnMemoryWarningCallback): void
|
|
101
|
+
/**
|
|
102
|
+
* 取消监听内存不足告警事件。
|
|
103
|
+
* @param callback onMemoryWarning 传入的监听函数。不传此参数则移除所有监听函数。
|
|
104
|
+
*
|
|
105
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/memory.html#offmemorywarning
|
|
106
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/memory.html#offmemorywarning
|
|
107
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/memory.html#offmemorywarning
|
|
108
|
+
*
|
|
109
|
+
* @uniPlatform {
|
|
110
|
+
* "app": {
|
|
111
|
+
* "android": {
|
|
112
|
+
* "osVer": "5.0",
|
|
113
|
+
* "uniVer": "√",
|
|
114
|
+
* "unixVer": "5.08"
|
|
115
|
+
* },
|
|
116
|
+
* "ios": {
|
|
117
|
+
* "osVer": "12.0",
|
|
118
|
+
* "uniVer": "√",
|
|
119
|
+
* "unixVer": "5.08",
|
|
120
|
+
* "unixUtsPlugin": "x"
|
|
121
|
+
* },
|
|
122
|
+
* "harmony": {
|
|
123
|
+
* "osVer": "5.0.0",
|
|
124
|
+
* "uniVer": "5.08",
|
|
125
|
+
* "unixVer": "5.08",
|
|
126
|
+
* "unixvVer": "5.08"
|
|
127
|
+
* }
|
|
128
|
+
* },
|
|
129
|
+
* "web": {
|
|
130
|
+
* "uniVer": "x",
|
|
131
|
+
* "unixVer": "x"
|
|
132
|
+
* },
|
|
133
|
+
* "mp":{
|
|
134
|
+
* "weixin": {
|
|
135
|
+
* "hostVer": "2.9.0",
|
|
136
|
+
* "uniVer": "√",
|
|
137
|
+
* "unixVer": "4.41"
|
|
138
|
+
* },
|
|
139
|
+
* "alipay": {
|
|
140
|
+
* "hostVer": "x",
|
|
141
|
+
* "uniVer": "x",
|
|
142
|
+
* "unixVer": "x"
|
|
143
|
+
* },
|
|
144
|
+
* "baidu": {
|
|
145
|
+
* "hostVer": "x",
|
|
146
|
+
* "uniVer": "x",
|
|
147
|
+
* "unixVer": "x"
|
|
148
|
+
* },
|
|
149
|
+
* "toutiao": {
|
|
150
|
+
* "hostVer": "x",
|
|
151
|
+
* "uniVer": "x",
|
|
152
|
+
* "unixVer": "x"
|
|
153
|
+
* },
|
|
154
|
+
* "lark": {
|
|
155
|
+
* "hostVer": "x",
|
|
156
|
+
* "uniVer": "x",
|
|
157
|
+
* "unixVer": "x"
|
|
158
|
+
* },
|
|
159
|
+
* "qq": {
|
|
160
|
+
* "hostVer": "x",
|
|
161
|
+
* "uniVer": "x",
|
|
162
|
+
* "unixVer": "x"
|
|
163
|
+
* },
|
|
164
|
+
* "kuaishou": {
|
|
165
|
+
* "hostVer": "x",
|
|
166
|
+
* "uniVer": "x",
|
|
167
|
+
* "unixVer": "x"
|
|
168
|
+
* },
|
|
169
|
+
* "jd": {
|
|
170
|
+
* "hostVer": "x",
|
|
171
|
+
* "uniVer": "x",
|
|
172
|
+
* "unixVer": "x"
|
|
173
|
+
* }
|
|
174
|
+
* }
|
|
175
|
+
* }
|
|
176
|
+
*/
|
|
177
|
+
offMemoryWarning(callback ?: OnMemoryWarningCallback | null): void
|
|
178
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface Uni {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* 添加手机通讯录联系人。用户可以选择将该表单以「新增联系人」或「添加到已有联系人」的方式,写入手机系统通讯录。
|
|
4
|
+
* @param options 添加手机通讯录联系人的参数
|
|
4
5
|
*
|
|
5
6
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/contact.html#addphonecontact
|
|
6
7
|
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/contact.html#addphonecontact
|
|
@@ -76,6 +77,7 @@ export interface Uni {
|
|
|
76
77
|
addPhoneContact(options: AddPhoneContactOptions): void;
|
|
77
78
|
/**
|
|
78
79
|
* 拉起手机通讯录,选择联系人
|
|
80
|
+
* @param options 拉起手机通讯录的参数
|
|
79
81
|
*
|
|
80
82
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/contact.html#choosecontact
|
|
81
83
|
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/contact.html#choosecontact
|
|
@@ -158,10 +160,14 @@ export type AddPhoneContactErrorCode = 601 | 602 | 603;
|
|
|
158
160
|
export interface IAddPhoneContactFail extends IUniError {
|
|
159
161
|
errCode: AddPhoneContactErrorCode
|
|
160
162
|
}
|
|
161
|
-
export type AddPhoneContactFail =
|
|
163
|
+
export type AddPhoneContactFail = IAddPhoneContactFail;
|
|
162
164
|
export type AddPhoneContactFailCallback = (result: AddPhoneContactFail) => void;
|
|
163
|
-
export type AddPhoneContactComplete =
|
|
165
|
+
export type AddPhoneContactComplete = AddPhoneContactSuccess | AddPhoneContactFail;
|
|
164
166
|
export type AddPhoneContactCompleteCallback = (result: AddPhoneContactComplete) => void;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* 添加手机通讯录联系人的参数
|
|
170
|
+
*/
|
|
165
171
|
export type AddPhoneContactOptions = {
|
|
166
172
|
/**
|
|
167
173
|
* 头像本地文件路径
|
|
@@ -329,10 +335,14 @@ export type ChooseContactErrorCode = 601 | 602 | 603;
|
|
|
329
335
|
export interface IChooseContactFail extends IUniError {
|
|
330
336
|
errCode: ChooseContactErrorCode
|
|
331
337
|
}
|
|
332
|
-
export type ChooseContactFail =
|
|
338
|
+
export type ChooseContactFail = IChooseContactFail;
|
|
333
339
|
export type ChooseContactFailCallback = (result: ChooseContactFail) => void;
|
|
334
340
|
export type ChooseContactComplete = ChooseContactSuccess | ChooseContactFail;
|
|
335
341
|
export type ChooseContactCompleteCallback = (result: ChooseContactComplete) => void;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* 拉起手机通讯录的参数
|
|
345
|
+
*/
|
|
336
346
|
export type ChooseContactOptions = {
|
|
337
347
|
/**
|
|
338
348
|
* 接口调用成功的回调函数
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
SetScreenBrightness as SetScreenBrightnessOrigin,
|
|
4
4
|
SetScreenBrightnessSuccess as SetScreenBrightnessSuccessOrigin,
|
|
5
|
+
ISetScreenBrightnessFail as ISetScreenBrightnessFailOrigin,
|
|
5
6
|
SetScreenBrightnessSuccessCallback as SetScreenBrightnessSuccessCallbackOrigin,
|
|
6
7
|
SetScreenBrightnessFail as SetScreenBrightnessFailOrigin,
|
|
7
8
|
SetScreenBrightnessFailCallback as SetScreenBrightnessFailCallbackOrigin,
|
|
@@ -10,6 +11,7 @@
|
|
|
10
11
|
SetScreenBrightnessOptions as SetScreenBrightnessOptionsOrigin,
|
|
11
12
|
GetScreenBrightness as GetScreenBrightnessOrigin,
|
|
12
13
|
GetScreenBrightnessSuccess as GetScreenBrightnessSuccessOrigin,
|
|
14
|
+
IGetScreenBrightnessFail as IGetScreenBrightnessFailOrigin,
|
|
13
15
|
GetScreenBrightnessSuccessCallback as GetScreenBrightnessSuccessCallbackOrigin,
|
|
14
16
|
GetScreenBrightnessFail as GetScreenBrightnessFailOrigin,
|
|
15
17
|
GetScreenBrightnessFailCallback as GetScreenBrightnessFailCallbackOrigin,
|
|
@@ -18,6 +20,7 @@
|
|
|
18
20
|
GetScreenBrightnessOptions as GetScreenBrightnessOptionsOrigin,
|
|
19
21
|
SetKeepScreenOn as SetKeepScreenOnOrigin,
|
|
20
22
|
SetKeepScreenOnSuccess as SetKeepScreenOnSuccessOrigin,
|
|
23
|
+
ISetKeepScreenOnFail as ISetKeepScreenOnFailOrigin,
|
|
21
24
|
SetKeepScreenOnSuccessCallback as SetKeepScreenOnSuccessCallbackOrigin,
|
|
22
25
|
SetKeepScreenOnFail as SetKeepScreenOnFailOrigin,
|
|
23
26
|
SetKeepScreenOnFailCallback as SetKeepScreenOnFailCallbackOrigin,
|
|
@@ -30,6 +33,7 @@
|
|
|
30
33
|
declare global {
|
|
31
34
|
type SetScreenBrightness = SetScreenBrightnessOrigin
|
|
32
35
|
type SetScreenBrightnessSuccess = SetScreenBrightnessSuccessOrigin
|
|
36
|
+
type ISetScreenBrightnessFail = ISetScreenBrightnessFailOrigin
|
|
33
37
|
type SetScreenBrightnessSuccessCallback = SetScreenBrightnessSuccessCallbackOrigin
|
|
34
38
|
type SetScreenBrightnessFail = SetScreenBrightnessFailOrigin
|
|
35
39
|
type SetScreenBrightnessFailCallback = SetScreenBrightnessFailCallbackOrigin
|
|
@@ -38,6 +42,7 @@
|
|
|
38
42
|
type SetScreenBrightnessOptions = SetScreenBrightnessOptionsOrigin
|
|
39
43
|
type GetScreenBrightness = GetScreenBrightnessOrigin
|
|
40
44
|
type GetScreenBrightnessSuccess = GetScreenBrightnessSuccessOrigin
|
|
45
|
+
type IGetScreenBrightnessFail = IGetScreenBrightnessFailOrigin
|
|
41
46
|
type GetScreenBrightnessSuccessCallback = GetScreenBrightnessSuccessCallbackOrigin
|
|
42
47
|
type GetScreenBrightnessFail = GetScreenBrightnessFailOrigin
|
|
43
48
|
type GetScreenBrightnessFailCallback = GetScreenBrightnessFailCallbackOrigin
|
|
@@ -46,6 +51,7 @@
|
|
|
46
51
|
type GetScreenBrightnessOptions = GetScreenBrightnessOptionsOrigin
|
|
47
52
|
type SetKeepScreenOn = SetKeepScreenOnOrigin
|
|
48
53
|
type SetKeepScreenOnSuccess = SetKeepScreenOnSuccessOrigin
|
|
54
|
+
type ISetKeepScreenOnFail = ISetKeepScreenOnFailOrigin
|
|
49
55
|
type SetKeepScreenOnSuccessCallback = SetKeepScreenOnSuccessCallbackOrigin
|
|
50
56
|
type SetKeepScreenOnFail = SetKeepScreenOnFailOrigin
|
|
51
57
|
type SetKeepScreenOnFailCallback = SetKeepScreenOnFailCallbackOrigin
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export {
|
|
3
3
|
SetScreenBrightness,
|
|
4
4
|
SetScreenBrightnessSuccess,
|
|
5
|
+
ISetScreenBrightnessFail,
|
|
5
6
|
SetScreenBrightnessSuccessCallback,
|
|
6
7
|
SetScreenBrightnessFail,
|
|
7
8
|
SetScreenBrightnessFailCallback,
|
|
@@ -10,6 +11,7 @@
|
|
|
10
11
|
SetScreenBrightnessOptions,
|
|
11
12
|
GetScreenBrightness,
|
|
12
13
|
GetScreenBrightnessSuccess,
|
|
14
|
+
IGetScreenBrightnessFail,
|
|
13
15
|
GetScreenBrightnessSuccessCallback,
|
|
14
16
|
GetScreenBrightnessFail,
|
|
15
17
|
GetScreenBrightnessFailCallback,
|
|
@@ -18,6 +20,7 @@
|
|
|
18
20
|
GetScreenBrightnessOptions,
|
|
19
21
|
SetKeepScreenOn,
|
|
20
22
|
SetKeepScreenOnSuccess,
|
|
23
|
+
ISetKeepScreenOnFail,
|
|
21
24
|
SetKeepScreenOnSuccessCallback,
|
|
22
25
|
SetKeepScreenOnFail,
|
|
23
26
|
SetKeepScreenOnFailCallback,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export interface Uni {
|
|
2
2
|
/**
|
|
3
3
|
* 设置屏幕亮度。
|
|
4
|
+
* @param options 设置屏幕亮度的参数
|
|
5
|
+
*
|
|
4
6
|
* @tutorial https://uniapp.dcloud.net.cn/api/system/brightness.html
|
|
5
7
|
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/brightness.html
|
|
6
8
|
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/brightness.html
|
|
@@ -75,6 +77,8 @@ export interface Uni {
|
|
|
75
77
|
setScreenBrightness(options : SetScreenBrightnessOptions) : void;
|
|
76
78
|
/**
|
|
77
79
|
* 获取屏幕亮度。
|
|
80
|
+
* @param options 获取屏幕亮度的参数
|
|
81
|
+
*
|
|
78
82
|
* @tutorial https://uniapp.dcloud.net.cn/api/system/brightness.html
|
|
79
83
|
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/brightness.html
|
|
80
84
|
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/brightness.html
|
|
@@ -149,6 +153,8 @@ export interface Uni {
|
|
|
149
153
|
getScreenBrightness(options : GetScreenBrightnessOptions) : void;
|
|
150
154
|
/**
|
|
151
155
|
* 设置是否保持常亮状态。仅在当前应用生效,离开应用后设置失效。
|
|
156
|
+
* @param options 设置是否保持常亮状态的参数
|
|
157
|
+
*
|
|
152
158
|
* @tutorial https://uniapp.dcloud.net.cn/api/system/brightness.html
|
|
153
159
|
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/brightness.html
|
|
154
160
|
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/brightness.html
|
|
@@ -225,8 +231,10 @@ export interface Uni {
|
|
|
225
231
|
|
|
226
232
|
export type SetScreenBrightness = (options : SetScreenBrightnessOptions) => void;
|
|
227
233
|
export type SetScreenBrightnessSuccess = {};
|
|
234
|
+
export interface ISetScreenBrightnessFail extends IUniError {
|
|
235
|
+
}
|
|
228
236
|
export type SetScreenBrightnessSuccessCallback = (result : SetScreenBrightnessSuccess) => void;
|
|
229
|
-
export type SetScreenBrightnessFail =
|
|
237
|
+
export type SetScreenBrightnessFail = ISetScreenBrightnessFail;
|
|
230
238
|
export type SetScreenBrightnessFailCallback = (result : SetScreenBrightnessFail) => void;
|
|
231
239
|
export type SetScreenBrightnessComplete = SetScreenBrightnessSuccess | SetScreenBrightnessFail;
|
|
232
240
|
export type SetScreenBrightnessCompleteCallback = (result : SetScreenBrightnessComplete) => void;
|
|
@@ -589,8 +597,10 @@ export type GetScreenBrightnessSuccess = {
|
|
|
589
597
|
*/
|
|
590
598
|
value : number
|
|
591
599
|
};
|
|
600
|
+
export interface IGetScreenBrightnessFail extends IUniError {
|
|
601
|
+
}
|
|
592
602
|
export type GetScreenBrightnessSuccessCallback = (result : GetScreenBrightnessSuccess) => void;
|
|
593
|
-
export type GetScreenBrightnessFail =
|
|
603
|
+
export type GetScreenBrightnessFail = IGetScreenBrightnessFail;
|
|
594
604
|
export type GetScreenBrightnessFailCallback = (result : GetScreenBrightnessFail) => void;
|
|
595
605
|
export type GetScreenBrightnessComplete = GetScreenBrightnessSuccess | GetScreenBrightnessFail;
|
|
596
606
|
export type GetScreenBrightnessCompleteCallback = (result : GetScreenBrightnessComplete) => void;
|
|
@@ -882,8 +892,10 @@ export type SetKeepScreenOnSuccess = {
|
|
|
882
892
|
*/
|
|
883
893
|
errMsg:string
|
|
884
894
|
};
|
|
895
|
+
export interface ISetKeepScreenOnFail extends IUniError {
|
|
896
|
+
}
|
|
885
897
|
export type SetKeepScreenOnSuccessCallback = (result : SetKeepScreenOnSuccess) => void;
|
|
886
|
-
export type SetKeepScreenOnFail =
|
|
898
|
+
export type SetKeepScreenOnFail = ISetKeepScreenOnFail;
|
|
887
899
|
export type SetKeepScreenOnFailCallback = (result : SetKeepScreenOnFail) => void;
|
|
888
900
|
export type SetKeepScreenOnComplete = SetKeepScreenOnSuccess | SetKeepScreenOnFail;
|
|
889
901
|
export type SetKeepScreenOnCompleteCallback = (result : SetKeepScreenOnComplete) => void;
|
|
@@ -4,7 +4,18 @@
|
|
|
4
4
|
VibrateShortSuccess as VibrateShortSuccessOrigin,
|
|
5
5
|
VibrateLongSuccess as VibrateLongSuccessOrigin,
|
|
6
6
|
VibrateErrorCode as VibrateErrorCodeOrigin,
|
|
7
|
-
|
|
7
|
+
IVibrateShortFail as IVibrateShortFailOrigin,
|
|
8
|
+
IVibrateLongFail as IVibrateLongFailOrigin,
|
|
9
|
+
VibrateShortFail as VibrateShortFailOrigin,
|
|
10
|
+
VibrateLongFail as VibrateLongFailOrigin,
|
|
11
|
+
VibrateShortSuccessCallback as VibrateShortSuccessCallbackOrigin,
|
|
12
|
+
VibrateLongSuccessCallback as VibrateLongSuccessCallbackOrigin,
|
|
13
|
+
VibrateShortFailCallback as VibrateShortFailCallbackOrigin,
|
|
14
|
+
VibrateLongFailCallback as VibrateLongFailCallbackOrigin,
|
|
15
|
+
VibrateShortComplete as VibrateShortCompleteOrigin,
|
|
16
|
+
VibrateLongComplete as VibrateLongCompleteOrigin,
|
|
17
|
+
VibrateShortCompleteCallback as VibrateShortCompleteCallbackOrigin,
|
|
18
|
+
VibrateLongCompleteCallback as VibrateLongCompleteCallbackOrigin,
|
|
8
19
|
VibrateShortOptions as VibrateShortOptionsOrigin,
|
|
9
20
|
VibrateLongOptions as VibrateLongOptionsOrigin,
|
|
10
21
|
VibrateShort as VibrateShortOrigin,
|
|
@@ -17,7 +28,18 @@
|
|
|
17
28
|
type VibrateShortSuccess = VibrateShortSuccessOrigin
|
|
18
29
|
type VibrateLongSuccess = VibrateLongSuccessOrigin
|
|
19
30
|
type VibrateErrorCode = VibrateErrorCodeOrigin
|
|
20
|
-
type
|
|
31
|
+
type IVibrateShortFail = IVibrateShortFailOrigin
|
|
32
|
+
type IVibrateLongFail = IVibrateLongFailOrigin
|
|
33
|
+
type VibrateShortFail = VibrateShortFailOrigin
|
|
34
|
+
type VibrateLongFail = VibrateLongFailOrigin
|
|
35
|
+
type VibrateShortSuccessCallback = VibrateShortSuccessCallbackOrigin
|
|
36
|
+
type VibrateLongSuccessCallback = VibrateLongSuccessCallbackOrigin
|
|
37
|
+
type VibrateShortFailCallback = VibrateShortFailCallbackOrigin
|
|
38
|
+
type VibrateLongFailCallback = VibrateLongFailCallbackOrigin
|
|
39
|
+
type VibrateShortComplete = VibrateShortCompleteOrigin
|
|
40
|
+
type VibrateLongComplete = VibrateLongCompleteOrigin
|
|
41
|
+
type VibrateShortCompleteCallback = VibrateShortCompleteCallbackOrigin
|
|
42
|
+
type VibrateLongCompleteCallback = VibrateLongCompleteCallbackOrigin
|
|
21
43
|
type VibrateShortOptions = VibrateShortOptionsOrigin
|
|
22
44
|
type VibrateLongOptions = VibrateLongOptionsOrigin
|
|
23
45
|
type VibrateShort = VibrateShortOrigin
|
|
@@ -4,7 +4,18 @@
|
|
|
4
4
|
VibrateShortSuccess,
|
|
5
5
|
VibrateLongSuccess,
|
|
6
6
|
VibrateErrorCode,
|
|
7
|
-
|
|
7
|
+
IVibrateShortFail,
|
|
8
|
+
IVibrateLongFail,
|
|
9
|
+
VibrateShortFail,
|
|
10
|
+
VibrateLongFail,
|
|
11
|
+
VibrateShortSuccessCallback,
|
|
12
|
+
VibrateLongSuccessCallback,
|
|
13
|
+
VibrateShortFailCallback,
|
|
14
|
+
VibrateLongFailCallback,
|
|
15
|
+
VibrateShortComplete,
|
|
16
|
+
VibrateLongComplete,
|
|
17
|
+
VibrateShortCompleteCallback,
|
|
18
|
+
VibrateLongCompleteCallback,
|
|
8
19
|
VibrateShortOptions,
|
|
9
20
|
VibrateLongOptions,
|
|
10
21
|
VibrateShort,
|
|
@@ -10,27 +10,36 @@ export type VibrateLongSuccess = {
|
|
|
10
10
|
|
|
11
11
|
export type VibrateErrorCode = 9001001 | 9001002 | 9001003
|
|
12
12
|
|
|
13
|
-
export interface
|
|
13
|
+
export interface IVibrateShortFail extends IUniError {
|
|
14
14
|
errCode : VibrateErrorCode
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
type
|
|
17
|
+
export interface IVibrateLongFail extends IUniError {
|
|
18
|
+
errCode : VibrateErrorCode
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type VibrateShortFail = IVibrateShortFail
|
|
22
|
+
export type VibrateLongFail = IVibrateLongFail
|
|
23
|
+
export type VibrateShortSuccessCallback = (result : VibrateShortSuccess) => void
|
|
24
|
+
export type VibrateLongSuccessCallback = (result : VibrateLongSuccess) => void
|
|
25
|
+
export type VibrateShortFailCallback = (result : VibrateShortFail) => void
|
|
26
|
+
export type VibrateLongFailCallback = (result : VibrateLongFail) => void
|
|
27
|
+
export type VibrateShortComplete = VibrateShortSuccess | VibrateShortFail
|
|
28
|
+
export type VibrateLongComplete = VibrateLongSuccess | VibrateLongFail
|
|
29
|
+
export type VibrateShortCompleteCallback = (result : VibrateShortComplete) => void
|
|
30
|
+
export type VibrateLongCompleteCallback = (result : VibrateLongComplete) => void
|
|
22
31
|
|
|
23
32
|
export type VibrateShortOptions = {
|
|
24
33
|
type : VibrateShortType,
|
|
25
34
|
success ?: VibrateShortSuccessCallback,
|
|
26
|
-
fail ?:
|
|
27
|
-
complete ?:
|
|
35
|
+
fail ?: VibrateShortFailCallback,
|
|
36
|
+
complete ?: VibrateShortCompleteCallback
|
|
28
37
|
}
|
|
29
38
|
|
|
30
39
|
export type VibrateLongOptions = {
|
|
31
40
|
success ?: VibrateLongSuccessCallback,
|
|
32
|
-
fail ?:
|
|
33
|
-
complete ?:
|
|
41
|
+
fail ?: VibrateLongFailCallback,
|
|
42
|
+
complete ?: VibrateLongCompleteCallback
|
|
34
43
|
}
|
|
35
44
|
|
|
36
45
|
export type VibrateShort = (options : VibrateShortOptions) => void
|
|
@@ -38,51 +47,153 @@ export type VibrateLong = (options : VibrateLongOptions) => void
|
|
|
38
47
|
|
|
39
48
|
export interface Uni {
|
|
40
49
|
/**
|
|
41
|
-
*
|
|
50
|
+
* 使设备发生短时间的振动。
|
|
51
|
+
*
|
|
52
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/vibrate.html#vibrateshort
|
|
53
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/vibrate.html#vibrateshort
|
|
54
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/vibrate.html#vibrateshort
|
|
42
55
|
*
|
|
43
56
|
* @uniPlatform {
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
57
|
+
* "app": {
|
|
58
|
+
* "android": {
|
|
59
|
+
* "osVer": "5.0",
|
|
60
|
+
* "uniVer": "√",
|
|
61
|
+
* "unixVer": "5.08"
|
|
62
|
+
* },
|
|
63
|
+
* "ios": {
|
|
64
|
+
* "osVer": "12.0",
|
|
65
|
+
* "uniVer": "√",
|
|
66
|
+
* "unixVer": "5.08"
|
|
67
|
+
* },
|
|
68
|
+
* "harmony": {
|
|
69
|
+
* "osVer": "5.0.0",
|
|
70
|
+
* "uniVer": "5.08",
|
|
71
|
+
* "unixVer": "5.08",
|
|
72
|
+
* "unixvVer": "5.08"
|
|
73
|
+
* }
|
|
74
|
+
* },
|
|
75
|
+
* "web": {
|
|
76
|
+
* "uniVer": "√",
|
|
77
|
+
* "unixVer": "x"
|
|
78
|
+
* },
|
|
79
|
+
* "mp":{
|
|
80
|
+
* "weixin": {
|
|
81
|
+
* "hostVer": "√",
|
|
82
|
+
* "uniVer": "√",
|
|
83
|
+
* "unixVer": "4.41"
|
|
84
|
+
* },
|
|
85
|
+
* "alipay": {
|
|
86
|
+
* "hostVer": "√",
|
|
87
|
+
* "uniVer": "√",
|
|
88
|
+
* "unixVer": "x"
|
|
89
|
+
* },
|
|
90
|
+
* "baidu": {
|
|
91
|
+
* "hostVer": "√",
|
|
92
|
+
* "uniVer": "√",
|
|
93
|
+
* "unixVer": "x"
|
|
94
|
+
* },
|
|
95
|
+
* "toutiao": {
|
|
96
|
+
* "hostVer": "x",
|
|
97
|
+
* "uniVer": "x",
|
|
98
|
+
* "unixVer": "x"
|
|
99
|
+
* },
|
|
100
|
+
* "lark": {
|
|
101
|
+
* "hostVer": "x",
|
|
102
|
+
* "uniVer": "x",
|
|
103
|
+
* "unixVer": "x"
|
|
104
|
+
* },
|
|
105
|
+
* "qq": {
|
|
106
|
+
* "hostVer": "x",
|
|
107
|
+
* "uniVer": "x",
|
|
108
|
+
* "unixVer": "x"
|
|
109
|
+
* },
|
|
110
|
+
* "kuaishou": {
|
|
111
|
+
* "hostVer": "√",
|
|
112
|
+
* "uniVer": "√",
|
|
113
|
+
* "unixVer": "x"
|
|
114
|
+
* },
|
|
115
|
+
* "jd": {
|
|
116
|
+
* "hostVer": "x",
|
|
117
|
+
* "uniVer": "x",
|
|
118
|
+
* "unixVer": "x"
|
|
119
|
+
* }
|
|
120
|
+
* }
|
|
61
121
|
* }
|
|
62
122
|
*/
|
|
63
123
|
vibrateShort(options : VibrateShortOptions) : void
|
|
64
124
|
/**
|
|
65
|
-
*
|
|
125
|
+
* 使设备发生长时间的振动。
|
|
126
|
+
*
|
|
127
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/vibrate.html#vibratelong
|
|
128
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/vibrate.html#vibratelong
|
|
129
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/vibrate.html#vibratelong
|
|
66
130
|
*
|
|
67
131
|
* @uniPlatform {
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
132
|
+
* "app": {
|
|
133
|
+
* "android": {
|
|
134
|
+
* "osVer": "5.0",
|
|
135
|
+
* "uniVer": "√",
|
|
136
|
+
* "unixVer": "5.08"
|
|
137
|
+
* },
|
|
138
|
+
* "ios": {
|
|
139
|
+
* "osVer": "12.0",
|
|
140
|
+
* "uniVer": "√",
|
|
141
|
+
* "unixVer": "5.08"
|
|
142
|
+
* },
|
|
143
|
+
* "harmony": {
|
|
144
|
+
* "osVer": "5.0.0",
|
|
145
|
+
* "uniVer": "5.08",
|
|
146
|
+
* "unixVer": "5.08",
|
|
147
|
+
* "unixvVer": "5.08"
|
|
148
|
+
* }
|
|
149
|
+
* },
|
|
150
|
+
* "web": {
|
|
151
|
+
* "uniVer": "√",
|
|
152
|
+
* "unixVer": "x"
|
|
153
|
+
* },
|
|
154
|
+
* "mp":{
|
|
155
|
+
* "weixin": {
|
|
156
|
+
* "hostVer": "√",
|
|
157
|
+
* "uniVer": "√",
|
|
158
|
+
* "unixVer": "4.41"
|
|
159
|
+
* },
|
|
160
|
+
* "alipay": {
|
|
161
|
+
* "hostVer": "√",
|
|
162
|
+
* "uniVer": "√",
|
|
163
|
+
* "unixVer": "x"
|
|
164
|
+
* },
|
|
165
|
+
* "baidu": {
|
|
166
|
+
* "hostVer": "√",
|
|
167
|
+
* "uniVer": "√",
|
|
168
|
+
* "unixVer": "x"
|
|
169
|
+
* },
|
|
170
|
+
* "toutiao": {
|
|
171
|
+
* "hostVer": "x",
|
|
172
|
+
* "uniVer": "x",
|
|
173
|
+
* "unixVer": "x"
|
|
174
|
+
* },
|
|
175
|
+
* "lark": {
|
|
176
|
+
* "hostVer": "x",
|
|
177
|
+
* "uniVer": "x",
|
|
178
|
+
* "unixVer": "x"
|
|
179
|
+
* },
|
|
180
|
+
* "qq": {
|
|
181
|
+
* "hostVer": "x",
|
|
182
|
+
* "uniVer": "x",
|
|
183
|
+
* "unixVer": "x"
|
|
184
|
+
* },
|
|
185
|
+
* "kuaishou": {
|
|
186
|
+
* "hostVer": "√",
|
|
187
|
+
* "uniVer": "√",
|
|
188
|
+
* "unixVer": "x"
|
|
189
|
+
* },
|
|
190
|
+
* "jd": {
|
|
191
|
+
* "hostVer": "x",
|
|
192
|
+
* "uniVer": "x",
|
|
193
|
+
* "unixVer": "x"
|
|
194
|
+
* }
|
|
195
|
+
* }
|
|
85
196
|
* }
|
|
86
197
|
*/
|
|
87
198
|
vibrateLong(options : VibrateLongOptions) : void
|
|
88
|
-
}
|
|
199
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference path='./lib/uni-accelerometer/utssdk/global.d.ts' />
|
|
2
|
+
/// <reference path='./lib/uni-ad-dom2/utssdk/global.d.ts' />
|
|
2
3
|
/// <reference path='./lib/uni-ad/utssdk/global.d.ts' />
|
|
3
4
|
/// <reference path='./lib/uni-authentication/utssdk/global.d.ts' />
|
|
4
5
|
/// <reference path='./lib/uni-calendar/utssdk/global.d.ts' />
|
|
@@ -9,7 +10,7 @@
|
|
|
9
10
|
/// <reference path='./lib/uni-live-player/utssdk/global.d.ts' />
|
|
10
11
|
/// <reference path='./lib/uni-live-pusher/utssdk/global.d.ts' />
|
|
11
12
|
/// <reference path='./lib/uni-map-tencent/utssdk/global.d.ts' />
|
|
12
|
-
/// <reference path='./lib/uni-
|
|
13
|
+
/// <reference path='./lib/uni-memory/utssdk/global.d.ts' />
|
|
13
14
|
/// <reference path='./lib/uni-phoneContact/utssdk/global.d.ts' />
|
|
14
15
|
/// <reference path='./lib/uni-push-fcm/utssdk/global.d.ts' />
|
|
15
16
|
/// <reference path='./lib/uni-push-gp/utssdk/global.d.ts' />
|