add permissions

Signed-off-by: z30053452 <zhiyihang1@huawei.com>
This commit is contained in:
z30053452 2024-03-18 10:14:07 +08:00
parent a2476b46c8
commit 6b6ec65554

View File

@ -1111,7 +1111,6 @@ declare namespace pasteboard {
/**
* Gets pastedata from the system pasteboard.
* @permission ohos.permission.READ_PASTEBOARD
* @param { AsyncCallback<PasteData> } callback - the callback of getData.
* @syscap SystemCapability.MiscServices.Pasteboard
* @since 6
@ -1122,7 +1121,6 @@ declare namespace pasteboard {
/**
* Gets pastedata from the system pasteboard.
* @permission ohos.permission.READ_PASTEBOARD
* @returns { Promise<PasteData> } the promise returned by the getData.
* @syscap SystemCapability.MiscServices.Pasteboard
* @since 6
@ -1142,6 +1140,7 @@ declare namespace pasteboard {
/**
* Gets pastedata from the system pasteboard.
* @param { AsyncCallback<PasteData> } callback - the callback of getData.
* @permission ohos.permission.READ_PASTEBOARD
* @throws { BusinessError } 401 - if type of callback is not AsyncCallback<PasteData>.
* @throws { BusinessError } 12900003 - Another copy or paste is in progress.
* @syscap SystemCapability.MiscServices.Pasteboard
@ -1159,6 +1158,7 @@ declare namespace pasteboard {
*/
/**
* Gets pastedata from the system pasteboard.
* @permission ohos.permission.READ_PASTEBOARD
* @returns { Promise<PasteData> } the promise returned by the getData.
* @throws { BusinessError } 12900003 - Another copy or paste is in progress.
* @syscap SystemCapability.MiscServices.Pasteboard