@doubao-apps/create 0.0.31 → 0.0.32

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 (35) hide show
  1. package/dist/36.js +4 -4
  2. package/dist/cli.js +33 -31
  3. package/dist/template-empty/AGENTS.md +12 -0
  4. package/dist/template-empty/package.json +2 -2
  5. package/dist/template-empty/references/reference/open-api/02-/345/256/232/344/275/215.md +224 -0
  6. package/dist/template-empty/references/reference/open-api/22-/350/256/276/345/244/207-/345/237/272/347/241/200/344/277/241/346/201/257.md +133 -0
  7. package/dist/template-empty/references/reference/open-api/README.md +12 -11
  8. package/dist/template-empty/references/reference/open-api.md +460 -0
  9. package/dist/template-starter/AGENTS.md +12 -0
  10. package/dist/template-starter/package.json +2 -2
  11. package/dist/template-starter/references/reference/open-api/02-/345/256/232/344/275/215.md +224 -0
  12. package/dist/template-starter/references/reference/open-api/22-/350/256/276/345/244/207-/345/237/272/347/241/200/344/277/241/346/201/257.md +133 -0
  13. package/dist/template-starter/references/reference/open-api/README.md +12 -11
  14. package/dist/template-starter/references/reference/open-api.md +460 -0
  15. package/package.json +1 -1
  16. /package/dist/template-empty/references/reference/open-api/{22- → 23-}/350/256/276/345/244/207-/347/224/265/346/261/240.md" +0 -0
  17. /package/dist/template-empty/references/reference/open-api/{23- → 24-}/350/256/276/345/244/207-/346/227/245/345/216/206.md" +0 -0
  18. /package/dist/template-empty/references/reference/open-api/{24- → 25-}/350/256/276/345/244/207-/345/211/252/350/264/264/346/235/277.md" +0 -0
  19. /package/dist/template-empty/references/reference/open-api/{25- → 26-}/350/256/276/345/244/207-/350/201/224/347/263/273/344/272/272.md" +0 -0
  20. /package/dist/template-empty/references/reference/open-api/{26- → 27-}/350/256/276/345/244/207-/345/212/240/345/257/206.md" +0 -0
  21. /package/dist/template-empty/references/reference/open-api/{27- → 28-}/350/256/276/345/244/207-/347/224/265/350/257/235.md" +0 -0
  22. /package/dist/template-empty/references/reference/open-api/{28- → 29-}/350/256/276/345/244/207-/346/211/253/347/240/201.md" +0 -0
  23. /package/dist/template-empty/references/reference/open-api/{29- → 30-}/350/256/276/345/244/207-/345/261/217/345/271/225.md" +0 -0
  24. /package/dist/template-empty/references/reference/open-api/{30- → 31-}/350/256/276/345/244/207-/351/234/207/345/212/250.md" +0 -0
  25. /package/dist/template-empty/references/reference/open-api/{31- → 32-}/346/226/207/344/273/266/347/263/273/347/273/237.md" +0 -0
  26. /package/dist/template-starter/references/reference/open-api/{22- → 23-}/350/256/276/345/244/207-/347/224/265/346/261/240.md" +0 -0
  27. /package/dist/template-starter/references/reference/open-api/{23- → 24-}/350/256/276/345/244/207-/346/227/245/345/216/206.md" +0 -0
  28. /package/dist/template-starter/references/reference/open-api/{24- → 25-}/350/256/276/345/244/207-/345/211/252/350/264/264/346/235/277.md" +0 -0
  29. /package/dist/template-starter/references/reference/open-api/{25- → 26-}/350/256/276/345/244/207-/350/201/224/347/263/273/344/272/272.md" +0 -0
  30. /package/dist/template-starter/references/reference/open-api/{26- → 27-}/350/256/276/345/244/207-/345/212/240/345/257/206.md" +0 -0
  31. /package/dist/template-starter/references/reference/open-api/{27- → 28-}/350/256/276/345/244/207-/347/224/265/350/257/235.md" +0 -0
  32. /package/dist/template-starter/references/reference/open-api/{28- → 29-}/350/256/276/345/244/207-/346/211/253/347/240/201.md" +0 -0
  33. /package/dist/template-starter/references/reference/open-api/{29- → 30-}/350/256/276/345/244/207-/345/261/217/345/271/225.md" +0 -0
  34. /package/dist/template-starter/references/reference/open-api/{30- → 31-}/350/256/276/345/244/207-/351/234/207/345/212/250.md" +0 -0
  35. /package/dist/template-starter/references/reference/open-api/{31- → 32-}/346/226/207/344/273/266/347/263/273/347/273/237.md" +0 -0
@@ -0,0 +1,133 @@
1
+ # Open API: 设备 / 基础信息
2
+
3
+ 设备品牌、型号、系统、内存和性能等级。
4
+
5
+ [返回目录](./README.md) | [返回速查](../open-api.md)
6
+
7
+ ## 速查
8
+
9
+ | API | 说明 |
10
+ | --- | --- |
11
+ | [getDeviceInfo](#getdeviceinfo) | 获取设备基础信息。 |
12
+ | [getDeviceInfoSync](#getdeviceinfosync) | 同步获取设备基础信息。<br><br>同步 API。 |
13
+
14
+ ## API 详情
15
+
16
+ <a id="getdeviceinfo"></a>
17
+ ### getDeviceInfo()
18
+
19
+ > **getDeviceInfo**(`params`?): `Promise`\<[`GetDeviceInfoResult`](#getdeviceinforesult)\>
20
+
21
+ 获取设备基础信息。
22
+
23
+ #### Parameters
24
+
25
+ • **params?**
26
+
27
+ #### Returns
28
+
29
+ `Promise`\<[`GetDeviceInfoResult`](#getdeviceinforesult)\>
30
+
31
+ 返回设备品牌、型号、系统、内存和性能等级等字段,见 [GetDeviceInfoResult](#getdeviceinforesult)。
32
+
33
+ #### Example
34
+
35
+ ```typescript
36
+ import { getDeviceInfo } from '@doubao-apps/framework/api';
37
+
38
+ const result = await getDeviceInfo();
39
+
40
+ console.log(result.brand, result.model, result.system);
41
+ console.log(result.platform, result.benchmarkLevel);
42
+ ```
43
+
44
+ <a id="getdeviceinfosync"></a>
45
+ ### getDeviceInfoSync()
46
+
47
+ > **getDeviceInfoSync**(`params`?): [`GetDeviceInfoResult`](#getdeviceinforesult)
48
+
49
+ 同步获取设备基础信息。
50
+
51
+ #### Parameters
52
+
53
+ • **params?**
54
+
55
+ #### Returns
56
+
57
+ [`GetDeviceInfoResult`](#getdeviceinforesult)
58
+
59
+ 返回设备品牌、型号、系统、内存和性能等级等字段,见 [GetDeviceInfoResult](#getdeviceinforesult)。
60
+
61
+ #### Example
62
+
63
+ ```typescript
64
+ import { getDeviceInfoSync } from '@doubao-apps/framework/api';
65
+
66
+ const result = getDeviceInfoSync();
67
+
68
+ console.log(result.brand, result.model, result.system);
69
+ console.log(result.platform, result.benchmarkLevel);
70
+ ```
71
+
72
+ ## 相关类型
73
+
74
+ <a id="getdeviceinforesult"></a>
75
+ ### GetDeviceInfoResult
76
+
77
+ 设备基础信息。
78
+
79
+ #### Properties
80
+
81
+ ##### abi?
82
+
83
+ > `optional` **abi**: `string`
84
+
85
+ 宿主 App 二进制接口类型,仅 Android 支持。
86
+
87
+ ##### benchmarkLevel
88
+
89
+ > **benchmarkLevel**: `number`
90
+
91
+ 设备性能等级,值越高性能越好;-1 表示未知。
92
+
93
+ ##### brand
94
+
95
+ > **brand**: `string`
96
+
97
+ 设备品牌。
98
+
99
+ ##### cpuType?
100
+
101
+ > `optional` **cpuType**: `string`
102
+
103
+ 设备 CPU 型号,仅 Android 支持。
104
+
105
+ ##### deviceAbi?
106
+
107
+ > `optional` **deviceAbi**: `string`
108
+
109
+ 设备二进制接口类型,仅 Android 支持。
110
+
111
+ ##### memorySize
112
+
113
+ > **memorySize**: `string`
114
+
115
+ 设备内存大小,单位 MB。
116
+
117
+ ##### model
118
+
119
+ > **model**: `string`
120
+
121
+ 设备型号。
122
+
123
+ ##### platform
124
+
125
+ > **platform**: `string`
126
+
127
+ 客户端平台。
128
+
129
+ ##### system
130
+
131
+ > **system**: `string`
132
+
133
+ 操作系统及版本。
@@ -7,7 +7,7 @@
7
7
  | 分组 | 说明 | API 数量 | 详细文档 |
8
8
  | --- | --- | ---: | --- |
9
9
  | 基础 / 账号 / 系统 | 账号、授权、宿主基础信息、窗口信息和能力可用性。 | 9 | [查看](./01-基础-账号-系统.md) |
10
- | 定位 | 获取设备当前的地理位置信息。 | 1 | [查看](./02-定位.md) |
10
+ | 定位 | 获取设备当前的地理位置信息。 | 9 | [查看](./02-定位.md) |
11
11
  | 存储 | 本地缓存;带 Sync 后缀的是同步 API。 | 10 | [查看](./03-存储.md) |
12
12
  | 路由 | 应用内页面跳转、返回、退出和关闭。 | 6 | [查看](./04-路由.md) |
13
13
  | 界面 / 交互 | Toast、Loading、Modal、ActionSheet 和返回前提醒。 | 9 | [查看](./05-界面-交互.md) |
@@ -27,13 +27,14 @@
27
27
  | 设备 / 网络 | 网络类型和本机局域网 IP。 | 3 | [查看](./19-设备-网络.md) |
28
28
  | 设备 / 短信 | 拉起系统短信发送面板。 | 1 | [查看](./20-设备-短信.md) |
29
29
  | 设备 / 无障碍 | 检测无障碍能力开关状态。 | 1 | [查看](./21-设备-无障碍.md) |
30
- | 设备 / 电池 | 电池信息读取与变化监听。 | 2 | [查看](./22-设备-电池.md) |
31
- | 设备 / 日历 | 向系统日历添加事件和重复事件。 | 2 | [查看](./23-设备-日历.md) |
32
- | 设备 / 剪贴板 | 读取和设置系统剪贴板内容。 | 2 | [查看](./24-设备-剪贴板.md) |
33
- | 设备 / 联系人 | 选择和添加手机联系人。 | 2 | [查看](./25-设备-联系人.md) |
34
- | 设备 / 加密 | 安全随机数能力。 | 1 | [查看](./26-设备-加密.md) |
35
- | 设备 / 电话 | 拨打电话。 | 1 | [查看](./27-设备-电话.md) |
36
- | 设备 / 扫码 | 调起扫码并读取扫码结果。 | 1 | [查看](./28-设备-扫码.md) |
37
- | 设备 / 屏幕 | 屏幕亮度、常亮和截屏/录屏相关能力。 | 5 | [查看](./29-设备-屏幕.md) |
38
- | 设备 / 震动 | 触发短震动和长震动。 | 2 | [查看](./30-设备-震动.md) |
39
- | 文件系统 | 文件读写、目录管理和文件信息操作。 | 1 | [查看](./31-文件系统.md) |
30
+ | 设备 / 基础信息 | 设备品牌、型号、系统、内存和性能等级。 | 2 | [查看](./22-设备-基础信息.md) |
31
+ | 设备 / 电池 | 电池信息读取与变化监听。 | 2 | [查看](./23-设备-电池.md) |
32
+ | 设备 / 日历 | 向系统日历添加事件和重复事件。 | 2 | [查看](./24-设备-日历.md) |
33
+ | 设备 / 剪贴板 | 读取和设置系统剪贴板内容。 | 2 | [查看](./25-设备-剪贴板.md) |
34
+ | 设备 / 联系人 | 选择和添加手机联系人。 | 2 | [查看](./26-设备-联系人.md) |
35
+ | 设备 / 加密 | 安全随机数能力。 | 1 | [查看](./27-设备-加密.md) |
36
+ | 设备 / 电话 | 拨打电话。 | 1 | [查看](./28-设备-电话.md) |
37
+ | 设备 / 扫码 | 调起扫码并读取扫码结果。 | 1 | [查看](./29-设备-扫码.md) |
38
+ | 设备 / 屏幕 | 屏幕亮度、常亮和截屏/录屏相关能力。 | 5 | [查看](./30-设备-屏幕.md) |
39
+ | 设备 / 震动 | 触发短震动和长震动。 | 2 | [查看](./31-设备-震动.md) |
40
+ | 文件系统 | 文件读写、目录管理和文件信息操作。 | 1 | [查看](./32-文件系统.md) |
@@ -146,6 +146,22 @@ Promise 对象,授权成功时会返回授权结果
146
146
 
147
147
  ***
148
148
 
149
+ ### chooseLocation()
150
+
151
+ > **chooseLocation**(`params`?): `Promise`\<[`ChooseLocationResponse`](doubao-apps-sdk-open-api.md#chooselocationresponse)\>
152
+
153
+ 打开地图选择位置。
154
+
155
+ #### Parameters
156
+
157
+ • **params?**: [`ChooseLocationParams`](doubao-apps-sdk-open-api.md#chooselocationparams)
158
+
159
+ #### Returns
160
+
161
+ `Promise`\<[`ChooseLocationResponse`](doubao-apps-sdk-open-api.md#chooselocationresponse)\>
162
+
163
+ ***
164
+
149
165
  ### clearStorage()
150
166
 
151
167
  > **clearStorage**(`params`?): `Promise`\<`object`\>
@@ -855,6 +871,64 @@ console.log(result.host?.appId, result.enableDebug);
855
871
 
856
872
  ***
857
873
 
874
+ ### getDeviceInfo()
875
+
876
+ > **getDeviceInfo**(`params`?): `Promise`\<[`GetDeviceInfoResult`](doubao-apps-sdk-open-api.md#getdeviceinforesult)\>
877
+
878
+ 获取设备基础信息。
879
+
880
+ #### Parameters
881
+
882
+ • **params?**
883
+
884
+ #### Returns
885
+
886
+ `Promise`\<[`GetDeviceInfoResult`](doubao-apps-sdk-open-api.md#getdeviceinforesult)\>
887
+
888
+ 返回设备品牌、型号、系统、内存和性能等级等字段,见 [GetDeviceInfoResult](doubao-apps-sdk-open-api.md#getdeviceinforesult)。
889
+
890
+ #### Example
891
+
892
+ ```typescript
893
+ import { getDeviceInfo } from '@doubao-apps/framework/api';
894
+
895
+ const result = await getDeviceInfo();
896
+
897
+ console.log(result.brand, result.model, result.system);
898
+ console.log(result.platform, result.benchmarkLevel);
899
+ ```
900
+
901
+ ***
902
+
903
+ ### getDeviceInfoSync()
904
+
905
+ > **getDeviceInfoSync**(`params`?): [`GetDeviceInfoResult`](doubao-apps-sdk-open-api.md#getdeviceinforesult)
906
+
907
+ 同步获取设备基础信息。
908
+
909
+ #### Parameters
910
+
911
+ • **params?**
912
+
913
+ #### Returns
914
+
915
+ [`GetDeviceInfoResult`](doubao-apps-sdk-open-api.md#getdeviceinforesult)
916
+
917
+ 返回设备品牌、型号、系统、内存和性能等级等字段,见 [GetDeviceInfoResult](doubao-apps-sdk-open-api.md#getdeviceinforesult)。
918
+
919
+ #### Example
920
+
921
+ ```typescript
922
+ import { getDeviceInfoSync } from '@doubao-apps/framework/api';
923
+
924
+ const result = getDeviceInfoSync();
925
+
926
+ console.log(result.brand, result.model, result.system);
927
+ console.log(result.platform, result.benchmarkLevel);
928
+ ```
929
+
930
+ ***
931
+
858
932
  ### getFileSystemManager()
859
933
 
860
934
  > **getFileSystemManager**(): [`FileSystemManager`](doubao-apps-sdk-open-api.md#filesystemmanager)
@@ -1586,6 +1660,38 @@ Widget 登录参数。
1586
1660
 
1587
1661
  ***
1588
1662
 
1663
+ ### offLocationChange()
1664
+
1665
+ > **offLocationChange**(`callback`?): `void`
1666
+
1667
+ 取消注册地理位置变化回调。
1668
+
1669
+ #### Parameters
1670
+
1671
+ • **callback?**: [`LocationChangeListener`](doubao-apps-sdk-open-api.md#locationchangelistener)
1672
+
1673
+ #### Returns
1674
+
1675
+ `void`
1676
+
1677
+ ***
1678
+
1679
+ ### offLocationChangeError()
1680
+
1681
+ > **offLocationChangeError**(`callback`?): `void`
1682
+
1683
+ 取消注册位置更新异常回调。
1684
+
1685
+ #### Parameters
1686
+
1687
+ • **callback?**: [`LocationChangeErrorListener`](doubao-apps-sdk-open-api.md#locationchangeerrorlistener)
1688
+
1689
+ #### Returns
1690
+
1691
+ `void`
1692
+
1693
+ ***
1694
+
1589
1695
  ### onAccelerometerChange()
1590
1696
 
1591
1697
  > **onAccelerometerChange**(`handler`): () => `void`
@@ -1786,6 +1892,38 @@ const unsubscribe = onKeyboardHeightChange(({ height }) => {
1786
1892
 
1787
1893
  ***
1788
1894
 
1895
+ ### onLocationChange()
1896
+
1897
+ > **onLocationChange**(`callback`): `void`
1898
+
1899
+ 注册地理位置变化回调。
1900
+
1901
+ #### Parameters
1902
+
1903
+ • **callback**: [`LocationChangeListener`](doubao-apps-sdk-open-api.md#locationchangelistener)
1904
+
1905
+ #### Returns
1906
+
1907
+ `void`
1908
+
1909
+ ***
1910
+
1911
+ ### onLocationChangeError()
1912
+
1913
+ > **onLocationChangeError**(`callback`): `void`
1914
+
1915
+ 注册位置更新异常回调。
1916
+
1917
+ #### Parameters
1918
+
1919
+ • **callback**: [`LocationChangeErrorListener`](doubao-apps-sdk-open-api.md#locationchangeerrorlistener)
1920
+
1921
+ #### Returns
1922
+
1923
+ `void`
1924
+
1925
+ ***
1926
+
1789
1927
  ### onNetworkStatusChange()
1790
1928
 
1791
1929
  > **onNetworkStatusChange**(`handler`): () => `void`
@@ -1928,6 +2066,22 @@ off();
1928
2066
 
1929
2067
  ***
1930
2068
 
2069
+ ### openLocation()
2070
+
2071
+ > **openLocation**(`params`): `Promise`\<`object`\>
2072
+
2073
+ 使用地图查看位置。
2074
+
2075
+ #### Parameters
2076
+
2077
+ • **params**: [`OpenLocationParams`](doubao-apps-sdk-open-api.md#openlocationparams)
2078
+
2079
+ #### Returns
2080
+
2081
+ `Promise`\<`object`\>
2082
+
2083
+ ***
2084
+
1931
2085
  ### postLoginResult()
1932
2086
 
1933
2087
  > **postLoginResult**(`params`): `Promise`\<`object`\>
@@ -2754,6 +2908,26 @@ showToast({
2754
2908
 
2755
2909
  ***
2756
2910
 
2911
+ ### startLocationUpdate()
2912
+
2913
+ > **startLocationUpdate**(`params`?): `Promise`\<`object`\>
2914
+
2915
+ 开始接收位置更新。
2916
+
2917
+ #### Parameters
2918
+
2919
+ • **params?**: [`StartLocationUpdateParams`](doubao-apps-sdk-open-api.md#startlocationupdateparams)
2920
+
2921
+ #### Returns
2922
+
2923
+ `Promise`\<`object`\>
2924
+
2925
+ #### Remarks
2926
+
2927
+ 需配对调用 stopLocationUpdate。
2928
+
2929
+ ***
2930
+
2757
2931
  ### startWifi()
2758
2932
 
2759
2933
  > **startWifi**(`params`?): `Promise`\<`object`\>
@@ -2870,6 +3044,22 @@ Wi-Fi 流程入口。
2870
3044
 
2871
3045
  ***
2872
3046
 
3047
+ ### stopLocationUpdate()
3048
+
3049
+ > **stopLocationUpdate**(`params`?): `Promise`\<`object`\>
3050
+
3051
+ 停止接收位置更新。
3052
+
3053
+ #### Parameters
3054
+
3055
+ • **params?**
3056
+
3057
+ #### Returns
3058
+
3059
+ `Promise`\<`object`\>
3060
+
3061
+ ***
3062
+
2873
3063
  ### stopWifi()
2874
3064
 
2875
3065
  > **stopWifi**(`params`?): `Promise`\<`object`\>
@@ -3854,6 +4044,54 @@ H5 场景下可复用的 input 元素 ID。
3854
4044
 
3855
4045
  ***
3856
4046
 
4047
+ ### ChooseLocationParams
4048
+
4049
+ #### Properties
4050
+
4051
+ ##### latitude?
4052
+
4053
+ > `optional` **latitude**: `number`
4054
+
4055
+ 目标地纬度
4056
+
4057
+ ##### longitude?
4058
+
4059
+ > `optional` **longitude**: `number`
4060
+
4061
+ 目标地经度
4062
+
4063
+ ***
4064
+
4065
+ ### ChooseLocationResponse
4066
+
4067
+ #### Properties
4068
+
4069
+ ##### address?
4070
+
4071
+ > `optional` **address**: `string`
4072
+
4073
+ 地址详情
4074
+
4075
+ ##### latitude
4076
+
4077
+ > **latitude**: `number`
4078
+
4079
+ 纬度,GCJ-02 坐标系
4080
+
4081
+ ##### longitude
4082
+
4083
+ > **longitude**: `number`
4084
+
4085
+ 经度,GCJ-02 坐标系
4086
+
4087
+ ##### name?
4088
+
4089
+ > `optional` **name**: `string`
4090
+
4091
+ 位置名称
4092
+
4093
+ ***
4094
+
3857
4095
  ### ChooseMessageFile
3858
4096
 
3859
4097
  选择消息文件返回的单个文件信息。
@@ -5289,6 +5527,68 @@ RSSI 信号强度,单位 dBm。
5289
5527
 
5290
5528
  ***
5291
5529
 
5530
+ ### GetDeviceInfoResult
5531
+
5532
+ 设备基础信息。
5533
+
5534
+ #### Properties
5535
+
5536
+ ##### abi?
5537
+
5538
+ > `optional` **abi**: `string`
5539
+
5540
+ 宿主 App 二进制接口类型,仅 Android 支持。
5541
+
5542
+ ##### benchmarkLevel
5543
+
5544
+ > **benchmarkLevel**: `number`
5545
+
5546
+ 设备性能等级,值越高性能越好;-1 表示未知。
5547
+
5548
+ ##### brand
5549
+
5550
+ > **brand**: `string`
5551
+
5552
+ 设备品牌。
5553
+
5554
+ ##### cpuType?
5555
+
5556
+ > `optional` **cpuType**: `string`
5557
+
5558
+ 设备 CPU 型号,仅 Android 支持。
5559
+
5560
+ ##### deviceAbi?
5561
+
5562
+ > `optional` **deviceAbi**: `string`
5563
+
5564
+ 设备二进制接口类型,仅 Android 支持。
5565
+
5566
+ ##### memorySize
5567
+
5568
+ > **memorySize**: `string`
5569
+
5570
+ 设备内存大小,单位 MB。
5571
+
5572
+ ##### model
5573
+
5574
+ > **model**: `string`
5575
+
5576
+ 设备型号。
5577
+
5578
+ ##### platform
5579
+
5580
+ > **platform**: `string`
5581
+
5582
+ 客户端平台。
5583
+
5584
+ ##### system
5585
+
5586
+ > **system**: `string`
5587
+
5588
+ 操作系统及版本。
5589
+
5590
+ ***
5591
+
5292
5592
  ### GetFileInfoParams
5293
5593
 
5294
5594
  [FileSystemManager.getFileInfo](doubao-apps-sdk-open-api.md#getfileinfo) 的参数。
@@ -5927,6 +6227,90 @@ Wi-Fi 的系统开关
5927
6227
 
5928
6228
  ***
5929
6229
 
6230
+ ### LocationChangeErrorEvent
6231
+
6232
+ #### Properties
6233
+
6234
+ ##### errCode?
6235
+
6236
+ > `optional` **errCode**: `number`
6237
+
6238
+ 错误码
6239
+
6240
+ ##### errMsg
6241
+
6242
+ > **errMsg**: `string`
6243
+
6244
+ 错误信息
6245
+
6246
+ ***
6247
+
6248
+ ### LocationChangeEvent
6249
+
6250
+ #### Properties
6251
+
6252
+ ##### accuracy?
6253
+
6254
+ > `optional` **accuracy**: `number`
6255
+
6256
+ 位置精确度,单位 m
6257
+
6258
+ ##### altitude?
6259
+
6260
+ > `optional` **altitude**: `number`
6261
+
6262
+ 高度,单位 m
6263
+
6264
+ ##### city?
6265
+
6266
+ > `optional` **city**: `string`
6267
+
6268
+ 城市信息
6269
+
6270
+ ##### district?
6271
+
6272
+ > `optional` **district**: `string`
6273
+
6274
+ 区县信息
6275
+
6276
+ ##### horizontalAccuracy?
6277
+
6278
+ > `optional` **horizontalAccuracy**: `number`
6279
+
6280
+ 水平精度,单位 m
6281
+
6282
+ ##### latitude
6283
+
6284
+ > **latitude**: `number`
6285
+
6286
+ 纬度
6287
+
6288
+ ##### longitude
6289
+
6290
+ > **longitude**: `number`
6291
+
6292
+ 经度
6293
+
6294
+ ##### province?
6295
+
6296
+ > `optional` **province**: `string`
6297
+
6298
+ 省份信息
6299
+
6300
+ ##### speed?
6301
+
6302
+ > `optional` **speed**: `number`
6303
+
6304
+ 速度,单位 m/s
6305
+
6306
+ ##### verticalAccuracy?
6307
+
6308
+ > `optional` **verticalAccuracy**: `number`
6309
+
6310
+ 垂直精度,单位 m
6311
+
6312
+ ***
6313
+
5930
6314
  ### LoginRequest
5931
6315
 
5932
6316
  #### Properties
@@ -6217,6 +6601,42 @@ Execution status from client
6217
6601
 
6218
6602
  ***
6219
6603
 
6604
+ ### OpenLocationParams
6605
+
6606
+ #### Properties
6607
+
6608
+ ##### address?
6609
+
6610
+ > `optional` **address**: `string`
6611
+
6612
+ 地址详情
6613
+
6614
+ ##### latitude
6615
+
6616
+ > **latitude**: `number`
6617
+
6618
+ 纬度
6619
+
6620
+ ##### longitude
6621
+
6622
+ > **longitude**: `number`
6623
+
6624
+ 经度
6625
+
6626
+ ##### name?
6627
+
6628
+ > `optional` **name**: `string`
6629
+
6630
+ 位置名称
6631
+
6632
+ ##### scale?
6633
+
6634
+ > `optional` **scale**: `number`
6635
+
6636
+ 缩放比例,范围 5 ~ 18
6637
+
6638
+ ***
6639
+
6220
6640
  ### PluginAccountInfo
6221
6641
 
6222
6642
  插件账号信息(仅在插件中调用时包含)。
@@ -7657,6 +8077,18 @@ iOS 下是否忽略蓝牙可用性校验。
7657
8077
 
7658
8078
  ***
7659
8079
 
8080
+ ### StartLocationUpdateParams
8081
+
8082
+ #### Properties
8083
+
8084
+ ##### type?
8085
+
8086
+ > `optional` **type**: `"wgs84"` \| `"gcj02"`
8087
+
8088
+ 坐标系类型,支持 wgs84 或 gcj02
8089
+
8090
+ ***
8091
+
7660
8092
  ### StatParams
7661
8093
 
7662
8094
  [FileSystemManager.stat](doubao-apps-sdk-open-api.md#stat) 的参数。
@@ -8262,6 +8694,34 @@ iBeacon 距离等级。
8262
8694
 
8263
8695
  ***
8264
8696
 
8697
+ ### LocationChangeErrorListener()
8698
+
8699
+ > **LocationChangeErrorListener**: (`event`) => `void`
8700
+
8701
+ #### Parameters
8702
+
8703
+ • **event**: [`LocationChangeErrorEvent`](doubao-apps-sdk-open-api.md#locationchangeerrorevent)
8704
+
8705
+ #### Returns
8706
+
8707
+ `void`
8708
+
8709
+ ***
8710
+
8711
+ ### LocationChangeListener()
8712
+
8713
+ > **LocationChangeListener**: (`event`) => `void`
8714
+
8715
+ #### Parameters
8716
+
8717
+ • **event**: [`LocationChangeEvent`](doubao-apps-sdk-open-api.md#locationchangeevent)
8718
+
8719
+ #### Returns
8720
+
8721
+ `void`
8722
+
8723
+ ***
8724
+
8265
8725
  ### LoginType
8266
8726
 
8267
8727
  > **LoginType**: `0` \| `1` \| `2` \| `3`