| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| AppScope/ | 12-May-2024 | - | 36 | 33 | ||
| entry/ | 12-May-2024 | - | 758 | 604 | ||
| screenshots/devices/ | 12-May-2024 | - | ||||
| updatedialog/ | 12-May-2024 | - | 523 | 406 | ||
| .gitignore | D | 12-May-2024 | 56 | 5 | 5 | |
| README.md | D | 12-May-2024 | 1.3 KiB | 34 | 17 | |
| README_zh.md | D | 12-May-2024 | 1.2 KiB | 33 | 17 | |
| build-profile.json5 | D | 12-May-2024 | 1.1 KiB | 47 | 45 | |
| hvigorfile.js | D | 12-May-2024 | 168 | 2 | 1 | |
| package.json | D | 12-May-2024 | 399 | 19 | 19 |
README.md
1# Custom Dialog Box 2 3### Introduction 4 5This sample demonstrates a custom dialog box used in upgrade scenarios. 6 7In this sample, the [**\<CustomDialogController>**](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/arkui-ts/ts-methods-custom-dialog-box.md) component is used to implement the custom dialog box, which provides upgrade information for users; the [**\<RichText>**](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-richtext.md) component is used to display the upgrade information. 8 9### Usage 10 111. When you start the sample app, an upgrade dialog box is displayed. 12 132. You can touch **Cancel** or **Upgrade Now**. The dialog box will be closed. 14 15### Display Effect 16 17 18 19### Required Permissions 20 21[ohos.permission.INTERNET](https://gitee.com/openharmony/docs/blob/master/en/application-dev/security/permission-list.md), which allows an app to use network sockets. 22 23### Dependency 24 25N/A 26 27### Constraints 28 291. This sample can only be run on standard-system devices that use the Rockchip RK3568 chip. 30 312. This sample is based on the stage model, which is supported from API version 9 (SDK version: 3.2.5.5). 32 333. DevEco Studio 3.0 Beta4 (Build version: 3.0.0.992, built on July 14, 2022) must be used. 34
README_zh.md
1# 自定义弹窗 2 3### 介绍 4 5本示例展示了通过**CustomDialogController**组件显示一个自定义的升级弹窗。 6 7本示例使用 [CustomDialogController](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/arkui-ts/ts-methods-custom-dialog-box.md) 组件实现自定义弹窗,用于给用户反馈升级信息。使用 [RichText](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-richtext.md) 组件实现富文本的显示。 8 9使用说明: 10 111.进入主页,界面会弹出升级弹窗,通过RichText显示升级相关信息。 12 132.点击**取消**按钮或**立即升级**按钮,弹窗会关闭。 14 15### 效果预览 16 17 18 19### 相关权限 20 21允许使用网络socket:[ohos.permission.INTERNET](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/permission-list.md) 22 23### 依赖 24 25不涉及。 26 27### 约束与限制 28 291.本示例仅支持标准系统上运行,支持设备:RK3568。 30 312.本示例为Stage模型,仅支持API9版本SDK,版本号:3.2.5.5。 32 333.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。