harmony 鸿蒙Widget Page Capability Overview

  • 2025-06-12
  • 浏览 (5)

Widget Page Capability Overview

ArkTS widgets are developed using the general ArkTS language. You can use the declarative paradigm to develop ArkTS widget pages. The following widget pages are automatically generated by a DevEco Studio template. You can adjust the pages based on the real-world service scenarios.

WidgetPreviewPage

Page Capabilities Supported by ArkTS Widgets

ArkTS widgets have all capabilities of JS widgets, and support animations, custom drawing, and support capabilities auch as components, events, animations, data management, and status management of declarative paradigm.

For APIs that can be used in ArkTS widgets, the tag Widget capability is added. Since API version x, these APIs can be used in ArkTS widgets. Pay attention to the capability differences in the widget scenario.

For example, the following description indicates that CircleShape can be used in ArkTS widgets.

WidgetSupportApi

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Form Kit

harmony 鸿蒙Configuring Widget Configuration Files

harmony 鸿蒙Updating Widget Content by Widget Host (for System Applications Only)

harmony 鸿蒙Creating an ArkTS Widget

harmony 鸿蒙Launching the UIAbility of the Widget Provider in the Background Through the call Event

harmony 鸿蒙Overview of ArkTs Widget Page Editing Interaction

harmony 鸿蒙Editing and Updating the Widget Content

harmony 鸿蒙Updating Widget Content Through the message Event

harmony 鸿蒙Widget Event Capability Overview

harmony 鸿蒙Launching the UIAbility of the Widget Provider Through the router Event

0  赞