提交 77e08337 编写于 作者: K kirl75

提交onBackPress

Signed-off-by: Nkirl75 <kirl.liu@huawei.com>
上级 fa445de9
......@@ -52,6 +52,15 @@ export default class MainAbility extends Ability {
console.log("[Demo] MainAbility onBackground")
}
onContinue(wantParam){
console.log("[Demo] MainAbility onContinue")
return undefined;
}
onBackPressed(){
return false
}
onConfigurationUpdate(config) {
console.log('[Demo] MainAbility onConfigurationUpdate: ' + this.context.config.language)
console.log('[Demo] MainAbility onConfigurationUpdate: ' + config.language)
......
......@@ -26,7 +26,7 @@ import abilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry
import common from '@ohos.app.ability.common';
import contextConstant from "@ohos.app.ability.contextConstant"
import wantConstant from "@ohos.app.ability.wantConstant"
import formBindingData from '@ohos.application.formBindingData';
import formBindingData from '@ohos.app.form.formBindingData';
let EXTENSION_INFO_ERR = 16000001;
let INNER_ERROR = 16000050;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册