@doubao-apps/create 0.0.25 → 0.0.26

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 (33) hide show
  1. package/dist/template-empty/.ai/reference/open-api/01-/345/237/272/347/241/200-/350/264/246/345/217/267-/347/263/273/347/273/237.md +699 -0
  2. package/dist/template-empty/.ai/reference/open-api/02-storage.md +417 -0
  3. package/dist/template-empty/.ai/reference/open-api/03-router.md +165 -0
  4. package/dist/template-empty/.ai/reference/open-api/04-ui-/344/272/244/344/272/222.md +432 -0
  5. package/dist/template-empty/.ai/reference/open-api/05-ui-/350/276/223/345/205/245.md +95 -0
  6. package/dist/template-empty/.ai/reference/open-api/06-network.md +298 -0
  7. package/dist/template-empty/.ai/reference/open-api/07-media.md +346 -0
  8. package/dist/template-empty/.ai/reference/open-api/08-open-/344/270/232/345/212/241/350/203/275/345/212/233.md +477 -0
  9. package/dist/template-empty/.ai/reference/open-api/09-device-bluetooth.md +985 -0
  10. package/dist/template-empty/.ai/reference/open-api/10-device-wi-fi.md +277 -0
  11. package/dist/template-empty/.ai/reference/open-api/11-device-/344/274/240/346/204/237/345/231/250.md +372 -0
  12. package/dist/template-empty/.ai/reference/open-api/12-device-/346/234/254/345/234/260/350/203/275/345/212/233.md +1005 -0
  13. package/dist/template-empty/.ai/reference/open-api/README.md +20 -0
  14. package/dist/template-empty/.ai/reference/open-api.md +1532 -307
  15. package/dist/template-empty/AGENTS.md +2 -2
  16. package/dist/template-empty/package.json +2 -2
  17. package/dist/template-starter/.ai/reference/open-api/01-/345/237/272/347/241/200-/350/264/246/345/217/267-/347/263/273/347/273/237.md +699 -0
  18. package/dist/template-starter/.ai/reference/open-api/02-storage.md +417 -0
  19. package/dist/template-starter/.ai/reference/open-api/03-router.md +165 -0
  20. package/dist/template-starter/.ai/reference/open-api/04-ui-/344/272/244/344/272/222.md +432 -0
  21. package/dist/template-starter/.ai/reference/open-api/05-ui-/350/276/223/345/205/245.md +95 -0
  22. package/dist/template-starter/.ai/reference/open-api/06-network.md +298 -0
  23. package/dist/template-starter/.ai/reference/open-api/07-media.md +346 -0
  24. package/dist/template-starter/.ai/reference/open-api/08-open-/344/270/232/345/212/241/350/203/275/345/212/233.md +477 -0
  25. package/dist/template-starter/.ai/reference/open-api/09-device-bluetooth.md +985 -0
  26. package/dist/template-starter/.ai/reference/open-api/10-device-wi-fi.md +277 -0
  27. package/dist/template-starter/.ai/reference/open-api/11-device-/344/274/240/346/204/237/345/231/250.md +372 -0
  28. package/dist/template-starter/.ai/reference/open-api/12-device-/346/234/254/345/234/260/350/203/275/345/212/233.md +1005 -0
  29. package/dist/template-starter/.ai/reference/open-api/README.md +20 -0
  30. package/dist/template-starter/.ai/reference/open-api.md +1532 -307
  31. package/dist/template-starter/AGENTS.md +2 -2
  32. package/dist/template-starter/package.json +2 -2
  33. package/package.json +1 -1
@@ -0,0 +1,1005 @@
1
+ # Open API: Device / 本地能力
2
+
3
+ 剪贴板、电话、联系人、日历、扫码、屏幕、震动等系统能力。
4
+
5
+ [返回目录](./README.md) | [返回速查](../open-api.md)
6
+
7
+ ## 速查
8
+
9
+ | API | 签名 | 用途 | 参数类型 | 结果类型 | 注意点 |
10
+ | --- | --- | --- | --- | --- | --- |
11
+ | [`sendSms`](#sendsms) | `sendSms(params?): Promise<object>` | 拉起系统短信发送面板 | `params?: SendSmsParams` | `Promise<object>` | - |
12
+ | [`checkIsOpenAccessibility`](#checkisopenaccessibility) | `checkIsOpenAccessibility(params?): Promise<CheckIsOpenAccessibilityResult>` | 检测无障碍能力是否开启 | `params?` | `Promise<CheckIsOpenAccessibilityResult>` | - |
13
+ | [`getBatteryInfo`](#getbatteryinfo) | `getBatteryInfo(params?): Promise<GetBatteryInfoResult>` | 获取电池信息 | `params?` | `Promise<GetBatteryInfoResult>` | - |
14
+ | [`addPhoneCalendar`](#addphonecalendar) | `addPhoneCalendar(params): Promise<object>` | 向系统日历添加事件 | `params: AddPhoneCalendarParams` | `Promise<object>` | - |
15
+ | [`addPhoneRepeatCalendar`](#addphonerepeatcalendar) | `addPhoneRepeatCalendar(params): Promise<object>` | 向系统日历添加重复事件 | `params: AddPhoneRepeatCalendarParams` | `Promise<object>` | - |
16
+ | [`getClipboardData`](#getclipboarddata) | `getClipboardData(params?): Promise<GetClipboardDataResult>` | 获取剪贴板内容 | `params?` | `Promise<GetClipboardDataResult>` | - |
17
+ | [`setClipboardData`](#setclipboarddata) | `setClipboardData(params): Promise<object>` | 设置系统剪贴板内容 | `params: SetClipboardDataParams` | `Promise<object>` | - |
18
+ | [`chooseContact`](#choosecontact) | `chooseContact(params?): Promise<ChooseContactResult>` | 选择手机联系人 | `params?` | `Promise<ChooseContactResult>` | - |
19
+ | [`addPhoneContact`](#addphonecontact) | `addPhoneContact(params): Promise<object>` | 添加手机联系人 | `params: AddPhoneContactParams` | `Promise<object>` | - |
20
+ | [`getRandomValues`](#getrandomvalues) | `getRandomValues(params): Promise<GetRandomValuesResult>` | 获取安全随机数 | `params: GetRandomValuesParams` | `Promise<GetRandomValuesResult>` | - |
21
+ | [`makePhoneCall`](#makephonecall) | `makePhoneCall(params): Promise<object>` | 拨打电话 | `params: MakePhoneCallParams` | `Promise<object>` | - |
22
+ | [`scanCode`](#scancode) | `scanCode(params?): Promise<ScanCodeResult>` | 调起扫码能力 | `params?: ScanCodeParams` | `Promise<ScanCodeResult>` | - |
23
+ | [`getScreenBrightness`](#getscreenbrightness) | `getScreenBrightness(params?): Promise<GetScreenBrightnessResult>` | 获取屏幕亮度 | `params?` | `Promise<GetScreenBrightnessResult>` | - |
24
+ | [`setVisualEffectOnCapture`](#setvisualeffectoncapture) | `setVisualEffectOnCapture(params?): Promise<object>` | 设置截屏或录屏时的视觉表现 | `params?: SetVisualEffectOnCaptureParams` | `Promise<object>` | 控制截屏或录屏时的视觉效果 |
25
+ | [`setScreenBrightness`](#setscreenbrightness) | `setScreenBrightness(params): Promise<object>` | 设置屏幕亮度 | `params: SetScreenBrightnessParams` | `Promise<object>` | - |
26
+ | [`setKeepScreenOn`](#setkeepscreenon) | `setKeepScreenOn(params): Promise<object>` | 设置屏幕常亮状态 | `params: SetKeepScreenOnParams` | `Promise<object>` | - |
27
+ | [`onUserCaptureScreen`](#onusercapturescreen) | `onUserCaptureScreen(handler): () => void` | 监听用户主动截屏事件 | `handler` | `() => void` | 返回取消监听函数 |
28
+ | [`vibrateShort`](#vibrateshort) | `vibrateShort(params?): Promise<object>` | 触发短震动 | `params?: VibrateShortParams` | `Promise<object>` | - |
29
+ | [`vibrateLong`](#vibratelong) | `vibrateLong(params?): Promise<object>` | 触发长震动 | `params?` | `Promise<object>` | - |
30
+
31
+ ## API 详情
32
+
33
+ <a id="sendsms"></a>
34
+ ### sendSms()
35
+
36
+ > **sendSms**(`params`?): `Promise`\<`object`\>
37
+
38
+ 拉起系统短信发送面板。
39
+
40
+ #### Parameters
41
+
42
+ • **params?**: [`SendSmsParams`](#sendsmsparams)
43
+
44
+ #### Returns
45
+
46
+ `Promise`\<`object`\>
47
+
48
+ 返回一个 Promise,在成功拉起短信发送面板时解析。
49
+
50
+ #### Example
51
+
52
+ ```typescript
53
+ import { sendSms } from '@doubao-apps/framework/api';
54
+
55
+ await sendSms({
56
+ phoneNumber: '10086',
57
+ message: '查询话费'
58
+ });
59
+ ```
60
+
61
+ <a id="checkisopenaccessibility"></a>
62
+ ### checkIsOpenAccessibility()
63
+
64
+ > **checkIsOpenAccessibility**(`params`?): `Promise`\<[`CheckIsOpenAccessibilityResult`](#checkisopenaccessibilityresult)\>
65
+
66
+ 检测无障碍能力是否开启。
67
+
68
+ #### Parameters
69
+
70
+ • **params?**
71
+
72
+ #### Returns
73
+
74
+ `Promise`\<[`CheckIsOpenAccessibilityResult`](#checkisopenaccessibilityresult)\>
75
+
76
+ <a id="getbatteryinfo"></a>
77
+ ### getBatteryInfo()
78
+
79
+ > **getBatteryInfo**(`params`?): `Promise`\<[`GetBatteryInfoResult`](#getbatteryinforesult)\>
80
+
81
+ 获取电池信息。
82
+
83
+ #### Parameters
84
+
85
+ • **params?**
86
+
87
+ #### Returns
88
+
89
+ `Promise`\<[`GetBatteryInfoResult`](#getbatteryinforesult)\>
90
+
91
+ <a id="addphonecalendar"></a>
92
+ ### addPhoneCalendar()
93
+
94
+ > **addPhoneCalendar**(`params`): `Promise`\<`object`\>
95
+
96
+ 向系统日历添加事件。
97
+
98
+ #### Parameters
99
+
100
+ • **params**: [`AddPhoneCalendarParams`](#addphonecalendarparams)
101
+
102
+ #### Returns
103
+
104
+ `Promise`\<`object`\>
105
+
106
+ <a id="addphonerepeatcalendar"></a>
107
+ ### addPhoneRepeatCalendar()
108
+
109
+ > **addPhoneRepeatCalendar**(`params`): `Promise`\<`object`\>
110
+
111
+ 向系统日历添加重复事件。
112
+
113
+ #### Parameters
114
+
115
+ • **params**: [`AddPhoneRepeatCalendarParams`](#addphonerepeatcalendarparams)
116
+
117
+ #### Returns
118
+
119
+ `Promise`\<`object`\>
120
+
121
+ <a id="getclipboarddata"></a>
122
+ ### getClipboardData()
123
+
124
+ > **getClipboardData**(`params`?): `Promise`\<[`GetClipboardDataResult`](#getclipboarddataresult)\>
125
+
126
+ 获取剪贴板内容。
127
+
128
+ #### Parameters
129
+
130
+ • **params?**
131
+
132
+ #### Returns
133
+
134
+ `Promise`\<[`GetClipboardDataResult`](#getclipboarddataresult)\>
135
+
136
+ <a id="setclipboarddata"></a>
137
+ ### setClipboardData()
138
+
139
+ > **setClipboardData**(`params`): `Promise`\<`object`\>
140
+
141
+ 设置系统剪贴板内容。
142
+
143
+ #### Parameters
144
+
145
+ • **params**: [`SetClipboardDataParams`](#setclipboarddataparams)
146
+
147
+ #### Returns
148
+
149
+ `Promise`\<`object`\>
150
+
151
+ <a id="choosecontact"></a>
152
+ ### chooseContact()
153
+
154
+ > **chooseContact**(`params`?): `Promise`\<[`ChooseContactResult`](#choosecontactresult)\>
155
+
156
+ 选择手机联系人。
157
+
158
+ #### Parameters
159
+
160
+ • **params?**
161
+
162
+ #### Returns
163
+
164
+ `Promise`\<[`ChooseContactResult`](#choosecontactresult)\>
165
+
166
+ <a id="addphonecontact"></a>
167
+ ### addPhoneContact()
168
+
169
+ > **addPhoneContact**(`params`): `Promise`\<`object`\>
170
+
171
+ 添加手机联系人。
172
+
173
+ #### Parameters
174
+
175
+ • **params**: [`AddPhoneContactParams`](#addphonecontactparams)
176
+
177
+ #### Returns
178
+
179
+ `Promise`\<`object`\>
180
+
181
+ <a id="getrandomvalues"></a>
182
+ ### getRandomValues()
183
+
184
+ > **getRandomValues**(`params`): `Promise`\<[`GetRandomValuesResult`](#getrandomvaluesresult)\>
185
+
186
+ 获取安全随机数。
187
+
188
+ #### Parameters
189
+
190
+ • **params**: [`GetRandomValuesParams`](#getrandomvaluesparams)
191
+
192
+ #### Returns
193
+
194
+ `Promise`\<[`GetRandomValuesResult`](#getrandomvaluesresult)\>
195
+
196
+ <a id="makephonecall"></a>
197
+ ### makePhoneCall()
198
+
199
+ > **makePhoneCall**(`params`): `Promise`\<`object`\>
200
+
201
+ 拨打电话。
202
+
203
+ #### Parameters
204
+
205
+ • **params**: [`MakePhoneCallParams`](#makephonecallparams)
206
+
207
+ #### Returns
208
+
209
+ `Promise`\<`object`\>
210
+
211
+ <a id="scancode"></a>
212
+ ### scanCode()
213
+
214
+ > **scanCode**(`params`?): `Promise`\<[`ScanCodeResult`](#scancoderesult)\>
215
+
216
+ 调起扫码能力。
217
+
218
+ #### Parameters
219
+
220
+ • **params?**: [`ScanCodeParams`](#scancodeparams)
221
+
222
+ #### Returns
223
+
224
+ `Promise`\<[`ScanCodeResult`](#scancoderesult)\>
225
+
226
+ <a id="getscreenbrightness"></a>
227
+ ### getScreenBrightness()
228
+
229
+ > **getScreenBrightness**(`params`?): `Promise`\<[`GetScreenBrightnessResult`](#getscreenbrightnessresult)\>
230
+
231
+ 获取屏幕亮度。
232
+
233
+ #### Parameters
234
+
235
+ • **params?**
236
+
237
+ #### Returns
238
+
239
+ `Promise`\<[`GetScreenBrightnessResult`](#getscreenbrightnessresult)\>
240
+
241
+ <a id="setvisualeffectoncapture"></a>
242
+ ### setVisualEffectOnCapture()
243
+
244
+ > **setVisualEffectOnCapture**(`params`?): `Promise`\<`object`\>
245
+
246
+ 设置截屏或录屏时的视觉表现。
247
+
248
+ #### Parameters
249
+
250
+ • **params?**: [`SetVisualEffectOnCaptureParams`](#setvisualeffectoncaptureparams)
251
+
252
+ #### Returns
253
+
254
+ `Promise`\<`object`\>
255
+
256
+ #### Remarks
257
+
258
+ 控制截屏或录屏时的视觉效果。
259
+
260
+ <a id="setscreenbrightness"></a>
261
+ ### setScreenBrightness()
262
+
263
+ > **setScreenBrightness**(`params`): `Promise`\<`object`\>
264
+
265
+ 设置屏幕亮度。
266
+
267
+ #### Parameters
268
+
269
+ • **params**: [`SetScreenBrightnessParams`](#setscreenbrightnessparams)
270
+
271
+ #### Returns
272
+
273
+ `Promise`\<`object`\>
274
+
275
+ <a id="setkeepscreenon"></a>
276
+ ### setKeepScreenOn()
277
+
278
+ > **setKeepScreenOn**(`params`): `Promise`\<`object`\>
279
+
280
+ 设置屏幕常亮状态。
281
+
282
+ #### Parameters
283
+
284
+ • **params**: [`SetKeepScreenOnParams`](#setkeepscreenonparams)
285
+
286
+ #### Returns
287
+
288
+ `Promise`\<`object`\>
289
+
290
+ <a id="onusercapturescreen"></a>
291
+ ### onUserCaptureScreen()
292
+
293
+ > **onUserCaptureScreen**(`handler`): () => `void`
294
+
295
+ 监听用户主动截屏事件。
296
+
297
+ #### Parameters
298
+
299
+ • **handler**
300
+
301
+ #### Returns
302
+
303
+ `Function`
304
+
305
+ 返回取消当前监听函数的函数。
306
+
307
+ ##### Returns
308
+
309
+ `void`
310
+
311
+ #### Example
312
+
313
+ ```ts
314
+ import { onUserCaptureScreen } from '@doubao-apps/framework/api';
315
+
316
+ const off = onUserCaptureScreen(() => {
317
+ console.log('用户截屏了');
318
+ });
319
+
320
+ off();
321
+ ```
322
+
323
+ <a id="vibrateshort"></a>
324
+ ### vibrateShort()
325
+
326
+ > **vibrateShort**(`params`?): `Promise`\<`object`\>
327
+
328
+ 触发短震动。
329
+
330
+ #### Parameters
331
+
332
+ • **params?**: [`VibrateShortParams`](#vibrateshortparams)
333
+
334
+ #### Returns
335
+
336
+ `Promise`\<`object`\>
337
+
338
+ <a id="vibratelong"></a>
339
+ ### vibrateLong()
340
+
341
+ > **vibrateLong**(`params`?): `Promise`\<`object`\>
342
+
343
+ 触发长震动。
344
+
345
+ #### Parameters
346
+
347
+ • **params?**
348
+
349
+ #### Returns
350
+
351
+ `Promise`\<`object`\>
352
+
353
+ ## 相关类型
354
+
355
+ <a id="sendsmsparams"></a>
356
+ ### SendSmsParams
357
+
358
+ 拉起系统短信发送面板的请求参数。
359
+
360
+ #### Properties
361
+
362
+ ##### message?
363
+
364
+ > `optional` **message**: `string`
365
+
366
+ 预填到发送短信面板的内容。
367
+
368
+ ##### phoneNumber?
369
+
370
+ > `optional` **phoneNumber**: `string`
371
+
372
+ 预填到发送短信面板的手机号。
373
+
374
+ <a id="checkisopenaccessibilityresult"></a>
375
+ ### CheckIsOpenAccessibilityResult
376
+
377
+ 无障碍能力检测结果。
378
+
379
+ #### Properties
380
+
381
+ ##### open
382
+
383
+ > **open**: `boolean`
384
+
385
+ 是否开启视觉无障碍能力。
386
+
387
+ <a id="getbatteryinforesult"></a>
388
+ ### GetBatteryInfoResult
389
+
390
+ 电池信息。
391
+
392
+ #### Properties
393
+
394
+ ##### isCharging
395
+
396
+ > **isCharging**: `boolean`
397
+
398
+ 是否正在充电。
399
+
400
+ ##### level
401
+
402
+ > **level**: `number`
403
+
404
+ 当前电量,范围 1 - 100。
405
+
406
+ <a id="addphonecalendarparams"></a>
407
+ ### AddPhoneCalendarParams
408
+
409
+ 添加系统日历事件的请求参数。
410
+
411
+ #### Extended by
412
+
413
+ - [`AddPhoneRepeatCalendarParams`](#addphonerepeatcalendarparams)
414
+
415
+ #### Properties
416
+
417
+ ##### alarm?
418
+
419
+ > `optional` **alarm**: `boolean`
420
+
421
+ 是否提醒。
422
+
423
+ ##### alarmOffset?
424
+
425
+ > `optional` **alarmOffset**: `number`
426
+
427
+ 提前提醒时间,单位秒。
428
+
429
+ ##### allDay?
430
+
431
+ > `optional` **allDay**: `boolean`
432
+
433
+ 是否为全天事件。
434
+
435
+ ##### description?
436
+
437
+ > `optional` **description**: `string`
438
+
439
+ 事件描述。
440
+
441
+ ##### endTime?
442
+
443
+ > `optional` **endTime**: `number`
444
+
445
+ 结束时间的 Unix 秒级时间戳。
446
+
447
+ ##### location?
448
+
449
+ > `optional` **location**: `string`
450
+
451
+ 事件位置。
452
+
453
+ ##### startTime
454
+
455
+ > **startTime**: `number`
456
+
457
+ 开始时间的 Unix 秒级时间戳。
458
+
459
+ ##### title
460
+
461
+ > **title**: `string`
462
+
463
+ 日历事件标题。
464
+
465
+ <a id="addphonerepeatcalendarparams"></a>
466
+ ### AddPhoneRepeatCalendarParams
467
+
468
+ 添加重复日历事件的请求参数。
469
+
470
+ #### Extends
471
+
472
+ - [`AddPhoneCalendarParams`](#addphonecalendarparams)
473
+
474
+ #### Properties
475
+
476
+ ##### alarm?
477
+
478
+ > `optional` **alarm**: `boolean`
479
+
480
+ 是否提醒。
481
+
482
+ ###### Inherited from
483
+
484
+ [`AddPhoneCalendarParams`](#addphonecalendarparams).[`alarm`](#alarm)
485
+
486
+ ##### alarmOffset?
487
+
488
+ > `optional` **alarmOffset**: `number`
489
+
490
+ 提前提醒时间,单位秒。
491
+
492
+ ###### Inherited from
493
+
494
+ [`AddPhoneCalendarParams`](#addphonecalendarparams).[`alarmOffset`](#alarmoffset)
495
+
496
+ ##### allDay?
497
+
498
+ > `optional` **allDay**: `boolean`
499
+
500
+ 是否为全天事件。
501
+
502
+ ###### Inherited from
503
+
504
+ [`AddPhoneCalendarParams`](#addphonecalendarparams).[`allDay`](#allday)
505
+
506
+ ##### description?
507
+
508
+ > `optional` **description**: `string`
509
+
510
+ 事件描述。
511
+
512
+ ###### Inherited from
513
+
514
+ [`AddPhoneCalendarParams`](#addphonecalendarparams).[`description`](#description)
515
+
516
+ ##### endTime?
517
+
518
+ > `optional` **endTime**: `number`
519
+
520
+ 结束时间的 Unix 秒级时间戳。
521
+
522
+ ###### Inherited from
523
+
524
+ [`AddPhoneCalendarParams`](#addphonecalendarparams).[`endTime`](#endtime)
525
+
526
+ ##### location?
527
+
528
+ > `optional` **location**: `string`
529
+
530
+ 事件位置。
531
+
532
+ ###### Inherited from
533
+
534
+ [`AddPhoneCalendarParams`](#addphonecalendarparams).[`location`](#location)
535
+
536
+ ##### repeatEndTime?
537
+
538
+ > `optional` **repeatEndTime**: `number`
539
+
540
+ 重复结束时间的 Unix 秒级时间戳。
541
+
542
+ ##### repeatInterval?
543
+
544
+ > `optional` **repeatInterval**: [`CalendarRepeatInterval`](#calendarrepeatinterval)
545
+
546
+ 重复周期。
547
+
548
+ ##### startTime
549
+
550
+ > **startTime**: `number`
551
+
552
+ 开始时间的 Unix 秒级时间戳。
553
+
554
+ ###### Inherited from
555
+
556
+ [`AddPhoneCalendarParams`](#addphonecalendarparams).[`startTime`](#starttime)
557
+
558
+ ##### title
559
+
560
+ > **title**: `string`
561
+
562
+ 日历事件标题。
563
+
564
+ ###### Inherited from
565
+
566
+ [`AddPhoneCalendarParams`](#addphonecalendarparams).[`title`](#title)
567
+
568
+ <a id="calendarrepeatinterval"></a>
569
+ ### CalendarRepeatInterval
570
+
571
+ > **CalendarRepeatInterval**: `"day"` \| `"week"` \| `"month"` \| `"year"`
572
+
573
+ 日历重复周期。
574
+
575
+ <a id="getclipboarddataresult"></a>
576
+ ### GetClipboardDataResult
577
+
578
+ 剪贴板读取结果。
579
+
580
+ #### Properties
581
+
582
+ ##### data
583
+
584
+ > **data**: `string`
585
+
586
+ 当前剪贴板内容。
587
+
588
+ <a id="setclipboarddataparams"></a>
589
+ ### SetClipboardDataParams
590
+
591
+ #### Properties
592
+
593
+ ##### data
594
+
595
+ > **data**: `string`
596
+
597
+ 需要设置的剪贴板内容
598
+
599
+ <a id="choosecontactresult"></a>
600
+ ### ChooseContactResult
601
+
602
+ 选取联系人后的返回结果。
603
+
604
+ #### Properties
605
+
606
+ ##### displayName
607
+
608
+ > **displayName**: `string`
609
+
610
+ 联系人名称。
611
+
612
+ ##### phoneNumber
613
+
614
+ > **phoneNumber**: `string`
615
+
616
+ 选中的手机号。
617
+
618
+ ##### phoneNumberList
619
+
620
+ > **phoneNumberList**: `string`[]
621
+
622
+ 联系人所有手机号。
623
+
624
+ <a id="addphonecontactparams"></a>
625
+ ### AddPhoneContactParams
626
+
627
+ 添加手机联系人的请求参数。
628
+
629
+ #### Properties
630
+
631
+ ##### addressCity?
632
+
633
+ > `optional` **addressCity**: `string`
634
+
635
+ 家庭地址城市。
636
+
637
+ ##### addressCountry?
638
+
639
+ > `optional` **addressCountry**: `string`
640
+
641
+ 家庭地址国家。
642
+
643
+ ##### addressPostalCode?
644
+
645
+ > `optional` **addressPostalCode**: `string`
646
+
647
+ 家庭地址邮编。
648
+
649
+ ##### addressState?
650
+
651
+ > `optional` **addressState**: `string`
652
+
653
+ 家庭地址省份。
654
+
655
+ ##### addressStreet?
656
+
657
+ > `optional` **addressStreet**: `string`
658
+
659
+ 家庭地址街道。
660
+
661
+ ##### email?
662
+
663
+ > `optional` **email**: `string`
664
+
665
+ 电子邮件。
666
+
667
+ ##### firstName
668
+
669
+ > **firstName**: `string`
670
+
671
+ 名字。
672
+
673
+ ##### homeAddressCity?
674
+
675
+ > `optional` **homeAddressCity**: `string`
676
+
677
+ 家庭地址城市。
678
+
679
+ ##### homeAddressCountry?
680
+
681
+ > `optional` **homeAddressCountry**: `string`
682
+
683
+ 家庭地址国家。
684
+
685
+ ##### homeAddressPostalCode?
686
+
687
+ > `optional` **homeAddressPostalCode**: `string`
688
+
689
+ 家庭地址邮编。
690
+
691
+ ##### homeAddressState?
692
+
693
+ > `optional` **homeAddressState**: `string`
694
+
695
+ 家庭地址省份。
696
+
697
+ ##### homeAddressStreet?
698
+
699
+ > `optional` **homeAddressStreet**: `string`
700
+
701
+ 家庭地址街道。
702
+
703
+ ##### homeFaxNumber?
704
+
705
+ > `optional` **homeFaxNumber**: `string`
706
+
707
+ 家庭传真。
708
+
709
+ ##### homePhoneNumber?
710
+
711
+ > `optional` **homePhoneNumber**: `string`
712
+
713
+ 家庭电话。
714
+
715
+ ##### hostNumber?
716
+
717
+ > `optional` **hostNumber**: `string`
718
+
719
+ 公司电话。
720
+
721
+ ##### lastName?
722
+
723
+ > `optional` **lastName**: `string`
724
+
725
+ 姓。
726
+
727
+ ##### middleName?
728
+
729
+ > `optional` **middleName**: `string`
730
+
731
+ 中间名。
732
+
733
+ ##### mobilePhoneNumber?
734
+
735
+ > `optional` **mobilePhoneNumber**: `string`
736
+
737
+ 手机号。
738
+
739
+ ##### nickName?
740
+
741
+ > `optional` **nickName**: `string`
742
+
743
+ 昵称。
744
+
745
+ ##### organization?
746
+
747
+ > `optional` **organization**: `string`
748
+
749
+ 公司。
750
+
751
+ ##### photoFilePath?
752
+
753
+ > `optional` **photoFilePath**: `string`
754
+
755
+ 头像文件路径。
756
+
757
+ ##### remark?
758
+
759
+ > `optional` **remark**: `string`
760
+
761
+ 备注。
762
+
763
+ ##### title?
764
+
765
+ > `optional` **title**: `string`
766
+
767
+ 职位。
768
+
769
+ ##### url?
770
+
771
+ > `optional` **url**: `string`
772
+
773
+ 个人网站。
774
+
775
+ ##### weChatNumber?
776
+
777
+ > `optional` **weChatNumber**: `string`
778
+
779
+ 微信号。
780
+
781
+ ##### workAddressCity?
782
+
783
+ > `optional` **workAddressCity**: `string`
784
+
785
+ 工作地址城市。
786
+
787
+ ##### workAddressCountry?
788
+
789
+ > `optional` **workAddressCountry**: `string`
790
+
791
+ 工作地址国家。
792
+
793
+ ##### workAddressPostalCode?
794
+
795
+ > `optional` **workAddressPostalCode**: `string`
796
+
797
+ 工作地址邮编。
798
+
799
+ ##### workAddressState?
800
+
801
+ > `optional` **workAddressState**: `string`
802
+
803
+ 工作地址省份。
804
+
805
+ ##### workAddressStreet?
806
+
807
+ > `optional` **workAddressStreet**: `string`
808
+
809
+ 工作地址街道。
810
+
811
+ ##### workFaxNumber?
812
+
813
+ > `optional` **workFaxNumber**: `string`
814
+
815
+ 工作传真。
816
+
817
+ ##### workPhoneNumber?
818
+
819
+ > `optional` **workPhoneNumber**: `string`
820
+
821
+ 工作电话。
822
+
823
+ <a id="getrandomvaluesparams"></a>
824
+ ### GetRandomValuesParams
825
+
826
+ 获取安全随机数的请求参数。
827
+
828
+ #### Properties
829
+
830
+ ##### length
831
+
832
+ > **length**: `number`
833
+
834
+ 需要生成的字节数。
835
+
836
+ <a id="getrandomvaluesresult"></a>
837
+ ### GetRandomValuesResult
838
+
839
+ 获取安全随机数的返回结果。
840
+
841
+ #### Properties
842
+
843
+ ##### randomValues
844
+
845
+ > **randomValues**: `ArrayBuffer`
846
+
847
+ 生成的随机字节。
848
+
849
+ <a id="makephonecallparams"></a>
850
+ ### MakePhoneCallParams
851
+
852
+ #### Properties
853
+
854
+ ##### phoneNumber
855
+
856
+ > **phoneNumber**: `string`
857
+
858
+ 需要拨打的电话号码
859
+
860
+ <a id="scancodeparams"></a>
861
+ ### ScanCodeParams
862
+
863
+ 扫码请求参数。
864
+
865
+ #### Properties
866
+
867
+ ##### onlyFromCamera?
868
+
869
+ > `optional` **onlyFromCamera**: `boolean`
870
+
871
+ 是否仅允许从相机扫码。
872
+
873
+ ##### scanType?
874
+
875
+ > `optional` **scanType**: [`ScanCodeType`](#scancodetype)[]
876
+
877
+ 允许的扫码类型。
878
+
879
+ <a id="scancoderesult"></a>
880
+ ### ScanCodeResult
881
+
882
+ 扫码返回结果。
883
+
884
+ #### Properties
885
+
886
+ ##### characterSet
887
+
888
+ > **characterSet**: `string`
889
+
890
+ 字符集。
891
+
892
+ ##### path
893
+
894
+ > **path**: `string`
895
+
896
+ 当前宿主可识别的页面路径。
897
+
898
+ ##### rawData
899
+
900
+ > **rawData**: `string`
901
+
902
+ 原始数据,通常为 Base64 字符串。
903
+
904
+ ##### result
905
+
906
+ > **result**: `string`
907
+
908
+ 扫码结果文本。
909
+
910
+ ##### scanType
911
+
912
+ > **scanType**: [`ScanResultType`](#scanresulttype)
913
+
914
+ 扫码结果类型。
915
+
916
+ <a id="scancodetype"></a>
917
+ ### ScanCodeType
918
+
919
+ > **ScanCodeType**: `"barCode"` \| `"qrCode"` \| `"datamatrix"` \| `"pdf417"`
920
+
921
+ 扫码类型。
922
+
923
+ <a id="scanresulttype"></a>
924
+ ### ScanResultType
925
+
926
+ > **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"`
927
+
928
+ 扫码结果类型。
929
+
930
+ <a id="getscreenbrightnessresult"></a>
931
+ ### GetScreenBrightnessResult
932
+
933
+ #### Properties
934
+
935
+ ##### value
936
+
937
+ > **value**: `number`
938
+
939
+ 屏幕亮度值,范围 0 ~ 1,0 最暗,1 最亮
940
+
941
+ <a id="setvisualeffectoncaptureparams"></a>
942
+ ### SetVisualEffectOnCaptureParams
943
+
944
+ 设置截屏或录屏视觉效果的请求参数。
945
+
946
+ #### Properties
947
+
948
+ ##### visualEffect?
949
+
950
+ > `optional` **visualEffect**: [`CaptureVisualEffect`](#capturevisualeffect)
951
+
952
+ 截屏或录屏时的视觉表现。
953
+
954
+ <a id="capturevisualeffect"></a>
955
+ ### CaptureVisualEffect
956
+
957
+ > **CaptureVisualEffect**: `"none"` \| `"hidden"`
958
+
959
+ 录屏或截屏时的视觉表现。
960
+
961
+ <a id="setscreenbrightnessparams"></a>
962
+ ### SetScreenBrightnessParams
963
+
964
+ 设置屏幕亮度的请求参数。
965
+
966
+ #### Properties
967
+
968
+ ##### value
969
+
970
+ > **value**: `number`
971
+
972
+ 屏幕亮度值,范围 0 ~ 1。
973
+
974
+ <a id="setkeepscreenonparams"></a>
975
+ ### SetKeepScreenOnParams
976
+
977
+ 设置屏幕常亮的请求参数。
978
+
979
+ #### Properties
980
+
981
+ ##### keepScreenOn
982
+
983
+ > **keepScreenOn**: `boolean`
984
+
985
+ 是否保持屏幕常亮。
986
+
987
+ <a id="vibrateshortparams"></a>
988
+ ### VibrateShortParams
989
+
990
+ 短震动请求参数。
991
+
992
+ #### Properties
993
+
994
+ ##### type?
995
+
996
+ > `optional` **type**: [`VibrateShortType`](#vibrateshorttype)
997
+
998
+ 震动强度类型。
999
+
1000
+ <a id="vibrateshorttype"></a>
1001
+ ### VibrateShortType
1002
+
1003
+ > **VibrateShortType**: `"heavy"` \| `"medium"` \| `"light"`
1004
+
1005
+ 短震动类型。