AbilityFeature应用readme修改

Signed-off-by: yanhuan <yanhuan15@huawei.com>
This commit is contained in:
yanhuan 2024-05-09 19:28:37 +08:00
parent 76683b5638
commit d6a03ba993
2 changed files with 3 additions and 9 deletions

View File

@ -32,7 +32,7 @@
3.应用隐式启动个数为0时,才触发提示弹框的特性
点击'隐式启动弹窗'的ListItem弹出Toast提示'隐式启动弹窗',并且弹出弹窗,弹窗标题为'未找到文件' ,点击'隐式启动不弹窗'
点击'隐式启动弹窗'的ListItem弹出弹窗弹窗标题为'未找到文件' ,点击'隐式启动不弹窗'
的ListItem弹出Toast提示'隐式启动不弹窗',且无弹窗
4.应用清理自己的数据的能力

View File

@ -95,10 +95,7 @@ struct Index {
callback: () => {
this.context.startAbility({
action: "ohos.want.action.viewData",
type: "text/plain",
parameters: {
uri: "filePath"
}
type: "text/plain"
}, (error, data) => {
logger.info(`${TAG} startAbility end: ${JSON.stringify(error)}, ${JSON.stringify(data)}`);
})
@ -112,10 +109,7 @@ struct Index {
action: "ohos.want.action.viewData",
type: "text/plain",
// 设置flags为FLAG_START_WITHOUT_TIPS 隐式启动未找到时不弹窗
flags: wantConstant.Flags.FLAG_START_WITHOUT_TIPS,
parameters: {
uri: "filePath"
}
flags: wantConstant.Flags.FLAG_START_WITHOUT_TIPS
}, (error, data) => {
logger.info(`${TAG} startAbility end ${JSON.stringify(error)}, ${JSON.stringify(data)}`);
prompt.showToast({ message: $r('app.string.Implicit_Launch_not_Popup'), duration: 3000 });