openharmony 鸿蒙 start-page

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 鸿蒙 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
阅读全文