#HarmonyOS:UIAbility组件生命周期--UIAbility组件启动模式

UI界面的应用组件,主要用于和用户交互。

UIAbility组件生命周期

UIAbility的生命周期包括Create、

onWindowStageCreate、Foreground、Background、onWindowStageDestroy

Destroy四个状态

UIAbility组件启动模式

  • singleton(单实例模式)
  • standard(标准实例模式)
  • specified(指定实例模式)

在module.json5配置文件的"launchType"字段配置

你可能感兴趣的:(HarmonyOS,harmonyos,华为)