harmony 鸿蒙ArkTS Widget Related Modules
ArkTS Widget Related Modules
Figure 1 ArkTS widget related modules
FormExtensionAbility: provides lifecycle callbacks invoked when a widget is created, destroyed, or updated.
FormExtensionContext: provides context for FormExtensionAbilities. You can use the APIs of this module to start FormExtensionAbilities.
formProvider: provides APIs related to the widget provider. You can use the APIs to update a widget, set the next update time for a widget, obtain widget information, and request a widget release.
formInfo: provides types and enums related to the widget information and state.
formBindingData: provides APIs for widget data binding. You can use the APIs to create a FormBindingData object and obtain related information.
Page layout (WidgetCard.ets): provides the widget UI development capability based on ArkUI.
- General capabilities of ArkTS widgets: provides components, attributes, and APIs that can be used in ArkTS widgets.
- Capabilities exclusive to ArkTS widgets: include the postCardAction API used for interaction between the widget internal and the provider application and can be called only in the widget.
Widget configuration: includes FormExtensionAbility configuration and widget configuration.
- Configure the FormExtensionAbility information under extensionAbilities in the module.json5 file.
- Configure the widget configuration information (WidgetCard.ets) in the form_config.json file in resources/base/profile.
你可能感兴趣的鸿蒙文章
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
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦