@dcloudio/uni-app-x 0.7.37 → 0.7.39

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.
Files changed (126) hide show
  1. package/package.json +1 -1
  2. package/types/UniPage.d.ts +48 -9
  3. package/types/app.d.ts +8 -5
  4. package/types/native/AsyncApiResult.d.ts +1 -0
  5. package/types/native/CanvasRenderingContext2D.d.ts +1 -1
  6. package/types/native/IUniElement.d.ts +130 -35
  7. package/types/native/UniElement.d.ts +2 -1
  8. package/types/native/UniTextElement.d.ts +1 -0
  9. package/types/native/global.d.ts +16 -0
  10. package/types/page.d.ts +47 -5
  11. package/types/uni/env/index.d.ts +87 -73
  12. package/types/uni/global.d.ts +1 -0
  13. package/types/uni/index.d.ts +1 -0
  14. package/types/uni/uni-map-tencent-global.d.ts +33 -0
  15. package/types/uni/uni-map-tencent-map.d.ts +52 -0
  16. package/types/uni/uts-plugin-api/global.d.ts +2 -1
  17. package/types/uni/uts-plugin-api/index.d.ts +2 -1
  18. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +0 -2
  19. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +0 -1
  20. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +212 -219
  21. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +73 -73
  22. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +331 -205
  23. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +73 -73
  24. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +848 -208
  25. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-chooseLocation/utssdk/global.d.ts +5 -6
  26. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-chooseLocation/utssdk/index.d.ts +3 -3
  27. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +414 -0
  28. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +2 -2
  29. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +4 -0
  30. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +2 -0
  31. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1226 -1726
  32. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +1 -1
  33. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +102 -18
  34. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +2 -2
  35. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1199 -1045
  36. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +294 -263
  37. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +33 -28
  38. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +210 -0
  39. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +4828 -1750
  40. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +490 -448
  41. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2138 -829
  42. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +4 -0
  43. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +2 -0
  44. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +664 -114
  45. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +891 -9
  46. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +3 -3
  47. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +254 -114
  48. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +152 -12
  49. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +813 -57
  50. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +0 -2
  51. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +0 -45
  52. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +274 -148
  53. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +38 -3
  54. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +969 -969
  55. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +3161 -43
  56. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +316 -22
  57. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +2 -2
  58. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +42 -0
  59. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +41 -41
  60. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +88 -88
  61. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +8 -0
  62. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +4 -0
  63. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +2765 -1193
  64. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +18 -18
  65. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +3098 -1153
  66. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +13 -13
  67. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +42 -0
  68. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +10 -10
  69. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +621 -369
  70. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/global.d.ts +8 -0
  71. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/index.d.ts +4 -0
  72. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/interface.d.ts +1 -0
  73. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +540 -253
  74. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2602 -1131
  75. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +2 -2
  76. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +58 -58
  77. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +77 -35
  78. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +42 -0
  79. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/global.d.ts +4 -0
  80. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/index.d.ts +2 -0
  81. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +614 -15
  82. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +857 -437
  83. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +58 -16
  84. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +8 -0
  85. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +4 -0
  86. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1057 -516
  87. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +1656 -1488
  88. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1752 -786
  89. package/types/uni/uts-plugin-biz/global.d.ts +1 -0
  90. package/types/uni/uts-plugin-biz/index.d.ts +1 -0
  91. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +85 -1
  92. package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/interface.d.ts +46 -46
  93. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +72 -20
  94. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +126 -0
  95. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +4 -0
  96. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +2 -0
  97. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +98 -15
  98. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +677 -299
  99. package/types/uni/uts-plugin-extend/README.md +3 -0
  100. package/types/uni/uts-plugin-extend/global.d.ts +1 -0
  101. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/global.d.ts +7 -0
  102. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/index.d.ts +0 -0
  103. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/interface.d.ts +3 -0
  104. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +4 -4
  105. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +5 -5
  106. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +302 -302
  107. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +77 -77
  108. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +431 -11
  109. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  110. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +6 -6
  111. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +2 -2
  112. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +73 -73
  113. package/types/uni-cloud/interface.d.ts +91 -0
  114. package/uts-plugin.d.ts +3 -1
  115. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +0 -151
  116. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +0 -11
  117. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +0 -4
  118. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +0 -224
  119. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +0 -53
  120. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +0 -25
  121. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +0 -487
  122. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +0 -9
  123. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +0 -1
  124. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +0 -165
  125. /package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/global.d.ts +0 -0
  126. /package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/index.d.ts +0 -0
@@ -1,455 +1,497 @@
1
1
  export interface Uni {
2
- /**
3
- * 获取 APP 授权设置。
4
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/system/getappauthorizesetting.html
5
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-app-authorize-setting.html
6
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app-authorize-setting.html
7
- * @uniPlatform
8
- * {
9
- * "app": {
10
- * "android": {
11
- * "osVer": "5.0",
12
- * "uniVer": "√",
13
- * "unixVer": "3.9+"
14
- * },
15
- * "ios": {
16
- * "osVer": "12.0",
17
- * "uniVer": "√",
18
- * "unixVer": "4.11"
19
- * },
20
- * "harmony": {
21
- * "osVer": "3.0",
22
- * "uniVer": "4.31",
23
- * "unixVer": "x"
24
- * }
25
- * },
26
- * "web": {
27
- * "uniVer": "x",
28
- * "unixVer": "x"
29
- * }
30
- * }
31
- * @example
32
- ```typescript
33
- uni.getAppAuthorizeSetting()
34
- ```
35
- */
36
- getAppAuthorizeSetting(): GetAppAuthorizeSettingResult;
2
+ /**
3
+ * 获取 APP 授权设置。
4
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/system/getappauthorizesetting.html
5
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-app-authorize-setting.html
6
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app-authorize-setting.html
7
+ * @uniPlatform
8
+ * {
9
+ * "app": {
10
+ * "android": {
11
+ * "osVer": "5.0",
12
+ * "uniVer": "√",
13
+ * "unixVer": "3.9+"
14
+ * },
15
+ * "ios": {
16
+ * "osVer": "12.0",
17
+ * "uniVer": "√",
18
+ * "unixVer": "4.11"
19
+ * },
20
+ * "harmony": {
21
+ * "osVer": "3.0",
22
+ * "uniVer": "4.31",
23
+ * "unixVer": "x"
24
+ * }
25
+ * },
26
+ * "mp": {
27
+ * "weixin": {
28
+ * "hostVer": "",
29
+ * "uniVer": "√",
30
+ * "unixVer": "4.41"
31
+ * },
32
+ * "alipay": {
33
+ * "hostVer": "√",
34
+ * "uniVer": "√",
35
+ * "unixVer": "x"
36
+ * },
37
+ * "baidu": {
38
+ * "hostVer": "√",
39
+ * "uniVer": "√",
40
+ * "unixVer": "x"
41
+ * },
42
+ * "toutiao": {
43
+ * "hostVer": "√",
44
+ * "uniVer": "√",
45
+ * "unixVer": "x"
46
+ * },
47
+ * "lark": {
48
+ * "hostVer": "√",
49
+ * "uniVer": "√",
50
+ * "unixVer": "x"
51
+ * },
52
+ * "qq": {
53
+ * "hostVer": "√",
54
+ * "uniVer": "√",
55
+ * "unixVer": "x"
56
+ * },
57
+ * "kuaishou": {
58
+ * "hostVer": "√",
59
+ * "uniVer": "√",
60
+ * "unixVer": "x"
61
+ * },
62
+ * "jd": {
63
+ * "hostVer": "√",
64
+ * "uniVer": "√",
65
+ * "unixVer": "x"
66
+ * }
67
+ * },
68
+ * "web": {
69
+ * "uniVer": "x",
70
+ * "unixVer": "x"
71
+ * }
72
+ * }
73
+ * @example
74
+ ```typescript
75
+ uni.getAppAuthorizeSetting()
76
+ ```
77
+ */
78
+ getAppAuthorizeSetting(): GetAppAuthorizeSettingResult;
37
79
  }
38
80
 
39
81
 
40
82
  export type GetAppAuthorizeSetting = () => GetAppAuthorizeSettingResult;
41
83
  export type GetAppAuthorizeSettingResult = {
42
- /**
43
- * 允许 App 使用相册的开关
44
- *
45
- * @uniPlatform
46
- * {
47
- * "app": {
48
- * "android": {
49
- * "osVer": "5.0",
50
- * "uniVer": "x",
51
- * "unixVer": "4.25"
52
- * },
53
- * "ios": {
54
- * "osVer": "12.0",
55
- * "uniVer": "√",
56
- * "unixVer": "4.11"
57
- * }
58
- * }
59
- * }
60
- */
61
- albumAuthorized :
62
- /**
63
- * 已经获得授权,无需再次请求授权
64
- */
65
- 'authorized' |
66
- /**
67
- * 请求授权被拒绝,无法再次请求授权。Android平台:需要申请相册相关权限;iOS平台:此情况需要引导用户打开系统设置,在设置页中打开权限
68
- */
69
- 'denied' |
70
- /**
71
- * 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
72
- */
73
- 'not determined' |
74
- /**
75
- * Android平台:表示没有配置[相册相关权限](https://doc.dcloud.net.cn/uni-app-x/native/permission/android_permission_adapter.html),[权限配置详情](https://uniapp.dcloud.net.cn/tutorial/app-nativeresource-android.html#permissions);iOS平台:当前应用没有配置相册权限描述
76
- */
77
- 'config error',
78
- /**
79
- * 允许 App 使用蓝牙的开关
80
- *
81
- * @uniPlatform
82
- * {
83
- * "app": {
84
- * "android": {
85
- * "osVer": "5.0",
86
- * "uniVer": "x",
87
- * "unixVer": "4.25"
88
- * },
89
- * "ios": {
90
- * "osVer": "12.0",
91
- * "uniVer": "√",
92
- * "unixVer": "4.11"
93
- * }
94
- * }
95
- * }
96
- */
97
- bluetoothAuthorized :
98
- /**
99
- * 已经获得授权,无需再次请求授权
100
- */
101
- 'authorized' |
102
- /**
103
- * 请求授权被拒绝,无法再次请求授权。Android平台:需要申请相册相关权限;iOS平台:此情况需要引导用户打开系统设置,在设置页中打开权限
104
- */
105
- 'denied' |
106
- /**
107
- * 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
108
- */
109
- 'not determined' |
110
- /**
111
- * Android平台:表示没有配置[蓝牙相关权限](https://doc.dcloud.net.cn/uni-app-x/native/permission/android_permission_adapter.html),[权限配置详情](https://uniapp.dcloud.net.cn/tutorial/app-nativeresource-android.html#permissions);iOS平台:当前应用没有配置蓝牙权限描述
112
- */
113
- 'config error',
114
- /**
115
- * 允许 App 使用摄像头的开关
116
- *
117
- * @uniPlatform
118
- * {
119
- * "app": {
120
- * "android": {
121
- * "osVer": "4.4",
122
- * "uniVer": "√",
123
- * "unixVer": "3.9"
124
- * },
125
- * "ios": {
126
- * "osVer": "12.0",
127
- * "uniVer": "√",
128
- * "unixVer": "4.11"
129
- * }
130
- * }
131
- * }
132
- */
133
- cameraAuthorized:
134
- /**
135
- * 已经获得授权,无需再次请求授权
136
- */
137
- 'authorized' |
138
- /**
139
- * 请求授权被拒绝,无法再次请求授权。Android平台:需要申请相册相关权限;iOS平台:此情况需要引导用户打开系统设置,在设置页中打开权限
140
- */
141
- 'denied' |
142
- /**
143
- * 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
144
- */
145
- 'not determined' |
146
- /**
147
- * Android平台:表示没有配置 `android.permission.CAMERA` 权限,[权限配置详情](https://uniapp.dcloud.net.cn/tutorial/app-nativeresource-android.html#permissions);iOS平台:当前应用没有配置相机权限描述
148
- */
149
- 'config error',
150
- /**
151
- * 允许 App 使用定位的开关
152
- *
153
- * @uniPlatform
154
- * {
155
- * "app": {
156
- * "android": {
157
- * "osVer": "4.4",
158
- * "uniVer": "√",
159
- * "unixVer": "3.9"
160
- * },
161
- * "ios": {
162
- * "osVer": "12.0",
163
- * "uniVer": "√",
164
- * "unixVer": "4.11"
165
- * }
166
- * }
167
- * }
168
- */
169
- locationAuthorized:
170
- /**
171
- * 已经获得授权,无需再次请求授权
172
- */
173
- 'authorized' |
174
- /**
175
- * 请求授权被拒绝,无法再次请求授权。Android平台:需要申请相册相关权限;iOS平台:此情况需要引导用户打开系统设置,在设置页中打开权限
176
- */
177
- 'denied' |
178
- /**
179
- * 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
180
- */
181
- 'not determined' |
182
- /**
183
- * Android平台:表示没有配置 `android.permission.ACCESS_COARSE_LOCATION` 权限,[权限配置详情](https://uniapp.dcloud.net.cn/tutorial/app-nativeresource-android.html#permissions);iOS平台:当前应用没有配置定位权限描述
184
- */
185
- 'config error',
186
- /**
187
- * 定位准确度。
188
- *
189
- * @uniPlatform
190
- * {
191
- * "app": {
192
- * "android": {
193
- * "osVer": "4.4",
194
- * "uniVer": "√",
195
- * "unixVer": "3.9"
196
- * },
197
- * "ios": {
198
- * "osVer": "12.0",
199
- * "uniVer": "√",
200
- * "unixVer": "4.11"
201
- * }
202
- * }
203
- * }
204
- */
205
- locationAccuracy?:
206
- /**
207
- * 模糊定位
208
- */
209
- 'reduced' |
210
- /**
211
- * 精准定位
212
- */
213
- 'full' |
214
- /**
215
- * 不支持(包括用户拒绝定位权限和没有包含定位权限描述)
216
- */
217
- 'unsupported' | null,
218
- /**
219
- * 定位准确度(推荐使用 locationAccuracy 属性)。true 表示模糊定位,false 表示精确定位(仅 iOS 支持)
220
- * @type boolean
221
- * @uniPlatform
222
- * {
223
- * "app": {
224
- * "android": {
225
- * "osVer": "x",
226
- * "uniVer": "x",
227
- * "unixVer": "x"
228
- * },
229
- * "ios": {
230
- * "osVer": "12.0",
231
- * "uniVer": "√",
232
- * "unixVer": "4.11"
233
- * }
234
- * }
235
- * }
236
- */
237
- locationReducedAccuracy?: boolean | null,
238
- /**
239
- * 允许 App 使用麦克风的开关
240
- *
241
- * @uniPlatform
242
- * {
243
- * "app": {
244
- * "android": {
245
- * "osVer": "4.4",
246
- * "uniVer": "√",
247
- * "unixVer": "3.9"
248
- * },
249
- * "ios": {
250
- * "osVer": "12.0",
251
- * "uniVer": "√",
252
- * "unixVer": "4.11"
253
- * }
254
- * }
255
- * }
256
- */
257
- microphoneAuthorized:
258
- /**
259
- * 已经获得授权,无需再次请求授权
260
- */
261
- 'authorized' |
262
- /**
263
- * 请求授权被拒绝,无法再次请求授权。Android平台:需要申请相册相关权限;iOS平台:此情况需要引导用户打开系统设置,在设置页中打开权限
264
- */
265
- 'denied' |
266
- /**
267
- * 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
268
- */
269
- 'not determined' |
270
- /**
271
- * Android平台:表示没有配置 `android.permission.RECORD_AUDIO` 权限,[权限配置详情](https://uniapp.dcloud.net.cn/tutorial/app-nativeresource-android.html#permissions);iOS平台:当前应用没有配置麦克风权限描述
272
- */
273
- 'config error',
274
- /**
275
- * 允许 App 通知的开关
276
- *
277
- * @uniPlatform
278
- * {
279
- * "app": {
280
- * "android": {
281
- * "osVer": "4.4",
282
- * "uniVer": "√",
283
- * "unixVer": "3.9"
284
- * },
285
- * "ios": {
286
- * "osVer": "12.0",
287
- * "uniVer": "√",
288
- * "unixVer": "4.11"
289
- * }
290
- * }
291
- * }
292
- */
293
- notificationAuthorized:
294
- /**
295
- * 已经获得授权,无需再次请求授权
296
- */
297
- 'authorized' |
298
- /**
299
- * 请求授权被拒绝,无法再次请求授权。Android平台:需要申请相册相关权限;iOS平台:此情况需要引导用户打开系统设置,在设置页中打开权限
300
- */
301
- 'denied' |
302
- /**
303
- * 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
304
- */
305
- 'not determined' |
306
- /**
307
- * Android平台没有该值;iOS平台:没有包含推送权限描述
308
- */
309
- 'config error',
310
- /**
311
- * 允许 App 通知带有提醒的开关(仅 iOS 支持)
312
- *
313
- * @uniPlatform
314
- * {
315
- * "app": {
316
- * "android": {
317
- * "osVer": "x",
318
- * "uniVer": "x",
319
- * "unixVer": "x"
320
- * },
321
- * "ios": {
322
- * "osVer": "12.0",
323
- * "uniVer": "√",
324
- * "unixVer": "4.11"
325
- * }
326
- * }
327
- * }
328
- */
329
- notificationAlertAuthorized?:
330
- /**
331
- * 已经获得授权,无需再次请求授权
332
- */
333
- 'authorized' |
334
- /**
335
- * 请求授权被拒绝,无法再次请求授权。Android平台:需要申请相册相关权限;iOS平台:此情况需要引导用户打开系统设置,在设置页中打开权限
336
- */
337
- 'denied' |
338
- /**
339
- * 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
340
- */
341
- 'not determined' |
342
- /**
343
- * 当前应用没有配置推送权限描述
344
- */
345
- 'config error' | null,
346
- /**
347
- * 允许 App 通知带有标记的开关(仅 iOS 支持)
348
- *
349
- * @uniPlatform
350
- * {
351
- * "app": {
352
- * "android": {
353
- * "osVer": "x",
354
- * "uniVer": "x",
355
- * "unixVer": "x"
356
- * },
357
- * "ios": {
358
- * "osVer": "12.0",
359
- * "uniVer": "√",
360
- * "unixVer": "4.11"
361
- * }
362
- * }
363
- * }
364
- */
365
- notificationBadgeAuthorized?:
366
- /**
367
- * 已经获得授权,无需再次请求授权
368
- */
369
- 'authorized' |
370
- /**
371
- * 请求授权被拒绝,无法再次请求授权。Android平台:需要申请相册相关权限;iOS平台:此情况需要引导用户打开系统设置,在设置页中打开权限
372
- */
373
- 'denied' |
374
- /**
375
- * 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
376
- */
377
- 'not determined' |
378
- /**
379
- * 当前应用没有配置推送权限描述
380
- */
381
- 'config error' | null,
382
- /**
383
- * 允许 App 通知带有声音的开关(仅 iOS 支持)
384
- *
385
- * @uniPlatform
386
- * {
387
- * "app": {
388
- * "android": {
389
- * "osVer": "x",
390
- * "uniVer": "x",
391
- * "unixVer": "x"
392
- * },
393
- * "ios": {
394
- * "osVer": "12.0",
395
- * "uniVer": "√",
396
- * "unixVer": "4.11"
397
- * }
398
- * }
399
- * }
400
- */
401
- notificationSoundAuthorized?:
402
- /**
403
- * 已经获得授权,无需再次请求授权
404
- */
405
- 'authorized' |
406
- /**
407
- * 请求授权被拒绝,无法再次请求授权。Android平台:需要申请相册相关权限;iOS平台:此情况需要引导用户打开系统设置,在设置页中打开权限
408
- */
409
- 'denied' |
410
- /**
411
- * 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
412
- */
413
- 'not determined' |
414
- /**
415
- * 当前应用没有配置推送权限描述
416
- */
417
- 'config error' | null,
418
- /**
419
- * 允许读写日历的开关(仅微信小程序支持)
420
- *
421
- * @uniPlatform
422
- * {
423
- * "app": {
424
- * "android": {
425
- * "osVer": "x",
426
- * "uniVer": "x",
427
- * "unixVer": "x"
428
- * },
429
- * "ios": {
430
- * "osVer": "x",
431
- * "uniVer": "x",
432
- * "unixVer": "x"
433
- * },
434
- * "harmony": {
435
- * "osVer": "x",
436
- * "uniVer": "x",
437
- * "unixVer": "x"
438
- * }
439
- * }
440
- * }
441
- */
442
- phoneCalendarAuthorized?:
443
- /**
444
- * 已经获得授权,无需再次请求授权
445
- */
446
- 'authorized' |
447
- /**
448
- * 请求授权被拒绝,无法再次请求授权;(此情况需要引导用户打开系统设置,在设置页中打开权限)
449
- */
450
- 'denied' |
451
- /**
452
- * 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
453
- */
454
- 'not determined' | null
84
+ /**
85
+ * 允许 App 使用相册的开关
86
+ *
87
+ * @uniPlatform
88
+ * {
89
+ * "app": {
90
+ * "android": {
91
+ * "osVer": "5.0",
92
+ * "uniVer": "x",
93
+ * "unixVer": "4.25"
94
+ * },
95
+ * "ios": {
96
+ * "osVer": "12.0",
97
+ * "uniVer": "√",
98
+ * "unixVer": "4.11"
99
+ * }
100
+ * }
101
+ * }
102
+ */
103
+ albumAuthorized:
104
+ /**
105
+ * 已经获得授权,无需再次请求授权
106
+ */
107
+ 'authorized' |
108
+ /**
109
+ * 请求授权被拒绝,无法再次请求授权。Android平台:需要申请相册相关权限;iOS平台:此情况需要引导用户打开系统设置,在设置页中打开权限
110
+ */
111
+ 'denied' |
112
+ /**
113
+ * 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
114
+ */
115
+ 'not determined' |
116
+ /**
117
+ * Android平台:表示没有配置[相册相关权限](https://doc.dcloud.net.cn/uni-app-x/native/permission/android_permission_adapter.html),[权限配置详情](https://uniapp.dcloud.net.cn/tutorial/app-nativeresource-android.html#permissions);iOS平台:当前应用没有配置相册权限描述
118
+ */
119
+ 'config error',
120
+ /**
121
+ * 允许 App 使用蓝牙的开关
122
+ *
123
+ * @uniPlatform
124
+ * {
125
+ * "app": {
126
+ * "android": {
127
+ * "osVer": "5.0",
128
+ * "uniVer": "x",
129
+ * "unixVer": "4.25"
130
+ * },
131
+ * "ios": {
132
+ * "osVer": "12.0",
133
+ * "uniVer": "√",
134
+ * "unixVer": "4.11"
135
+ * }
136
+ * }
137
+ * }
138
+ */
139
+ bluetoothAuthorized:
140
+ /**
141
+ * 已经获得授权,无需再次请求授权
142
+ */
143
+ 'authorized' |
144
+ /**
145
+ * 请求授权被拒绝,无法再次请求授权。Android平台:需要申请相册相关权限;iOS平台:此情况需要引导用户打开系统设置,在设置页中打开权限
146
+ */
147
+ 'denied' |
148
+ /**
149
+ * 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
150
+ */
151
+ 'not determined' |
152
+ /**
153
+ * Android平台:表示没有配置[蓝牙相关权限](https://doc.dcloud.net.cn/uni-app-x/native/permission/android_permission_adapter.html),[权限配置详情](https://uniapp.dcloud.net.cn/tutorial/app-nativeresource-android.html#permissions);iOS平台:当前应用没有配置蓝牙权限描述
154
+ */
155
+ 'config error',
156
+ /**
157
+ * 允许 App 使用摄像头的开关
158
+ *
159
+ * @uniPlatform
160
+ * {
161
+ * "app": {
162
+ * "android": {
163
+ * "osVer": "4.4",
164
+ * "uniVer": "√",
165
+ * "unixVer": "3.9"
166
+ * },
167
+ * "ios": {
168
+ * "osVer": "12.0",
169
+ * "uniVer": "√",
170
+ * "unixVer": "4.11"
171
+ * }
172
+ * }
173
+ * }
174
+ */
175
+ cameraAuthorized:
176
+ /**
177
+ * 已经获得授权,无需再次请求授权
178
+ */
179
+ 'authorized' |
180
+ /**
181
+ * 请求授权被拒绝,无法再次请求授权。Android平台:需要申请相册相关权限;iOS平台:此情况需要引导用户打开系统设置,在设置页中打开权限
182
+ */
183
+ 'denied' |
184
+ /**
185
+ * 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
186
+ */
187
+ 'not determined' |
188
+ /**
189
+ * Android平台:表示没有配置 `android.permission.CAMERA` 权限,[权限配置详情](https://uniapp.dcloud.net.cn/tutorial/app-nativeresource-android.html#permissions);iOS平台:当前应用没有配置相机权限描述
190
+ */
191
+ 'config error',
192
+ /**
193
+ * 允许 App 使用定位的开关
194
+ *
195
+ * @uniPlatform
196
+ * {
197
+ * "app": {
198
+ * "android": {
199
+ * "osVer": "4.4",
200
+ * "uniVer": "√",
201
+ * "unixVer": "3.9"
202
+ * },
203
+ * "ios": {
204
+ * "osVer": "12.0",
205
+ * "uniVer": "√",
206
+ * "unixVer": "4.11"
207
+ * }
208
+ * }
209
+ * }
210
+ */
211
+ locationAuthorized:
212
+ /**
213
+ * 已经获得授权,无需再次请求授权
214
+ */
215
+ 'authorized' |
216
+ /**
217
+ * 请求授权被拒绝,无法再次请求授权。Android平台:需要申请相册相关权限;iOS平台:此情况需要引导用户打开系统设置,在设置页中打开权限
218
+ */
219
+ 'denied' |
220
+ /**
221
+ * 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
222
+ */
223
+ 'not determined' |
224
+ /**
225
+ * Android平台:表示没有配置 `android.permission.ACCESS_COARSE_LOCATION` 权限,[权限配置详情](https://uniapp.dcloud.net.cn/tutorial/app-nativeresource-android.html#permissions);iOS平台:当前应用没有配置定位权限描述
226
+ */
227
+ 'config error',
228
+ /**
229
+ * 定位准确度。
230
+ *
231
+ * @uniPlatform
232
+ * {
233
+ * "app": {
234
+ * "android": {
235
+ * "osVer": "4.4",
236
+ * "uniVer": "√",
237
+ * "unixVer": "3.9"
238
+ * },
239
+ * "ios": {
240
+ * "osVer": "12.0",
241
+ * "uniVer": "√",
242
+ * "unixVer": "4.11"
243
+ * }
244
+ * }
245
+ * }
246
+ */
247
+ locationAccuracy?:
248
+ /**
249
+ * 模糊定位
250
+ */
251
+ 'reduced' |
252
+ /**
253
+ * 精准定位
254
+ */
255
+ 'full' |
256
+ /**
257
+ * 不支持(包括用户拒绝定位权限和没有包含定位权限描述)
258
+ */
259
+ 'unsupported' | null,
260
+ /**
261
+ * 定位准确度(推荐使用 locationAccuracy 属性)。true 表示模糊定位,false 表示精确定位(仅 iOS 支持)
262
+ * @type boolean
263
+ * @uniPlatform
264
+ * {
265
+ * "app": {
266
+ * "android": {
267
+ * "osVer": "x",
268
+ * "uniVer": "x",
269
+ * "unixVer": "x"
270
+ * },
271
+ * "ios": {
272
+ * "osVer": "12.0",
273
+ * "uniVer": "√",
274
+ * "unixVer": "4.11"
275
+ * }
276
+ * }
277
+ * }
278
+ */
279
+ locationReducedAccuracy?: boolean | null,
280
+ /**
281
+ * 允许 App 使用麦克风的开关
282
+ *
283
+ * @uniPlatform
284
+ * {
285
+ * "app": {
286
+ * "android": {
287
+ * "osVer": "4.4",
288
+ * "uniVer": "√",
289
+ * "unixVer": "3.9"
290
+ * },
291
+ * "ios": {
292
+ * "osVer": "12.0",
293
+ * "uniVer": "√",
294
+ * "unixVer": "4.11"
295
+ * }
296
+ * }
297
+ * }
298
+ */
299
+ microphoneAuthorized:
300
+ /**
301
+ * 已经获得授权,无需再次请求授权
302
+ */
303
+ 'authorized' |
304
+ /**
305
+ * 请求授权被拒绝,无法再次请求授权。Android平台:需要申请相册相关权限;iOS平台:此情况需要引导用户打开系统设置,在设置页中打开权限
306
+ */
307
+ 'denied' |
308
+ /**
309
+ * 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
310
+ */
311
+ 'not determined' |
312
+ /**
313
+ * Android平台:表示没有配置 `android.permission.RECORD_AUDIO` 权限,[权限配置详情](https://uniapp.dcloud.net.cn/tutorial/app-nativeresource-android.html#permissions);iOS平台:当前应用没有配置麦克风权限描述
314
+ */
315
+ 'config error',
316
+ /**
317
+ * 允许 App 通知的开关
318
+ *
319
+ * @uniPlatform
320
+ * {
321
+ * "app": {
322
+ * "android": {
323
+ * "osVer": "4.4",
324
+ * "uniVer": "√",
325
+ * "unixVer": "3.9"
326
+ * },
327
+ * "ios": {
328
+ * "osVer": "12.0",
329
+ * "uniVer": "√",
330
+ * "unixVer": "4.11"
331
+ * }
332
+ * }
333
+ * }
334
+ */
335
+ notificationAuthorized:
336
+ /**
337
+ * 已经获得授权,无需再次请求授权
338
+ */
339
+ 'authorized' |
340
+ /**
341
+ * 请求授权被拒绝,无法再次请求授权。Android平台:需要申请相册相关权限;iOS平台:此情况需要引导用户打开系统设置,在设置页中打开权限
342
+ */
343
+ 'denied' |
344
+ /**
345
+ * 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
346
+ */
347
+ 'not determined' |
348
+ /**
349
+ * Android平台没有该值;iOS平台:没有包含推送权限描述
350
+ */
351
+ 'config error',
352
+ /**
353
+ * 允许 App 通知带有提醒的开关(仅 iOS 支持)
354
+ *
355
+ * @uniPlatform
356
+ * {
357
+ * "app": {
358
+ * "android": {
359
+ * "osVer": "x",
360
+ * "uniVer": "x",
361
+ * "unixVer": "x"
362
+ * },
363
+ * "ios": {
364
+ * "osVer": "12.0",
365
+ * "uniVer": "√",
366
+ * "unixVer": "4.11"
367
+ * }
368
+ * }
369
+ * }
370
+ */
371
+ notificationAlertAuthorized?:
372
+ /**
373
+ * 已经获得授权,无需再次请求授权
374
+ */
375
+ 'authorized' |
376
+ /**
377
+ * 请求授权被拒绝,无法再次请求授权。Android平台:需要申请相册相关权限;iOS平台:此情况需要引导用户打开系统设置,在设置页中打开权限
378
+ */
379
+ 'denied' |
380
+ /**
381
+ * 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
382
+ */
383
+ 'not determined' |
384
+ /**
385
+ * 当前应用没有配置推送权限描述
386
+ */
387
+ 'config error' | null,
388
+ /**
389
+ * 允许 App 通知带有标记的开关(仅 iOS 支持)
390
+ *
391
+ * @uniPlatform
392
+ * {
393
+ * "app": {
394
+ * "android": {
395
+ * "osVer": "x",
396
+ * "uniVer": "x",
397
+ * "unixVer": "x"
398
+ * },
399
+ * "ios": {
400
+ * "osVer": "12.0",
401
+ * "uniVer": "√",
402
+ * "unixVer": "4.11"
403
+ * }
404
+ * }
405
+ * }
406
+ */
407
+ notificationBadgeAuthorized?:
408
+ /**
409
+ * 已经获得授权,无需再次请求授权
410
+ */
411
+ 'authorized' |
412
+ /**
413
+ * 请求授权被拒绝,无法再次请求授权。Android平台:需要申请相册相关权限;iOS平台:此情况需要引导用户打开系统设置,在设置页中打开权限
414
+ */
415
+ 'denied' |
416
+ /**
417
+ * 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
418
+ */
419
+ 'not determined' |
420
+ /**
421
+ * 当前应用没有配置推送权限描述
422
+ */
423
+ 'config error' | null,
424
+ /**
425
+ * 允许 App 通知带有声音的开关(仅 iOS 支持)
426
+ *
427
+ * @uniPlatform
428
+ * {
429
+ * "app": {
430
+ * "android": {
431
+ * "osVer": "x",
432
+ * "uniVer": "x",
433
+ * "unixVer": "x"
434
+ * },
435
+ * "ios": {
436
+ * "osVer": "12.0",
437
+ * "uniVer": "√",
438
+ * "unixVer": "4.11"
439
+ * }
440
+ * }
441
+ * }
442
+ */
443
+ notificationSoundAuthorized?:
444
+ /**
445
+ * 已经获得授权,无需再次请求授权
446
+ */
447
+ 'authorized' |
448
+ /**
449
+ * 请求授权被拒绝,无法再次请求授权。Android平台:需要申请相册相关权限;iOS平台:此情况需要引导用户打开系统设置,在设置页中打开权限
450
+ */
451
+ 'denied' |
452
+ /**
453
+ * 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
454
+ */
455
+ 'not determined' |
456
+ /**
457
+ * 当前应用没有配置推送权限描述
458
+ */
459
+ 'config error' | null,
460
+ /**
461
+ * 允许读写日历的开关(仅微信小程序支持)
462
+ *
463
+ * @uniPlatform
464
+ * {
465
+ * "app": {
466
+ * "android": {
467
+ * "osVer": "x",
468
+ * "uniVer": "x",
469
+ * "unixVer": "x"
470
+ * },
471
+ * "ios": {
472
+ * "osVer": "x",
473
+ * "uniVer": "x",
474
+ * "unixVer": "x"
475
+ * },
476
+ * "harmony": {
477
+ * "osVer": "x",
478
+ * "uniVer": "x",
479
+ * "unixVer": "x"
480
+ * }
481
+ * }
482
+ * }
483
+ */
484
+ phoneCalendarAuthorized?:
485
+ /**
486
+ * 已经获得授权,无需再次请求授权
487
+ */
488
+ 'authorized' |
489
+ /**
490
+ * 请求授权被拒绝,无法再次请求授权;(此情况需要引导用户打开系统设置,在设置页中打开权限)
491
+ */
492
+ 'denied' |
493
+ /**
494
+ * 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
495
+ */
496
+ 'not determined' | null
455
497
  };