@doubao-apps/ai 0.0.32 → 0.0.33
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/dist/733.js +41 -0
- package/dist/cli.js +1 -1
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/README.md +0 -32
- package/dist/contexts/doubao-apps-dev/references/reference/open-api.md +1 -366
- package/dist/index.js +1 -1
- package/dist/manifest.json +2 -2
- package/dist/skills/doubao-apps-dev/SKILL.md +4 -5
- package/dist/skills/doubao-apps-dev/references/reference/open-api/README.md +0 -32
- package/dist/skills/doubao-apps-dev/references/reference/open-api.md +1 -366
- package/dist/skills/h5-to-doubao/SKILL.md +1 -1
- package/package.json +1 -1
- package/dist/994.js +0 -41
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/01-/345/237/272/347/241/200-/350/264/246/345/217/267-/347/263/273/347/273/237.md +0 -536
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/02-/345/256/232/344/275/215.md +0 -359
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/03-/345/255/230/345/202/250.md +0 -409
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/04-/350/267/257/347/224/261.md +0 -165
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/05-/347/225/214/351/235/242-/344/272/244/344/272/222.md +0 -432
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/06-/347/225/214/351/235/242-/350/276/223/345/205/245.md +0 -72
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/07-/347/275/221/347/273/234.md +0 -468
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/08-/345/252/222/344/275/223.md +0 -346
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/09-/345/274/200/346/224/276/350/203/275/345/212/233-/344/270/232/345/212/241/350/203/275/345/212/233.md +0 -1238
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/10-/346/225/260/346/215/256/345/210/206/346/236/220.md +0 -67
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/11-/350/256/276/345/244/207-/350/223/235/347/211/231.md +0 -961
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/12-/350/256/276/345/244/207-wi-fi.md +0 -311
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/13-/350/256/276/345/244/207-/345/212/240/351/200/237/345/272/246/350/256/241.md +0 -104
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/14-/350/256/276/345/244/207-ibeacon.md +0 -148
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/15-/350/256/276/345/244/207-/347/275/227/347/233/230.md +0 -82
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/16-/350/256/276/345/244/207-/350/256/276/345/244/207/346/226/271/345/220/221.md +0 -104
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/17-/350/256/276/345/244/207-/351/231/200/350/236/272/344/273/252.md +0 -104
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/18-ui-/350/276/223/345/205/245.md +0 -49
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/19-/350/256/276/345/244/207-/347/275/221/347/273/234.md +0 -164
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/20-/350/256/276/345/244/207-/347/237/255/344/277/241.md +0 -62
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/21-/350/256/276/345/244/207-/346/227/240/351/232/234/347/242/215.md +0 -43
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/22-/350/256/276/345/244/207-/345/237/272/347/241/200/344/277/241/346/201/257.md +0 -133
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/23-/350/256/276/345/244/207-/347/224/265/346/261/240.md +0 -83
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/24-/350/256/276/345/244/207-/346/227/245/345/216/206.md +0 -215
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/25-/350/256/276/345/244/207-/345/211/252/350/264/264/346/235/277.md +0 -70
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/26-/350/256/276/345/244/207-/350/201/224/347/263/273/344/272/272.md +0 -270
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/27-/350/256/276/345/244/207-/345/212/240/345/257/206.md +0 -56
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/28-/350/256/276/345/244/207-/347/224/265/350/257/235.md +0 -41
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/29-/350/256/276/345/244/207-/346/211/253/347/240/201.md +0 -100
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/30-/350/256/276/345/244/207-/345/261/217/345/271/225.md +0 -173
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/31-/350/256/276/345/244/207-/351/234/207/345/212/250.md +0 -66
- package/dist/contexts/doubao-apps-dev/references/reference/open-api/32-/346/226/207/344/273/266/347/263/273/347/273/237.md +0 -1043
- package/dist/skills/doubao-apps-dev/references/reference/open-api/01-/345/237/272/347/241/200-/350/264/246/345/217/267-/347/263/273/347/273/237.md +0 -536
- package/dist/skills/doubao-apps-dev/references/reference/open-api/02-/345/256/232/344/275/215.md +0 -359
- package/dist/skills/doubao-apps-dev/references/reference/open-api/03-/345/255/230/345/202/250.md +0 -409
- package/dist/skills/doubao-apps-dev/references/reference/open-api/04-/350/267/257/347/224/261.md +0 -165
- package/dist/skills/doubao-apps-dev/references/reference/open-api/05-/347/225/214/351/235/242-/344/272/244/344/272/222.md +0 -432
- package/dist/skills/doubao-apps-dev/references/reference/open-api/06-/347/225/214/351/235/242-/350/276/223/345/205/245.md +0 -72
- package/dist/skills/doubao-apps-dev/references/reference/open-api/07-/347/275/221/347/273/234.md +0 -468
- package/dist/skills/doubao-apps-dev/references/reference/open-api/08-/345/252/222/344/275/223.md +0 -346
- package/dist/skills/doubao-apps-dev/references/reference/open-api/09-/345/274/200/346/224/276/350/203/275/345/212/233-/344/270/232/345/212/241/350/203/275/345/212/233.md +0 -1238
- package/dist/skills/doubao-apps-dev/references/reference/open-api/10-/346/225/260/346/215/256/345/210/206/346/236/220.md +0 -67
- package/dist/skills/doubao-apps-dev/references/reference/open-api/11-/350/256/276/345/244/207-/350/223/235/347/211/231.md +0 -961
- package/dist/skills/doubao-apps-dev/references/reference/open-api/12-/350/256/276/345/244/207-wi-fi.md +0 -311
- package/dist/skills/doubao-apps-dev/references/reference/open-api/13-/350/256/276/345/244/207-/345/212/240/351/200/237/345/272/246/350/256/241.md +0 -104
- package/dist/skills/doubao-apps-dev/references/reference/open-api/14-/350/256/276/345/244/207-ibeacon.md +0 -148
- package/dist/skills/doubao-apps-dev/references/reference/open-api/15-/350/256/276/345/244/207-/347/275/227/347/233/230.md +0 -82
- package/dist/skills/doubao-apps-dev/references/reference/open-api/16-/350/256/276/345/244/207-/350/256/276/345/244/207/346/226/271/345/220/221.md +0 -104
- package/dist/skills/doubao-apps-dev/references/reference/open-api/17-/350/256/276/345/244/207-/351/231/200/350/236/272/344/273/252.md +0 -104
- package/dist/skills/doubao-apps-dev/references/reference/open-api/18-ui-/350/276/223/345/205/245.md +0 -49
- package/dist/skills/doubao-apps-dev/references/reference/open-api/19-/350/256/276/345/244/207-/347/275/221/347/273/234.md +0 -164
- package/dist/skills/doubao-apps-dev/references/reference/open-api/20-/350/256/276/345/244/207-/347/237/255/344/277/241.md +0 -62
- package/dist/skills/doubao-apps-dev/references/reference/open-api/21-/350/256/276/345/244/207-/346/227/240/351/232/234/347/242/215.md +0 -43
- package/dist/skills/doubao-apps-dev/references/reference/open-api/22-/350/256/276/345/244/207-/345/237/272/347/241/200/344/277/241/346/201/257.md +0 -133
- package/dist/skills/doubao-apps-dev/references/reference/open-api/23-/350/256/276/345/244/207-/347/224/265/346/261/240.md +0 -83
- package/dist/skills/doubao-apps-dev/references/reference/open-api/24-/350/256/276/345/244/207-/346/227/245/345/216/206.md +0 -215
- package/dist/skills/doubao-apps-dev/references/reference/open-api/25-/350/256/276/345/244/207-/345/211/252/350/264/264/346/235/277.md +0 -70
- package/dist/skills/doubao-apps-dev/references/reference/open-api/26-/350/256/276/345/244/207-/350/201/224/347/263/273/344/272/272.md +0 -270
- package/dist/skills/doubao-apps-dev/references/reference/open-api/27-/350/256/276/345/244/207-/345/212/240/345/257/206.md +0 -56
- package/dist/skills/doubao-apps-dev/references/reference/open-api/28-/350/256/276/345/244/207-/347/224/265/350/257/235.md +0 -41
- package/dist/skills/doubao-apps-dev/references/reference/open-api/29-/350/256/276/345/244/207-/346/211/253/347/240/201.md +0 -100
- package/dist/skills/doubao-apps-dev/references/reference/open-api/30-/350/256/276/345/244/207-/345/261/217/345/271/225.md +0 -173
- package/dist/skills/doubao-apps-dev/references/reference/open-api/31-/350/256/276/345/244/207-/351/234/207/345/212/250.md +0 -66
- package/dist/skills/doubao-apps-dev/references/reference/open-api/32-/346/226/207/344/273/266/347/263/273/347/273/237.md +0 -1043
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
# Open API: 设备 / 扫码
|
|
2
|
-
|
|
3
|
-
调起扫码并读取扫码结果。
|
|
4
|
-
|
|
5
|
-
[返回目录](./README.md) | [返回速查](../open-api.md)
|
|
6
|
-
|
|
7
|
-
## 速查
|
|
8
|
-
|
|
9
|
-
| API | 说明 |
|
|
10
|
-
| --- | --- |
|
|
11
|
-
| [scanCode](#scancode) | 调起扫码能力。 |
|
|
12
|
-
|
|
13
|
-
## API 详情
|
|
14
|
-
|
|
15
|
-
<a id="scancode"></a>
|
|
16
|
-
### scanCode()
|
|
17
|
-
|
|
18
|
-
> **scanCode**(`params`?): `Promise`\<[`ScanCodeResult`](#scancoderesult)\>
|
|
19
|
-
|
|
20
|
-
调起扫码能力。
|
|
21
|
-
|
|
22
|
-
#### Parameters
|
|
23
|
-
|
|
24
|
-
• **params?**: [`ScanCodeParams`](#scancodeparams)
|
|
25
|
-
|
|
26
|
-
#### Returns
|
|
27
|
-
|
|
28
|
-
`Promise`\<[`ScanCodeResult`](#scancoderesult)\>
|
|
29
|
-
|
|
30
|
-
## 相关类型
|
|
31
|
-
|
|
32
|
-
<a id="scancodeparams"></a>
|
|
33
|
-
### ScanCodeParams
|
|
34
|
-
|
|
35
|
-
扫码请求参数。
|
|
36
|
-
|
|
37
|
-
#### Properties
|
|
38
|
-
|
|
39
|
-
##### onlyFromCamera?
|
|
40
|
-
|
|
41
|
-
> `optional` **onlyFromCamera**: `boolean`
|
|
42
|
-
|
|
43
|
-
是否仅允许从相机扫码。
|
|
44
|
-
|
|
45
|
-
##### scanType?
|
|
46
|
-
|
|
47
|
-
> `optional` **scanType**: [`ScanCodeType`](#scancodetype)[]
|
|
48
|
-
|
|
49
|
-
允许的扫码类型。
|
|
50
|
-
|
|
51
|
-
<a id="scancoderesult"></a>
|
|
52
|
-
### ScanCodeResult
|
|
53
|
-
|
|
54
|
-
扫码返回结果。
|
|
55
|
-
|
|
56
|
-
#### Properties
|
|
57
|
-
|
|
58
|
-
##### characterSet
|
|
59
|
-
|
|
60
|
-
> **characterSet**: `string`
|
|
61
|
-
|
|
62
|
-
字符集。
|
|
63
|
-
|
|
64
|
-
##### path
|
|
65
|
-
|
|
66
|
-
> **path**: `string`
|
|
67
|
-
|
|
68
|
-
当前宿主可识别的页面路径。
|
|
69
|
-
|
|
70
|
-
##### rawData
|
|
71
|
-
|
|
72
|
-
> **rawData**: `string`
|
|
73
|
-
|
|
74
|
-
原始数据,通常为 Base64 字符串。
|
|
75
|
-
|
|
76
|
-
##### result
|
|
77
|
-
|
|
78
|
-
> **result**: `string`
|
|
79
|
-
|
|
80
|
-
扫码结果文本。
|
|
81
|
-
|
|
82
|
-
##### scanType
|
|
83
|
-
|
|
84
|
-
> **scanType**: [`ScanResultType`](#scanresulttype)
|
|
85
|
-
|
|
86
|
-
扫码结果类型。
|
|
87
|
-
|
|
88
|
-
<a id="scancodetype"></a>
|
|
89
|
-
### ScanCodeType
|
|
90
|
-
|
|
91
|
-
> **ScanCodeType**: `"barCode"` \| `"qrCode"` \| `"datamatrix"` \| `"pdf417"`
|
|
92
|
-
|
|
93
|
-
扫码类型。
|
|
94
|
-
|
|
95
|
-
<a id="scanresulttype"></a>
|
|
96
|
-
### ScanResultType
|
|
97
|
-
|
|
98
|
-
> **ScanResultType**: `"QR_CODE"` \| `"AZTEC"` \| `"CODABAR"` \| `"CODE_39"` \| `"CODE_93"` \| `"CODE_128"` \| `"DATA_MATRIX"` \| `"EAN_8"` \| `"EAN_13"` \| `"ITF"` \| `"MAXICODE"` \| `"PDF_417"` \| `"RSS_14"` \| `"RSS_EXPANDED"` \| `"UPC_A"` \| `"UPC_E"` \| `"UPC_EAN_EXTENSION"` \| `"WX_CODE"` \| `"CODE_25"`
|
|
99
|
-
|
|
100
|
-
扫码结果类型。
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
# Open API: 设备 / 屏幕
|
|
2
|
-
|
|
3
|
-
屏幕亮度、常亮和截屏/录屏相关能力。
|
|
4
|
-
|
|
5
|
-
[返回目录](./README.md) | [返回速查](../open-api.md)
|
|
6
|
-
|
|
7
|
-
## 速查
|
|
8
|
-
|
|
9
|
-
| API | 说明 |
|
|
10
|
-
| --- | --- |
|
|
11
|
-
| [getScreenBrightness](#getscreenbrightness) | 获取屏幕亮度。 |
|
|
12
|
-
| [setVisualEffectOnCapture](#setvisualeffectoncapture) | 设置截屏或录屏时的视觉表现。<br><br>控制截屏或录屏时的视觉效果。 |
|
|
13
|
-
| [setScreenBrightness](#setscreenbrightness) | 设置屏幕亮度。 |
|
|
14
|
-
| [setKeepScreenOn](#setkeepscreenon) | 设置屏幕常亮状态。 |
|
|
15
|
-
| [onUserCaptureScreen](#onusercapturescreen) | 监听用户主动截屏事件。<br><br>返回取消监听函数。 |
|
|
16
|
-
|
|
17
|
-
## API 详情
|
|
18
|
-
|
|
19
|
-
<a id="getscreenbrightness"></a>
|
|
20
|
-
### getScreenBrightness()
|
|
21
|
-
|
|
22
|
-
> **getScreenBrightness**(`params`?): `Promise`\<[`GetScreenBrightnessResult`](#getscreenbrightnessresult)\>
|
|
23
|
-
|
|
24
|
-
获取屏幕亮度。
|
|
25
|
-
|
|
26
|
-
#### Parameters
|
|
27
|
-
|
|
28
|
-
• **params?**
|
|
29
|
-
|
|
30
|
-
#### Returns
|
|
31
|
-
|
|
32
|
-
`Promise`\<[`GetScreenBrightnessResult`](#getscreenbrightnessresult)\>
|
|
33
|
-
|
|
34
|
-
<a id="setvisualeffectoncapture"></a>
|
|
35
|
-
### setVisualEffectOnCapture()
|
|
36
|
-
|
|
37
|
-
> **setVisualEffectOnCapture**(`params`?): `Promise`\<`object`\>
|
|
38
|
-
|
|
39
|
-
设置截屏或录屏时的视觉表现。
|
|
40
|
-
|
|
41
|
-
#### Parameters
|
|
42
|
-
|
|
43
|
-
• **params?**: [`SetVisualEffectOnCaptureParams`](#setvisualeffectoncaptureparams)
|
|
44
|
-
|
|
45
|
-
#### Returns
|
|
46
|
-
|
|
47
|
-
`Promise`\<`object`\>
|
|
48
|
-
|
|
49
|
-
#### Remarks
|
|
50
|
-
|
|
51
|
-
控制截屏或录屏时的视觉效果。
|
|
52
|
-
|
|
53
|
-
<a id="setscreenbrightness"></a>
|
|
54
|
-
### setScreenBrightness()
|
|
55
|
-
|
|
56
|
-
> **setScreenBrightness**(`params`): `Promise`\<`object`\>
|
|
57
|
-
|
|
58
|
-
设置屏幕亮度。
|
|
59
|
-
|
|
60
|
-
#### Parameters
|
|
61
|
-
|
|
62
|
-
• **params**: [`SetScreenBrightnessParams`](#setscreenbrightnessparams)
|
|
63
|
-
|
|
64
|
-
#### Returns
|
|
65
|
-
|
|
66
|
-
`Promise`\<`object`\>
|
|
67
|
-
|
|
68
|
-
<a id="setkeepscreenon"></a>
|
|
69
|
-
### setKeepScreenOn()
|
|
70
|
-
|
|
71
|
-
> **setKeepScreenOn**(`params`): `Promise`\<`object`\>
|
|
72
|
-
|
|
73
|
-
设置屏幕常亮状态。
|
|
74
|
-
|
|
75
|
-
#### Parameters
|
|
76
|
-
|
|
77
|
-
• **params**: [`SetKeepScreenOnParams`](#setkeepscreenonparams)
|
|
78
|
-
|
|
79
|
-
#### Returns
|
|
80
|
-
|
|
81
|
-
`Promise`\<`object`\>
|
|
82
|
-
|
|
83
|
-
<a id="onusercapturescreen"></a>
|
|
84
|
-
### onUserCaptureScreen()
|
|
85
|
-
|
|
86
|
-
> **onUserCaptureScreen**(`handler`): () => `void`
|
|
87
|
-
|
|
88
|
-
监听用户主动截屏事件。
|
|
89
|
-
|
|
90
|
-
#### Parameters
|
|
91
|
-
|
|
92
|
-
• **handler**
|
|
93
|
-
|
|
94
|
-
#### Returns
|
|
95
|
-
|
|
96
|
-
`Function`
|
|
97
|
-
|
|
98
|
-
返回取消当前监听函数的函数。
|
|
99
|
-
|
|
100
|
-
##### Returns
|
|
101
|
-
|
|
102
|
-
`void`
|
|
103
|
-
|
|
104
|
-
#### Example
|
|
105
|
-
|
|
106
|
-
```ts
|
|
107
|
-
import { onUserCaptureScreen } from '@byted-doubao-apps/framework/api';
|
|
108
|
-
|
|
109
|
-
const off = onUserCaptureScreen(() => {
|
|
110
|
-
console.log('用户截屏了');
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
off();
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
## 相关类型
|
|
117
|
-
|
|
118
|
-
<a id="getscreenbrightnessresult"></a>
|
|
119
|
-
### GetScreenBrightnessResult
|
|
120
|
-
|
|
121
|
-
#### Properties
|
|
122
|
-
|
|
123
|
-
##### value
|
|
124
|
-
|
|
125
|
-
> **value**: `number`
|
|
126
|
-
|
|
127
|
-
屏幕亮度值,范围 0 ~ 1,0 最暗,1 最亮
|
|
128
|
-
|
|
129
|
-
<a id="setvisualeffectoncaptureparams"></a>
|
|
130
|
-
### SetVisualEffectOnCaptureParams
|
|
131
|
-
|
|
132
|
-
设置截屏或录屏视觉效果的请求参数。
|
|
133
|
-
|
|
134
|
-
#### Properties
|
|
135
|
-
|
|
136
|
-
##### visualEffect?
|
|
137
|
-
|
|
138
|
-
> `optional` **visualEffect**: [`CaptureVisualEffect`](#capturevisualeffect)
|
|
139
|
-
|
|
140
|
-
截屏或录屏时的视觉表现。
|
|
141
|
-
|
|
142
|
-
<a id="capturevisualeffect"></a>
|
|
143
|
-
### CaptureVisualEffect
|
|
144
|
-
|
|
145
|
-
> **CaptureVisualEffect**: `"none"` \| `"hidden"`
|
|
146
|
-
|
|
147
|
-
录屏或截屏时的视觉表现。
|
|
148
|
-
|
|
149
|
-
<a id="setscreenbrightnessparams"></a>
|
|
150
|
-
### SetScreenBrightnessParams
|
|
151
|
-
|
|
152
|
-
设置屏幕亮度的请求参数。
|
|
153
|
-
|
|
154
|
-
#### Properties
|
|
155
|
-
|
|
156
|
-
##### value
|
|
157
|
-
|
|
158
|
-
> **value**: `number`
|
|
159
|
-
|
|
160
|
-
屏幕亮度值,范围 0 ~ 1。
|
|
161
|
-
|
|
162
|
-
<a id="setkeepscreenonparams"></a>
|
|
163
|
-
### SetKeepScreenOnParams
|
|
164
|
-
|
|
165
|
-
设置屏幕常亮的请求参数。
|
|
166
|
-
|
|
167
|
-
#### Properties
|
|
168
|
-
|
|
169
|
-
##### keepScreenOn
|
|
170
|
-
|
|
171
|
-
> **keepScreenOn**: `boolean`
|
|
172
|
-
|
|
173
|
-
是否保持屏幕常亮。
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# Open API: 设备 / 震动
|
|
2
|
-
|
|
3
|
-
触发短震动和长震动。
|
|
4
|
-
|
|
5
|
-
[返回目录](./README.md) | [返回速查](../open-api.md)
|
|
6
|
-
|
|
7
|
-
## 速查
|
|
8
|
-
|
|
9
|
-
| API | 说明 |
|
|
10
|
-
| --- | --- |
|
|
11
|
-
| [vibrateShort](#vibrateshort) | 触发短震动。 |
|
|
12
|
-
| [vibrateLong](#vibratelong) | 触发长震动。 |
|
|
13
|
-
|
|
14
|
-
## API 详情
|
|
15
|
-
|
|
16
|
-
<a id="vibrateshort"></a>
|
|
17
|
-
### vibrateShort()
|
|
18
|
-
|
|
19
|
-
> **vibrateShort**(`params`?): `Promise`\<`object`\>
|
|
20
|
-
|
|
21
|
-
触发短震动。
|
|
22
|
-
|
|
23
|
-
#### Parameters
|
|
24
|
-
|
|
25
|
-
• **params?**: [`VibrateShortParams`](#vibrateshortparams)
|
|
26
|
-
|
|
27
|
-
#### Returns
|
|
28
|
-
|
|
29
|
-
`Promise`\<`object`\>
|
|
30
|
-
|
|
31
|
-
<a id="vibratelong"></a>
|
|
32
|
-
### vibrateLong()
|
|
33
|
-
|
|
34
|
-
> **vibrateLong**(`params`?): `Promise`\<`object`\>
|
|
35
|
-
|
|
36
|
-
触发长震动。
|
|
37
|
-
|
|
38
|
-
#### Parameters
|
|
39
|
-
|
|
40
|
-
• **params?**
|
|
41
|
-
|
|
42
|
-
#### Returns
|
|
43
|
-
|
|
44
|
-
`Promise`\<`object`\>
|
|
45
|
-
|
|
46
|
-
## 相关类型
|
|
47
|
-
|
|
48
|
-
<a id="vibrateshortparams"></a>
|
|
49
|
-
### VibrateShortParams
|
|
50
|
-
|
|
51
|
-
短震动请求参数。
|
|
52
|
-
|
|
53
|
-
#### Properties
|
|
54
|
-
|
|
55
|
-
##### type?
|
|
56
|
-
|
|
57
|
-
> `optional` **type**: [`VibrateShortType`](#vibrateshorttype)
|
|
58
|
-
|
|
59
|
-
震动强度类型。
|
|
60
|
-
|
|
61
|
-
<a id="vibrateshorttype"></a>
|
|
62
|
-
### VibrateShortType
|
|
63
|
-
|
|
64
|
-
> **VibrateShortType**: `"heavy"` \| `"medium"` \| `"light"`
|
|
65
|
-
|
|
66
|
-
短震动类型。
|