mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 09:22:53 +00:00
!12979 新增接口 为应用提供按需关闭通道的能力
Merge pull request !12979 from zhiyihang/master
This commit is contained in:
commit
d1e91643ff
16
api/@ohos.pasteboard.d.ts
vendored
16
api/@ohos.pasteboard.d.ts
vendored
@ -1013,6 +1013,20 @@ declare namespace pasteboard {
|
||||
* @since 11
|
||||
*/
|
||||
replaceRecord(index: number, record: PasteDataRecord): void;
|
||||
|
||||
/**
|
||||
* Utilized to notify pasteboard service while reading PasteData, in this case, the service will help to preserve the context and resources
|
||||
* @syscap SystemCapability.MiscServices.Pasteboard
|
||||
* @since 12
|
||||
*/
|
||||
pasteStart(): void;
|
||||
|
||||
/**
|
||||
* Invoked to notify pasteboard service the utilization of PasteData has completed and occupied resources can be released for further usage
|
||||
* @syscap SystemCapability.MiscServices.Pasteboard
|
||||
* @since 12
|
||||
*/
|
||||
pasteComplete(): void;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1476,7 +1490,7 @@ declare namespace pasteboard {
|
||||
|
||||
/**
|
||||
* Removes the unified ShareOptions of your application.
|
||||
*
|
||||
*
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @syscap SystemCapability.MiscServices.Pasteboard
|
||||
* @systemapi
|
||||
|
Loading…
Reference in New Issue
Block a user