| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| AppScope/ | 12-May-2024 | - | 36 | 33 | ||
| entry/ | 12-May-2024 | - | 2,257 | 2,070 | ||
| screenshots/ | 12-May-2024 | - | ||||
| .gitignore | D | 12-May-2024 | 98 | 9 | 9 | |
| README.md | D | 12-May-2024 | 2.3 KiB | 38 | 19 | |
| README_zh.md | D | 12-May-2024 | 2.3 KiB | 41 | 22 | |
| build-profile.json5 | D | 12-May-2024 | 1,017 | 41 | 40 | |
| hvigorfile.ts | D | 12-May-2024 | 158 | 2 | 1 | |
| package.json | D | 12-May-2024 | 371 | 19 | 18 |
README.md
1# Contact 2 3### Introduction 4 5This sample shows how to use the mobile phone contact function. 6 7In this example, we'll use the [Tabs](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/arkui-ts/ts-container-tabs.md) component to set the overall application layout, and use the [List](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/arkui-ts/ts-container-list.md) component to set the page layout of the home page, and use the [AlphabetIndexer](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md) component to set the index bar. 8 9Usage 10 111. Touch **+** to go to the page for adding a contact. Enter the contact information, and then tap **√** to confirm and return to the home page. 12 132. Touch the contact list to view the detailed contact information. You can also edit or delete the contact information as needed. 14 153. Enter a number or email address in the search box to search for a contact. 16 17### Display Effect 18 19  20 21### Required Permissions 22 23Reading of contact information: [ohos.permission.READ_CONTACTS](https://gitee.com/openharmony/docs/blob/master/en/application-dev/security/permission-list.md) 24 25Adding, removing, and changing contact information: [ohos.permission.WRITE_CONTACTS](https://gitee.com/openharmony/docs/blob/master/en/application-dev/security/permission-list.md) 26 27### Dependency 28 29N/A 30 31### Constraints 32 331. This sample can only be run on standard-system devices that use the Rockchip RK3568 chip. 34 352. DevEco Studio 3.0 Beta4 (Build version: 3.0.0.992, built on July 14, 2022) must be used. 36 373. [ohos.permission.READ_CONTACTS](https://gitee.com/openharmony/docs/blob/master/en/application-dev/security/permission-list.md) and [ohos.permission.WRITE_CONTACTS](https://gitee.com/openharmony/docs/blob/master/en/application-dev/security/permission-list.md) are permissions of the system_basic level, which can be viewed from the permission list (https://gitee.com/openharmony/docs/blob/master/en/application-dev/security/permission-list.md). You need to manually configure the signature of the corresponding permission level by following instructions in [Having Your App Automatically Signed](https://docs.openharmony.cn/pages/v3.2Beta/en/application-dev/security/hapsigntool-overview.md/). 38
README_zh.md
1# 联系人 2 3### 介绍 4 5本示例展示手机联系人功能。 6 7本示例使用[Tabs](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/arkui-ts/ts-container-tabs.md)容器组件设置应用整体布局,在首页面中使用[List](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/arkui-ts/ts-container-list.md)容器组件设置页面布局,再通过[AlphabetIndexer](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md)组件设置索引导航条。 8 9使用说明: 10 111.点击 **+** 按钮,跳转添加联系人界面,输入联系人信息,点击 **√**,确认添加联系人,并返回首页。 12 132.点击联系人列表跳转页面查看详细信息,并且可以编辑或删除联系人信息。 14 153.在搜索栏输入号码或邮箱可查询对应的联系人。 16 17### 效果预览 18 19|首页|详情页|新建联系人| 20|-----|-----|-----| 21| ||| 22 23### 相关权限 24 25[ohos.permission.READ_CONTACTS](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/permission-list.md) 26 27[ohos.permission.WRITE_CONTACTS](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/permission-list.md) 28 29### 依赖 30 31不涉及。 32 33### 约束与限制 34 351.本示例仅支持标准系统上运行,支持设备:RK3568。 36 372.本示例需要使用DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100, built on November 3, 2022)才可编译运行。 38 393.本示例仅支持API9版本SDK,版本号:3.2.9.2。 40 414.本示例涉及[ohos.permission.READ_CONTACTS](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/permission-list.md)、[ohos.permission.WRITE_CONTACTS](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/permission-list.md) 为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/))。