mirror of
https://gitee.com/openharmony/applications_app_samples
synced 2024-11-28 03:00:49 +00:00
AbilityFeature应用readme修改
Signed-off-by: yanhuan <yanhuan15@huawei.com>
This commit is contained in:
parent
76683b5638
commit
d6a03ba993
@ -32,7 +32,7 @@
|
||||
|
||||
3.应用隐式启动个数为0时,才触发提示弹框的特性
|
||||
|
||||
点击'隐式启动弹窗'的ListItem,弹出Toast提示'隐式启动弹窗',并且弹出弹窗,弹窗标题为'未找到文件' ,点击'隐式启动不弹窗'
|
||||
点击'隐式启动弹窗'的ListItem,弹出弹窗,弹窗标题为'未找到文件' ,点击'隐式启动不弹窗'
|
||||
的ListItem,弹出Toast提示'隐式启动不弹窗',且无弹窗
|
||||
|
||||
4.应用清理自己的数据的能力
|
||||
|
@ -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 });
|
||||
|
Loading…
Reference in New Issue
Block a user