提交 0c70dd9e 编写于 作者: J jiangbo

jiangbo91@huawei.com

add local_storage
Signed-off-by: Njiangbo <jiangbo91@huawei.com>
Change-Id: I25eed6bbb43fb23a251c224cf64f8ed19fbe47a4
上级 cc91f23d
......@@ -58,19 +58,15 @@ export default class MainAbility extends Ability {
console.log("[Demo MainAbility onDestroy]")
}
onWindowStageCreate(windowStage) {
// Main window is created,set main page for this ability
windowStage.setUlContent(this.context,"pages/index",this.storage)
}
onWindowStageDestroy() {
// Main window is destroyed,release Ul related resources
console.log("[Demo] MainAbility onWindoeStageDestroy")
}
onForeground() {
// Ability has brought to foreground
console.log("[Demo] MainAbility onForeground")
}
onBackground() {
// Ability has back to background
console.log("[Demo] MainAbility onBackground")
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册