• Home
Name Date Size #Lines LOC

..--

entry/12-May-2024-726645

screenshots/device/12-May-2024-

.gitignoreD12-May-2024121 88

README.mdD12-May-2024437 168

README_zh.mdD12-May-20241.3 KiB3217

build-profile.json5D12-May-20241 KiB4341

hvigorfile.jsD12-May-2024174 21

package.jsonD12-May-2024392 2019

README.md

1# Call
2
3### Introduction
4
5This sample shows how to make a call and view the call information.
6
7### Usage
8
91. Enter a phone number and tap **Call** to make a call.
10
112. Check the call information, including whether the call is successful, whether a call is ongoing, the call status, whether the called number is an emergency number, and the formatted phone number.
12
13### Constraints
14
15This sample can only be run on standard-system devices.
16

README_zh.md

1# 拨打电话
2
3### 简介
4
5本示例通过输入电话,进行电话拨打,及电话相关信息的显示。实现效果如下:
6
7![](screenshots/device/call.png)
8
9### 相关概念
10
11页面路由:页面路由需要在页面渲染完成之后才能调用,在onInit和onReady生命周期中页面还处于渲染阶段,禁止调用页面路由方法。
12弹窗:文本提示框。
13
14### 相关权限
15
16拨打电话权限: ohos.permission.PLACE_CALL
17
18### 使用说明
19
201.输入电话号码后,点击**电话**按钮,进行拨打电话。
21
222.拨打电话后文本框会显示拨打是否成功,是否存在通话,通话状态,是否紧急号码,格式化后的电话号码。
23
24### 约束与限制
25
261.本示例仅支持在标准系统上运行。
27
282.本示例需要插入SIM卡,目前该功能仅支持部分机型。
29
303.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。
31
324.本示例所配置的权限ohos.permission.PLACE_CALL为system_basic级别(相关权限级别可通过[权限定义列表](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/permission-list.md)查看),需要手动配置对应级别的权限签名(具体操作可查看[自动化签名方案](https://docs.openharmony.cn/pages/v3.2Beta/zh-cn/application-dev/security/hapsigntool-overview.md/))