diff --git a/api/@ohos.pasteboard.d.ts b/api/@ohos.pasteboard.d.ts index 009dbd913..aa6209387 100755 --- a/api/@ohos.pasteboard.d.ts +++ b/api/@ohos.pasteboard.d.ts @@ -1111,7 +1111,6 @@ declare namespace pasteboard { /** * Gets pastedata from the system pasteboard. - * @permission ohos.permission.READ_PASTEBOARD * @param { AsyncCallback } 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 } 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 } callback - the callback of getData. + * @permission ohos.permission.READ_PASTEBOARD * @throws { BusinessError } 401 - if type of callback is not AsyncCallback. * @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 } the promise returned by the getData. * @throws { BusinessError } 12900003 - Another copy or paste is in progress. * @syscap SystemCapability.MiscServices.Pasteboard