From 2105825861dc09193448132f2c7315a8d336ffc5 Mon Sep 17 00:00:00 2001 From: yxk2026 <10178404+yxk2026@user.noreply.gitee.com> Date: Fri, 28 Feb 2025 10:21:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8B=B1=E6=96=87readme=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=EF=BC=8C=E7=BA=A6=E6=9D=9F=E4=B8=8E=E9=99=90=E5=88=B6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.en.md | 26 ++++++++++++++++++++++++++ README.md | 10 +++++----- 2 files changed, 31 insertions(+), 5 deletions(-) create mode 100644 README.en.md diff --git a/README.en.md b/README.en.md new file mode 100644 index 0000000..3afbb78 --- /dev/null +++ b/README.en.md @@ -0,0 +1,26 @@ +# UIAbility and Custom Component Lifecycle + +### Introduction + +This codelab introduces UIAbility and the custom component lifecycle. + +### Concepts + +- UIAbility: This component provides the UI for user interaction. It functions as the basic unit scheduled by the system and provides a window for applications to draw UIs. A UIAbility component can implement a functional module through multiple pages. Each UIAbility component instance corresponds to a task in Recents. +- Custom component lifecycle: The lifecycle callbacks of a custom component are used to notify users of the lifecycle of the component. These callbacks are private and are invoked by the development framework at a specified time at runtime. They cannot be manually invoked from applications. +- Window: This module provides a mechanism for displaying multiple application UIs and allowing the end user to interact with them on the same physical screen. + +### Permissions + +N/A + +### How to Use + +1. Search for the keyword **LifeCyclePage** on the console to view the lifecycle invoking process. + +### Constraints + +1. The sample is only supported on Huawei phones with standard systems. +2. HarmonyOS: HarmonyOS 5.0.0 Release or later. +3. DevEco Studio: DevEco Studio 5.0.0 Release or later. +4. HarmonyOS SDK: HarmonyOS 5.0.0 Release SDK or later. diff --git a/README.md b/README.md index 2f4140e..d1557a2 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# UIAbility和自定义组件生命周期 +# 实现UIAbility和自定义组件生命周期管理 ### 简介 -本篇Codelab主要介绍UIAbility和自定义组件生命周期。 +本篇Codelab主要介绍UIAbility和自定义组件生命周期,通过日志打印可以在控制台观察生命周期的调用过程,为开发者讲解UIAbility声明周期的过程。 ### 相关概念 @@ -21,6 +21,6 @@ ### 约束与限制 1. 本示例仅支持标准系统上运行,支持设备:华为手机。 -2. HarmonyOS系统:HarmonyOS NEXT Developer Beta1及以上。 -3. DevEco Studio版本:DevEco Studio NEXT Developer Beta1及以上。 -4. HarmonyOS SDK版本:HarmonyOS NEXT Developer Beta1 SDK及以上。 +2. HarmonyOS系统:HarmonyOS 5.0.0 Release及以上。 +3. DevEco Studio版本:DevEco Studio 5.0.0 Release及以上。 +4. HarmonyOS SDK版本:HarmonyOS 5.0.0 Release SDK及以上。 -- Gitee