ArkUI explained

Logo Size:85px
ArkUI
Developer:Huawei
Released:October 22, 2021
Operating System:HarmonyOS, OpenHarmony, Oniro OS
Genre:Software framework
License:open source, Apache License[1]
Website:https://developer.harmonyos.com/en/develop/arkUI

ArkUI is a declarative based user interface framework for building user interfaces on native HarmonyOS, OpenHarmony alongside Oniro OS applications developed by Huawei for the ArkTS and Cangjie programming language.[2]

Overview

ArkUI 3.0 is declarative in eTS (extended TypeScript) in HarmonyOS 3.0, followed by main ArkTS programming language in HarmonyOS 3.1, contrasting with the imperative syntax used in Java development in earlier versions of HarmonyOS in HarmonyOS 1.0 and 2.0. ArkUI allows for 2D drawing as well as 3D drawing, animations, event handling, Service Card widgets, and data binding. ArkUI automatically synchronizes between UI views and data.

ArkUI integrates with DevEco Studio IDE to provide for real-time previews during editing,[3] alongside support for debugging and other development features.[4]

ArkJS is designed for web development with a Vue 2-like syntax, providing a familiar environment for web developers using JS and CSS. ArkJS incorporates the HarmonyOS Markup Language (HML), which allows attributes prefixed with @ for MVVM architectural pattern.[5] [6] [7]

History

During HDC 2021 on October 22, 2021, the HarmonyOS 3.0 developer preview introduced ArkUI 3.0 for eTS, JS programming languages with ArkCompiler. Compared to previous versions of ArkUI 1.0 and 2.0 under imperative development with Java in earlier versions of HarmonyOS.[8]

During HDC 2022 HarmonyOS 3.1 in November 2022, Huawei ArkUI evolved into full declarative development featuring declarative UI capabilities, improved layout ability, component capability improvement and others. In April 2023, HarmonyOS 3.1 Beta 1 build included ArkUI declarative 2D and 3D drawing capabilities. The upgrade also improves layout, component, and app state management capabilities.[9]

During HDC 2023, August 2023, Huawei announced HarmonyOS 4.0 improvements of ArkUI with ArkTS alongside native HarmonyOS NEXT software development using Ark Engine with ArkGraphics 2D and ArkGraphics 3D. Also, the company announced a cross platform extension of ArkUI called ArkUI-X which would allow developers to run applications across Android, iOS and HarmonyOS under one project using DevEco Studio IDE and Visual Studio Code plugins. On January 18, 2024, during HarmonyOS Ecology Conference, Huawei revealed the HarmonyOS NEXT software stack, that included ArkUI/ArkUI-X programming framework with the Ark Compiler/BiSheng Compiler/Ark Runtime compiler & runtime, for both ArkTS and incoming Cangjie programming language.[10]

ArkUI-X

Logo Size:85px
ArkUI-X
Developer:Huawei
Released:December 8, 2023
Operating System:Android, iOS, OpenHarmony, Oniro OS, HarmonyOS, Web platform (ArkJS)
Genre:Application framework
License:Apache License
Website:https://developer.harmonyos.com/en/develop/arkUI

ArkUI-X is an open-source UI software development kit which is the extension of ArkUI created by Huawei for building cross platform applications, including Android, iOS, OpenHarmony and HarmonyOS NEXT targets.Web platform support with ArkJS was released on December 8, 2023.[11]

ArkUI-X consists of both a UI language and a rendering engine.[12]

Features

Components

System components are built-in components within the ArkUI framework, categorized into container components and basic components. For example, Row and Column are container components that can hold other components, while Text and Button are basic components.[13]

Examples

The following is an example of a simple Hello World program. It is standard practice in ArkUI to separate the application struct and views into different structs, with the main view named Index.[14] import ArkTS// Index.ets

import router from '@ohos.router';

@Entry@Componentstruct Index The @ohos.router routing library implements page transitions, which must be declared in the main_pages.json file before being invoked.[15]

Reception

See also

External links

Notes and References

  1. Web site: ArkUI API参考 . Gitee . OpenAtom OpenHarmony . 21 May 2024 . 21 May 2024 . https://web.archive.org/web/20240521203004/https://gitee.com/openharmony/docs/tree/OpenHarmony-5.0-Beta1/zh-cn/application-dev/reference/apis-arkui . live .
  2. Web site: Parker . Victoria . HDC Technical Sub-forum: A comprehensive look at HarmonyOS 'next-generation UI Framework . Mo4Tech . 26 January 2024 . 12 February 2024 . 13 February 2024 . https://web.archive.org/web/20240213015800/https://www.mo4tech.com/hdc-technical-sub-forum-a-comprehensive-look-at-harmonyos-next-generation-ui-framework.html . live .
  3. 范承宇 . 李竞择 . 欧阳迪 . 2024-03-28 . 2024 . 基于方舟开发框架的智能装备监控应用研究 . 机电产品开发与创新 . . 37 . 2 . 114–117 . CNKI.
  4. Web site: Sarkar . Amy . HarmonyOS 3.0 ArkUI 3.0: Declarative User Interface framework . HC Newsroom . 26 October 2021 . 12 February 2024 . 2 March 2024 . https://web.archive.org/web/20240302002317/https://www.huaweicentral.com/harmonyos-3-0-arkui-3-0-declarative-user-interface-framework/ . live .
  5. Web site: Kapuściak . Kacper . Wajgelt . Juliusz . Schmidt . Stefan . Bringing Graphical Applications to Oniro on the Example of React Native . YouTube . 8 November 2023 . Eclipse Foundation . 29 February 2024 . 29 February 2024 . https://web.archive.org/web/20240229224152/https://www.youtube.com/watch?v=1JwetgKCsrI . live .
  6. Book: 徐, 礼文 . . 9787302600312 . zh:HarmonyOS操作系统应用开发实战(JavaScript版) . Hands-on Application Development with the HarmonyOS Operating System (JavaScript Edition).
  7. Book: 褚洪波 . https://books.google.com/books?id=xesJ0AEACAAJ . 2022 . . 9787111714910 . zh-CN . zh:鸿蒙App开发全流程实战 . Hands-On Full-Process Development of HarmonyOS Apps.
  8. Web site: New release of HarmonyOS 3.0.0 developer preview . SegmentFault . 12 February 2024.
  9. Web site: Sarkar . Amy . HarmonyOS 3.1 Beta 2 rolling out . HC Newsroom . 25 April 2023 . 12 February 2024 . 24 September 2023 . https://web.archive.org/web/20230924044747/https://www.huaweicentral.com/harmonyos-3-1-beta-2/ . live .
  10. Web site: Bhati . Kamlesh . Huawei HarmonyOS NEXT Official Now: Bring Spatial Design and Vivid Color Concepts . Sparrownews.com . 12 February 2024 . 13 February 2024 . https://web.archive.org/web/20240213153921/https://sparrowsnews.com/2024/01/18/huawei-harmonyos-next-official-now/ . dead .
  11. Web site: ArkUI-X Release Notes . ArkUI-X GitHub . 12 February 2024 . 12 February 2024 . https://web.archive.org/web/20240212234530/https://github.com/arkui-x/docs/blob/master/zh-cn/release-notes/README.md . live .
  12. Web site: ArkUI-X 预览版正式开源 . 2024-05-21 . 知乎专栏 . zh.
  13. Book: 刘玥 . zh:鸿蒙原生应用开发:ArkTS语言快速上手. Developing Native Applications on HarmonyOS: A Quick Start with ArkTS Language . 张荣超 . 2024-07-01 . . 9787115642509.
  14. Web site: Getting Started with ArkTS in Stage Model - Implementing Page Redirection . HarmonyOS . 12 February 2024 . 12 February 2024 . https://web.archive.org/web/20240212234530/https://developer.harmonyos.com/en/docs/documentation/doc-guides-V3/start-with-ets-stage-0000001477980905-V3 . live .
  15. 张 . 欧亚 . 黄 . 涛 . 曾 . 超 . 叶 . 荣涛 . 2024 . 鸿蒙OS智能终端适老化软件研发探索 . 信息技术与工程学院学报 . zh-CN . 广州商学院 . 13 . 10.19850/j.cnki.2096-4706.2024.13.031 . CNKI.
  16. Web site: IT之家 . 2024-07-22 . 启动时间 1 秒内,淘宝鸿蒙原生版上线 HarmonyOS NEXT . 2024-11-25 . Tencent News . zh-CN.