@dcloudio/uni-app-x 0.5.5 → 0.5.6

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 (62) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +17 -8
  3. package/types/native/AsyncApiResult.d.ts +1 -1
  4. package/types/native/CSSStyleDeclaration.d.ts +2 -2
  5. package/types/native/DrawableContext.d.ts +2 -2
  6. package/types/native/Element.d.ts +36 -5
  7. package/types/native/IDocument.d.ts +2 -3
  8. package/types/native/IPage.d.ts +1 -1
  9. package/types/native/IUniError.d.ts +1 -1
  10. package/types/native/NodeData.d.ts +1 -1
  11. package/types/native/SnapshotOptions.d.ts +63 -0
  12. package/types/native/UniAppManager.d.ts +1 -1
  13. package/types/native/UniElement.d.ts +97 -0
  14. package/types/native/UniTabsElement.d.ts +86 -0
  15. package/types/native/UniTextElement.d.ts +13 -0
  16. package/types/native/UniVideoElement.d.ts +70 -0
  17. package/types/native/{IWebViewNode.d.ts → UniWebViewElement.d.ts} +5 -2
  18. package/types/native/WebViewDownloadEvent.d.ts +37 -0
  19. package/types/native/WebViewErrorEvent.d.ts +26 -7
  20. package/types/native/WebViewLoadedEvent.d.ts +15 -2
  21. package/types/native/WebViewLoadingEvent.d.ts +15 -2
  22. package/types/native/WebViewMessageEvent.d.ts +15 -7
  23. package/types/native/WebViewStyles.d.ts +20 -0
  24. package/types/native/index.d.ts +8 -4
  25. package/types/shims-vue.d.ts +4 -2
  26. package/types/uni/core/lib/base/event/interface.d.ts +3 -6
  27. package/types/uni/core/lib/ui/get-element-by-id/interface.d.ts +3 -2
  28. package/types/uni/core/lib/ui/pull-down-refresh/index.d.ts +4 -0
  29. package/types/uni/core/lib/ui/pull-down-refresh/interface.d.ts +10 -1
  30. package/types/uni/core/lib/ui/tab-bar/interface.d.ts +4 -8
  31. package/types/uni/uts-plugin-api/index.d.ts +1 -2
  32. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +2 -2
  33. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +86 -86
  34. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +103 -103
  35. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +52 -52
  36. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +4 -4
  37. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +82 -82
  38. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +2 -2
  39. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +10 -10
  40. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +59 -56
  41. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +116 -97
  42. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +4 -4
  43. package/types/uni/uts-plugin-api/lib/uni-push/utssdk/index.d.ts +55 -0
  44. package/types/uni/uts-plugin-api/lib/uni-push/utssdk/interface.d.ts +338 -0
  45. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +39 -39
  46. package/types/uni-cloud/interface.d.ts +10 -10
  47. package/types/vue/CheckboxGroupChangeEvent.d.ts +13 -0
  48. package/types/vue/PickerViewChangeEvent.d.ts +13 -0
  49. package/types/vue/ProgressActiveendEvent.d.ts +7 -0
  50. package/types/vue/RadioGroupChangeEvent.d.ts +13 -0
  51. package/types/vue/SliderChangeEvent.d.ts +2 -2
  52. package/types/vue/SwitchChangeEvent.d.ts +7 -0
  53. package/types/vue/UniButtonElement.d.ts +7 -0
  54. package/types/vue/UniCloudDBElement.d.ts +213 -0
  55. package/types/vue/UniNavigatorElement.d.ts +7 -0
  56. package/types/vue/index.d.ts +3 -0
  57. package/types/native/DomNode.d.ts +0 -48
  58. package/types/native/ITabsNode.d.ts +0 -36
  59. package/types/uni/uts-plugin-api/lib/uni-audio/utssdk/index.d.ts +0 -17
  60. package/types/uni/uts-plugin-api/lib/uni-audio/utssdk/interface.d.ts +0 -804
  61. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/index.d.ts +0 -15
  62. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +0 -213
@@ -0,0 +1,37 @@
1
+ /// <reference path='./Event.d.ts' />
2
+
3
+ /**
4
+ * @package io.dcloud.uniapp.runtime
5
+ */
6
+ declare class WebViewDownloadEventDetail {
7
+ /**
8
+ * 下载链接
9
+ */
10
+ url: string
11
+ /**
12
+ * 用户代理
13
+ */
14
+ userAgent: string
15
+ /**
16
+ * 指示回复的内容该以何种形式展示,是以内联的形式(即网页或者页面的一部分),还是以附件的形式下载并保存到本地
17
+ */
18
+ contentDisposition: string
19
+ /**
20
+ * 媒体类型
21
+ */
22
+ mimetype: string
23
+ /**
24
+ * 文件大小
25
+ */
26
+ contentLength: number
27
+ }
28
+
29
+ /**
30
+ * @package io.dcloud.uniapp.runtime
31
+ */
32
+ declare class WebViewDownloadEvent extends CustomEvent<WebViewDownloadEventDetail> {
33
+ /**
34
+ * 事件类型,固定值download
35
+ */
36
+ type: string
37
+ }
@@ -3,11 +3,30 @@
3
3
  /**
4
4
  * @package io.dcloud.uniapp.runtime
5
5
  */
6
- declare class WebViewErrorEvent extends Event {
7
- detail: {
8
- /**
9
- * 错误信息
10
- */
11
- errMsg: string
12
- }
6
+ declare class WebViewErrorEventDetail {
7
+ /**
8
+ * 统一错误主题(模块)名称,固定值uni-web-view
9
+ */
10
+ errSubject: string
11
+ /**
12
+ * 统一错误码
13
+ * 100001 ssl error
14
+ * 100002 page error
15
+ * 100003 http error
16
+ */
17
+ errCode: number
18
+ /**
19
+ * 统一错误描述信息
20
+ */
21
+ errMsg: string
13
22
  }
23
+
24
+ /**
25
+ * @package io.dcloud.uniapp.runtime
26
+ */
27
+ declare class WebViewErrorEvent extends CustomEvent<WebViewErrorEventDetail> {
28
+ /**
29
+ * 事件类型,固定值error
30
+ */
31
+ type: string
32
+ }
@@ -3,6 +3,19 @@
3
3
  /**
4
4
  * @package io.dcloud.uniapp.runtime
5
5
  */
6
- declare class WebViewLoadedEvent extends Event {
7
-
6
+ declare class WebViewLoadedEventDetail {
7
+ /**
8
+ * 加载完成的网页链接
9
+ */
10
+ url: string
8
11
  }
12
+
13
+ /**
14
+ * @package io.dcloud.uniapp.runtime
15
+ */
16
+ declare class WebViewLoadedEvent extends CustomEvent<WebViewLoadedEventDetail> {
17
+ /**
18
+ * 事件类型,固定值loaded
19
+ */
20
+ type: string
21
+ }
@@ -3,6 +3,19 @@
3
3
  /**
4
4
  * @package io.dcloud.uniapp.runtime
5
5
  */
6
- declare class WebViewLoadingEvent extends Event {
7
-
6
+ declare class WebViewLoadingEventDetail extends Event {
7
+ /**
8
+ * 加载中的网页链接
9
+ */
10
+ url: string
8
11
  }
12
+
13
+ /**
14
+ * @package io.dcloud.uniapp.runtime
15
+ */
16
+ declare class WebViewLoadingEvent extends CustomEvent<WebViewLoadingEventDetail> {
17
+ /**
18
+ * 事件类型,固定值loading
19
+ */
20
+ type: string
21
+ }
@@ -3,11 +3,19 @@
3
3
  /**
4
4
  * @package io.dcloud.uniapp.runtime
5
5
  */
6
- declare class WebViewMessageEvent extends Event {
7
- detail: {
8
- /**
9
- * 消息包含的数据
10
- */
11
- data: Map<string, any | null> | null
12
- }
6
+ declare class WebViewMessageEventDetail {
7
+ /**
8
+ * 消息包含的数据
9
+ */
10
+ data: Map<string, any | null> | null
13
11
  }
12
+
13
+ /**
14
+ * @package io.dcloud.uniapp.runtime
15
+ */
16
+ declare class WebViewMessageEvent extends CustomEvent<WebViewMessageEventDetail> {
17
+ /**
18
+ * 事件类型,固定值message
19
+ */
20
+ type: string
21
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * web-view组件的样式
3
+ */
4
+ declare class WebViewStyles {
5
+ /**
6
+ * 网络地址页面加载进度条样式,设置为 false 时表示不显示加载进度条。
7
+ * @default false
8
+ */
9
+ progress: WebViewProgressStyles|boolean
10
+ }
11
+
12
+ /**
13
+ * web-view组件的进度条样式
14
+ */
15
+ declare class WebViewProgressStyles {
16
+ /**
17
+ * 网页加载进度条颜色,默认值为 #00FF00 。
18
+ */
19
+ color: string.ColorString
20
+ }
@@ -14,10 +14,13 @@
14
14
  /// <reference path='./InputFocusEvent.d.ts' />
15
15
  /// <reference path='./InputKeyboardHeightChangeEvent.d.ts' />
16
16
  /// <reference path='./Element.d.ts' />
17
+ /// <reference path='./UniElement.d.ts' />
17
18
  /// <reference path='./IPage.d.ts' />
18
19
  /// <reference path='./IPageManager.d.ts' />
19
- /// <reference path='./ITabsNode.d.ts' />
20
- /// <reference path='./IWebViewNode.d.ts' />
20
+ /// <reference path='./UniTabsElement.d.ts' />
21
+ /// <reference path='./UniWebViewElement.d.ts' />
22
+ /// <reference path='./UniTextElement.d.ts' />
23
+ /// <reference path='./UniVideoElement.d.ts' />
21
24
  /// <reference path='./MouseEvent.d.ts' />
22
25
  /// <reference path='./NestedPreScrollEvent.d.ts' />
23
26
  /// <reference path='./NodeData.d.ts' />
@@ -32,6 +35,7 @@
32
35
  /// <reference path='./SourceError.d.ts' />
33
36
  /// <reference path='./StartNestedScrollEvent.d.ts' />
34
37
  /// <reference path='./TabTapEvent.d.ts' />
38
+ /// <reference path='./SnapshotOptions.d.ts' />
35
39
  /// <reference path='./TextareaBlurEvent.d.ts' />
36
40
  /// <reference path='./TextareaFocusEvent.d.ts' />
37
41
  /// <reference path='./TextareaLineChangeEvent.d.ts' />
@@ -40,6 +44,8 @@
40
44
  /// <reference path='./UniAppManager.d.ts' />
41
45
  /// <reference path="./IUniError.d.ts" />
42
46
  /// <reference path='./UniError.d.ts' />
47
+ /// <reference path='./WebViewStyles.d.ts' />
48
+ /// <reference path='./WebViewDownloadEvent.d.ts' />
43
49
  /// <reference path='./WebViewErrorEvent.d.ts' />
44
50
  /// <reference path='./WebViewLoadedEvent.d.ts' />
45
51
  /// <reference path='./WebViewLoadingEvent.d.ts' />
@@ -48,5 +54,3 @@
48
54
  /// <reference path='./SwiperChangeEvent.d.ts' />
49
55
  /// <reference path='./SwiperTransitionEvent.d.ts' />
50
56
  /// <reference path='./SwiperAnimationFinishEvent.d.ts' />
51
-
52
- /// <reference path='./DomNode.d.ts' />
@@ -2,9 +2,11 @@
2
2
  /// <reference path='./page.d.ts' />
3
3
 
4
4
  declare module '@vue/runtime-core' {
5
- type Hooks = AppInstance & PageInstance;
5
+ interface ComponentCustomOptions extends PageInstance {
6
6
 
7
- interface ComponentCustomOptions extends Hooks {
7
+ }
8
+
9
+ interface AppCustomOptions extends AppInstance {
8
10
 
9
11
  }
10
12
  }
@@ -1,13 +1,10 @@
1
- // @ts-expect-error
2
- type AnyCallback = Function<unknown>
3
-
4
- type $OnCallback = AnyCallback
1
+ type $OnCallback = Function
5
2
  export type $On = (eventName: string, callback: $OnCallback) => void
6
3
 
7
- type $OnceCallback = AnyCallback
4
+ type $OnceCallback = Function
8
5
  export type $Once = (eventName: string, callback: $OnceCallback) => void
9
6
 
10
- type $OffCallback = AnyCallback
7
+ type $OffCallback = Function
11
8
  export type $Off = (eventName: string, callback: $OffCallback) => void
12
9
 
13
10
  export type $Emit = (eventName: string, args: any | null) => void
@@ -1,4 +1,4 @@
1
- export type GetElementById = (id: HBuilderX.IDString | string) => Element | null
1
+ export type GetElementById = (id: string.IDString | string) => Element | null
2
2
 
3
3
  export interface Uni {
4
4
  /**
@@ -68,5 +68,6 @@ export interface Uni {
68
68
  * }
69
69
  * }
70
70
  */
71
- getElementById(id: HBuilderX.IDString | string): Element | null
71
+ getElementById(id: string.IDString | string): Element | null
72
+ getElementById<T>(id: string.IDString | string): T | null
72
73
  }
@@ -1,4 +1,6 @@
1
1
  import {
2
+ PullDownRefreshErrorCode as PullDownRefreshErrorCodeOrigin,
3
+ PullDownRefreshError as PullDownRefreshErrorOrigin,
2
4
  StartPullDownRefreshOptions as StartPullDownRefreshOptionsOrigin,
3
5
  StartPullDownRefreshSuccess as StartPullDownRefreshSuccessOrigin,
4
6
  StartPullDownRefreshSuccessCallback as StartPullDownRefreshSuccessCallbackOrigin,
@@ -11,6 +13,8 @@ import {
11
13
  } from './interface'
12
14
 
13
15
  declare global {
16
+ type PullDownRefreshErrorCode = PullDownRefreshErrorCodeOrigin
17
+ type PullDownRefreshError = PullDownRefreshErrorOrigin
14
18
  type StartPullDownRefreshOptions = StartPullDownRefreshOptionsOrigin
15
19
  type StartPullDownRefreshSuccess = StartPullDownRefreshSuccessOrigin
16
20
  type StartPullDownRefreshSuccessCallback = StartPullDownRefreshSuccessCallbackOrigin
@@ -1,5 +1,14 @@
1
1
  import { AsyncApiSuccessResult } from '../../interface'
2
2
 
3
+ /**
4
+ * 下拉刷新错误码
5
+ * - 4: 框架内部异常
6
+ */
7
+ export type PullDownRefreshErrorCode = 4
8
+ export interface PullDownRefreshError extends IUniError {
9
+ errCode: PullDownRefreshErrorCode
10
+ }
11
+
3
12
  export type StartPullDownRefreshOptions = {
4
13
  /**
5
14
  * 接口调用成功的回调函数
@@ -18,7 +27,7 @@ export type StartPullDownRefreshSuccess = AsyncApiSuccessResult
18
27
  export type StartPullDownRefreshSuccessCallback = (
19
28
  result: StartPullDownRefreshSuccess
20
29
  ) => void
21
- export type StartPullDownRefreshFail = UniError
30
+ export type StartPullDownRefreshFail = PullDownRefreshError
22
31
  export type StartPullDownRefreshFailCallback = (
23
32
  result: StartPullDownRefreshFail
24
33
  ) => void
@@ -215,32 +215,28 @@ export type SetTabBarStyleCompleteCallback = (
215
215
  export type SetTabBarStyleOptions = {
216
216
  /**
217
217
  * tab 上的文字默认颜色
218
- * @type {HBuilderX.ColorString}
219
218
  */
220
- color?: string
219
+ color?: string | string.ColorString
221
220
  /**
222
221
  * tab 上的文字选中时的颜色
223
- * {HBuilderX.ColorString}
224
222
  */
225
- selectedColor?: string
223
+ selectedColor?: string | string.ColorString
226
224
  /**
227
225
  * tab 的背景色
228
- * @type {HBuilderX.ColorString}
229
226
  */
230
- backgroundColor?: string
227
+ backgroundColor?: string | string.ColorString
231
228
  /**
232
229
  * 图片背景
233
230
  */
234
231
  backgroundImage?: string
235
232
  /**
236
233
  * 背景图平铺方式
237
- * @type {'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat'}
238
234
  * - repeat: 背景图片在垂直方向和水平方向平铺
239
235
  * - repeat-x: 背景图片在水平方向平铺,垂直方向拉伸
240
236
  * - repeat-y: 背景图片在垂直方向平铺,水平方向拉伸
241
237
  * - no-repeat: 背景图片在垂直方向和水平方向都拉伸
242
238
  */
243
- backgroundRepeat?: string
239
+ backgroundRepeat?: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat'
244
240
  /**
245
241
  * tabbar上边框的颜色
246
242
  */
@@ -1,12 +1,12 @@
1
1
  /// <reference path='./lib/uni-websocket/utssdk/index.d.ts' />
2
2
  /// <reference path='./lib/uni-storage/utssdk/index.d.ts' />
3
+ /// <reference path='./lib/uni-push/utssdk/index.d.ts' />
3
4
  /// <reference path='./lib/uni-prompt/utssdk/index.d.ts' />
4
5
  /// <reference path='./lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts' />
5
6
  /// <reference path='./lib/uni-network/utssdk/index.d.ts' />
6
7
  /// <reference path='./lib/uni-media/utssdk/index.d.ts' />
7
8
  /// <reference path='./lib/uni-getSystemSetting/utssdk/index.d.ts' />
8
9
  /// <reference path='./lib/uni-getSystemInfo/utssdk/index.d.ts' />
9
- /// <reference path='./lib/uni-getRecorderManager/utssdk/index.d.ts' />
10
10
  /// <reference path='./lib/uni-getNetworkType/utssdk/index.d.ts' />
11
11
  /// <reference path='./lib/uni-getLocation-system/utssdk/index.d.ts' />
12
12
  /// <reference path='./lib/uni-getDeviceInfo/utssdk/index.d.ts' />
@@ -15,5 +15,4 @@
15
15
  /// <reference path='./lib/uni-getAccessibilityInfo/utssdk/index.d.ts' />
16
16
  /// <reference path='./lib/uni-exit/utssdk/index.d.ts' />
17
17
  /// <reference path='./lib/uni-createWebviewContext/utssdk/index.d.ts' />
18
- /// <reference path='./lib/uni-audio/utssdk/index.d.ts' />
19
18
  /// <reference path='./lib/uni-network/utssdk/app-ios/index.d.ts' />
@@ -13,12 +13,12 @@ export interface Uni {
13
13
  * "android": {
14
14
  * "osVer": "4.4",
15
15
  * "uniVer": "x",
16
- * "unixVer": "3.9.0"
16
+ * "unixVer": "3.9+"
17
17
  * },
18
18
  * "ios": {
19
19
  * "osVer": "9.0",
20
20
  * "uniVer": "x",
21
- * "unixVer": "3.9.0"
21
+ * "unixVer": "3.9+"
22
22
  * }
23
23
  * }
24
24
  * }
@@ -11,7 +11,7 @@ export interface Uni {
11
11
  * "android": {
12
12
  * "osVer": "4.4",
13
13
  * "uniVer": "√",
14
- * "unixVer": "3.9.0"
14
+ * "unixVer": "3.9+"
15
15
  * },
16
16
  * "ios": {
17
17
  * "osVer": "9.0",
@@ -36,7 +36,7 @@ export type GetAppAuthorizeSettingResult = {
36
36
  * - authorized: 已经获得授权,无需再次请求授权
37
37
  * - denied: 请求授权被拒绝,无法再次请求授权;(此情况需要引导用户打开系统设置,在设置页中打开权限)
38
38
  * - not determined: 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
39
- * @type 'authorized' | 'denied' | 'not determined'
39
+ * @type 'authorized' | 'denied' | 'not determined'
40
40
  * @uniPlatform {
41
41
  * "app": {
42
42
  * "android": {
@@ -59,20 +59,20 @@ export type GetAppAuthorizeSettingResult = {
59
59
  * - denied: 请求授权被拒绝,无法再次请求授权;(此情况需要引导用户打开系统设置,在设置页中打开权限)
60
60
  * - not determined: 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
61
61
  * - config error: Android平台没有该值;iOS平台:表示没有在 `manifest.json -> App模块配置` 中配置 `BlueTooth(低功耗蓝牙)` 模块
62
- * @type 'authorized' | 'denied' | 'not determined' | 'config error'
63
- * @uniPlatform {
64
- * "app": {
65
- * "android": {
66
- * "osVer": "x",
67
- * "uniVer": "x",
68
- * "unixVer": "x"
69
- * },
70
- * "ios": {
71
- * "osVer": "9.0",
72
- * "uniVer": "√",
73
- * "unixVer": "x"
74
- * }
75
- * }
62
+ * @type 'authorized' | 'denied' | 'not determined' | 'config error'
63
+ * @uniPlatform {
64
+ * "app": {
65
+ * "android": {
66
+ * "osVer": "x",
67
+ * "uniVer": "x",
68
+ * "unixVer": "x"
69
+ * },
70
+ * "ios": {
71
+ * "osVer": "9.0",
72
+ * "uniVer": "√",
73
+ * "unixVer": "x"
74
+ * }
75
+ * }
76
76
  * }
77
77
  */
78
78
  bluetoothAuthorized: string | null,
@@ -104,20 +104,20 @@ export type GetAppAuthorizeSettingResult = {
104
104
  locationAccuracy: string | null,
105
105
  /**
106
106
  * 定位准确度(推荐使用 locationAccuracy 属性)。true 表示模糊定位,false 表示精确定位(仅 iOS 支持)
107
- * @type boolean
108
- * @uniPlatform {
109
- * "app": {
110
- * "android": {
111
- * "osVer": "x",
112
- * "uniVer": "x",
113
- * "unixVer": "x"
114
- * },
115
- * "ios": {
116
- * "osVer": "9.0",
117
- * "uniVer": "√",
118
- * "unixVer": "x"
119
- * }
120
- * }
107
+ * @type boolean
108
+ * @uniPlatform {
109
+ * "app": {
110
+ * "android": {
111
+ * "osVer": "x",
112
+ * "uniVer": "x",
113
+ * "unixVer": "x"
114
+ * },
115
+ * "ios": {
116
+ * "osVer": "9.0",
117
+ * "uniVer": "√",
118
+ * "unixVer": "x"
119
+ * }
120
+ * }
121
121
  * }
122
122
  */
123
123
  locationReducedAccuracy: boolean | null,
@@ -145,20 +145,20 @@ export type GetAppAuthorizeSettingResult = {
145
145
  * - denied: 请求授权被拒绝,无法再次请求授权;(此情况需要引导用户打开系统设置,在设置页中打开权限)
146
146
  * - not determined: 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
147
147
  * - config error: 没有在 `manifest.json -> App模块配置` 中配置 `Push(推送)` 模块
148
- * @type 'authorized' | 'denied' | 'not determined' | 'config error'
149
- * @uniPlatform {
150
- * "app": {
151
- * "android": {
152
- * "osVer": "x",
153
- * "uniVer": "x",
154
- * "unixVer": "x"
155
- * },
156
- * "ios": {
157
- * "osVer": "10.0",
158
- * "uniVer": "√",
159
- * "unixVer": "x"
160
- * }
161
- * }
148
+ * @type 'authorized' | 'denied' | 'not determined' | 'config error'
149
+ * @uniPlatform {
150
+ * "app": {
151
+ * "android": {
152
+ * "osVer": "x",
153
+ * "uniVer": "x",
154
+ * "unixVer": "x"
155
+ * },
156
+ * "ios": {
157
+ * "osVer": "10.0",
158
+ * "uniVer": "√",
159
+ * "unixVer": "x"
160
+ * }
161
+ * }
162
162
  * }
163
163
  */
164
164
  notificationAlertAuthorized: string | null,
@@ -168,20 +168,20 @@ export type GetAppAuthorizeSettingResult = {
168
168
  * - denied: 请求授权被拒绝,无法再次请求授权;(此情况需要引导用户打开系统设置,在设置页中打开权限)
169
169
  * - not determined: 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
170
170
  * - config error: 没有在 `manifest.json -> App模块配置` 中配置 `Push(推送)` 模块
171
- * @type 'authorized' | 'denied' | 'not determined' | 'config error'
172
- * @uniPlatform {
173
- * "app": {
174
- * "android": {
175
- * "osVer": "x",
176
- * "uniVer": "x",
177
- * "unixVer": "x"
178
- * },
179
- * "ios": {
180
- * "osVer": "10.0",
181
- * "uniVer": "√",
182
- * "unixVer": "x"
183
- * }
184
- * }
171
+ * @type 'authorized' | 'denied' | 'not determined' | 'config error'
172
+ * @uniPlatform {
173
+ * "app": {
174
+ * "android": {
175
+ * "osVer": "x",
176
+ * "uniVer": "x",
177
+ * "unixVer": "x"
178
+ * },
179
+ * "ios": {
180
+ * "osVer": "10.0",
181
+ * "uniVer": "√",
182
+ * "unixVer": "x"
183
+ * }
184
+ * }
185
185
  * }
186
186
  */
187
187
  notificationBadgeAuthorized: string | null,
@@ -191,20 +191,20 @@ export type GetAppAuthorizeSettingResult = {
191
191
  * - denied: 请求授权被拒绝,无法再次请求授权;(此情况需要引导用户打开系统设置,在设置页中打开权限)
192
192
  * - not determined: 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
193
193
  * - config error: 没有在 `manifest.json -> App模块配置` 中配置 `Push(推送)` 模块
194
- * @type 'authorized' | 'denied' | 'not determined' | 'config error'
195
- * @uniPlatform {
196
- * "app": {
197
- * "android": {
198
- * "osVer": "x",
199
- * "uniVer": "x",
200
- * "unixVer": "x"
201
- * },
202
- * "ios": {
203
- * "osVer": "10.0",
204
- * "uniVer": "√",
205
- * "unixVer": "x"
206
- * }
207
- * }
194
+ * @type 'authorized' | 'denied' | 'not determined' | 'config error'
195
+ * @uniPlatform {
196
+ * "app": {
197
+ * "android": {
198
+ * "osVer": "x",
199
+ * "uniVer": "x",
200
+ * "unixVer": "x"
201
+ * },
202
+ * "ios": {
203
+ * "osVer": "10.0",
204
+ * "uniVer": "√",
205
+ * "unixVer": "x"
206
+ * }
207
+ * }
208
208
  * }
209
209
  */
210
210
  notificationSoundAuthorized: string | null,
@@ -213,20 +213,20 @@ export type GetAppAuthorizeSettingResult = {
213
213
  * - authorized: 已经获得授权,无需再次请求授权
214
214
  * - denied: 请求授权被拒绝,无法再次请求授权;(此情况需要引导用户打开系统设置,在设置页中打开权限)
215
215
  * - not determined: 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
216
- * @type 'authorized' | 'denied' | 'not determined'
217
- * @uniPlatform {
218
- * "app": {
219
- * "android": {
220
- * "osVer": "x",
221
- * "uniVer": "x",
222
- * "unixVer": "x"
223
- * },
224
- * "ios": {
225
- * "osVer": "x",
226
- * "uniVer": "x",
227
- * "unixVer": "x"
228
- * }
229
- * }
216
+ * @type 'authorized' | 'denied' | 'not determined'
217
+ * @uniPlatform {
218
+ * "app": {
219
+ * "android": {
220
+ * "osVer": "x",
221
+ * "uniVer": "x",
222
+ * "unixVer": "x"
223
+ * },
224
+ * "ios": {
225
+ * "osVer": "x",
226
+ * "uniVer": "x",
227
+ * "unixVer": "x"
228
+ * }
229
+ * }
230
230
  * }
231
231
  */
232
232
  phoneCalendarAuthorized: string | null