Starting a Specified Page When the launch type of a PageAbility is set to singleton (default), the onNewWant() callback is triggered if the PageAbility is not started for the first time. For details a
阅读全文
openharmony 鸿蒙 start-local-pageability
Starting a Local PageAbility The capabilities related to the PageAbility are provided through the featureAbility class. For example, startAbility() in featureAbility is used to start the PageAbility.
阅读全文
openharmony 鸿蒙 start-dataability
Starting a DataAbility When a DataAbility is started, a DataAbilityHelper object is obtained. The sample code for starting a DataAbility is as follows: import featureAbility from '@ohos.ability.featur
阅读全文
openharmony 鸿蒙 stage-model-development-overview
Stage Model Development Overview Basic Concepts The following figure illustrates the stage model. Figure 1 Stage model AbilityStage Each HAP of the Entry or Feature type has an instance of the Ability
阅读全文
harmony 鸿蒙ServiceExtensionAbility
serviceextensionability.md
阅读全文
openharmony 鸿蒙 serviceability-switch
ServiceAbility Switching The ServiceAbility component in the FA model corresponds to the ServiceExtensionAbility component in the stage model. The ServiceExtensionAbility class provides system APIs. O
阅读全文
openharmony 鸿蒙 serviceability-overview
ServiceAbility Overview An ability using the Service template (ServiceAbility for short) is used to run tasks in the background, such as playing music or downloading files. It does not provide a UI fo
阅读全文
openharmony 鸿蒙 serviceability-lifecycle
ServiceAbility Lifecycle You can implement lifecycle callbacks (as described in the table below) in service.js or service.ets. Table 1 ServiceAbility lifecycle callbacks APIDescription onStart(): void
阅读全文
openharmony 鸿蒙 serviceability-configuration
ServiceAbility Configuration Similar to a PageAbility, a ServiceAbility is configured in abilities under module of the config.json file. The difference between a ServiceAbility and PageAbility lies in
阅读全文
harmony 鸿蒙Background Services (FA Model)
rpc.md
阅读全文