mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
add permissions
Signed-off-by: z30053452 <zhiyihang1@huawei.com>
This commit is contained in:
parent
a2476b46c8
commit
6b6ec65554
4
api/@ohos.pasteboard.d.ts
vendored
4
api/@ohos.pasteboard.d.ts
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user