目录

About This Kit

Ability Kit (application framework service) provides the application model for application development and running. Based on the application model, developers can implement different types of application components to more easily and efficiently complete business logic such as application lifecycle management, inter-component interaction, and process and thread management, without focusing on the underlying implementation details.

Use Scenarios

Capability Scope

Highlights

  1. Separation of UI and service logic

    This architecture enforces a development paradigm where service logic and UI interactions are clearly separated.

    • From service logic to UI: Developers implement core service logic within the ability. Data is then passed to the UI framework through binding mechanisms. Based on declarative syntax, ArkUI automatically renders the view and triggers UI updates when the state changes.
    • From UI to service logic: User inputs captured from UI interactions are synchronized back to the ability framework through event callbacks or state binding mechanisms, reflecting the user's actions in the service logic layer.
  2. Support for cross-device migration and multi-device collaboration at the application component level

    The stage model decouples application components from UI.

    • The declarative feature of ArkUI allows the UI to be restored based on the data or status saved in application components, which facilitates cross-device migration.
    • Application components support cross-device interaction over Remote Procedure Calls (RPCs).
  3. Support for multiple device types and window forms

    Application component management and window management are decoupled at the architecture level. This decoupling makes it easy to:

    • Tailor application components. For example, windows can be tailored for devices without screens.
    • Extend the window forms.
    • Use the same application component lifecycle on multiple devices (such as desktop devices and mobile devices).
  4. Well balanced application capabilities and system management costs

    The stage model redefines the boundary of application capabilities to well balance application capabilities and system management costs.

    • Diverse application components (such as service widgets and input methods) for specific scenarios.
    • Standardized background process management. To deliver a better user experience, the stage model manages background application processes in a more orderly manner. Applications cannot reside in the background randomly, and their background behavior is strictly managed to minimize malicious behavior.