未验证 提交 66a0fb33 编写于 作者: O openharmony_ci 提交者: Gitee

!2248 Intent、huawei字眼及超链接修改

Merge pull request !2248 from 葛亚芳/master
......@@ -99,8 +99,8 @@ createWantData(want:Want): PasteData
```
var object = {
bundleName: "com.huawei.aafwk.test",
abilityName: "com.huawei.aafwk.test.TwoAbility"
bundleName: "com.example.aafwk.test",
abilityName: "com.example.aafwk.test.TwoAbility"
};
var pasteData = pasteboard.createWantData(object);
```
......@@ -204,8 +204,8 @@ createWantRecord(want:Want): PasteDataRecord
```
var object = {
bundleName: "com.huawei.aafwk.test",
abilityName: "com.huawei.aafwk.test.TwoAbility"
bundleName: "com.example.aafwk.test",
abilityName: "com.example.aafwk.test.TwoAbility"
};
var record = pasteboard.createWantRecord(object);
```
......@@ -396,8 +396,8 @@ getPrimaryWant(): Want
```
var object = {
bundleName: "com.huawei.aafwk.test",
abilityName: "com.huawei.aafwk.test.TwoAbility"
bundleName: "com.example.aafwk.test",
abilityName: "com.example.aafwk.test.TwoAbility"
};
var pasteData = pasteboard.createWantData(object);
var want = pasteData.getPrimaryWant();
......@@ -476,7 +476,7 @@ addHtmlRecord(htmlText: string): void
addWantRecord(want: Want): void
向当前剪贴板内容中添加一条Want条目,并将MIMETYPE_TEXT_INTENT添加到[PasteDataProperty](#pastedataproperty7)的mimeTypes中。入参均不能为空,否则添加失败。
向当前剪贴板内容中添加一条Want条目,并将MIMETYPE_TEXT_WANT添加到[PasteDataProperty](#pastedataproperty7)的mimeTypes中。入参均不能为空,否则添加失败。
剪贴板内容中添加的条目达到数量上限128后,后续的添加操作无效。
......@@ -492,8 +492,8 @@ addWantRecord(want: Want): void
```
var pasteData = pasteboard.createPlainTextData("hello");
var object = {
bundleName: "com.huawei.aafwk.test",
abilityName: "com.huawei.aafwk.test.TwoAbility"
bundleName: "com.example.aafwk.test",
abilityName: "com.example.aafwk.test.TwoAbility"
};
pasteData.addWantRecord(object);
```
......
# 上传下载
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> - 从API Version 6开始,该接口不再维护,推荐使用新接口['@ohos.request'](https://developer.harmonyos.com/cn/docs/documentation/doc-references/js-apis-request-0000001123753962)。
> - 从API Version 6开始,该接口不再维护,推荐使用新接口['@ohos.request'](js-apis-request.md)。
>
> - 本模块首批接口从API version 4开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册