From 0eb31f27b19fcfaa3efd3973b7f4ca97ed2be202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=80=9D=E8=BF=9C?= Date: Sun, 31 Aug 2025 14:18:11 +0800 Subject: [PATCH] Interface: Pasteboard Sync Delayed Data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 朱思远 --- distributeddatamgr/pasteboard/include/oh_pasteboard.h | 10 ++++++++++ distributeddatamgr/pasteboard/libpasteboard.ndk.json | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/distributeddatamgr/pasteboard/include/oh_pasteboard.h b/distributeddatamgr/pasteboard/include/oh_pasteboard.h index 3218fff577e..3190b5c5829 100644 --- a/distributeddatamgr/pasteboard/include/oh_pasteboard.h +++ b/distributeddatamgr/pasteboard/include/oh_pasteboard.h @@ -441,6 +441,16 @@ void OH_Pasteboard_ProgressCancel(Pasteboard_GetDataParams* params); */ OH_UdmfData* OH_Pasteboard_GetDataWithProgress(OH_Pasteboard* pasteboard, Pasteboard_GetDataParams* params, int* status); + +/** + * @brief Notifies the system pasteboard to synchronize all time-lapse paste data from application. + * + * @param pasteboard Pointer to the {@link OH_Pasteboard} instance. + * @param callback Indicates the pointer to the callback that is called after the synchronize is finished. + * @since 21 + */ +void OH_Pasteboard_SyncDelayedDataAsync(OH_Pasteboard* pasteboard, void (*callback)(int errorCode)); + #ifdef __cplusplus }; #endif diff --git a/distributeddatamgr/pasteboard/libpasteboard.ndk.json b/distributeddatamgr/pasteboard/libpasteboard.ndk.json index 6b21588f7a0..84ec7a82593 100644 --- a/distributeddatamgr/pasteboard/libpasteboard.ndk.json +++ b/distributeddatamgr/pasteboard/libpasteboard.ndk.json @@ -98,6 +98,9 @@ { "first_introduced": "18", "name": "OH_Pasteboard_GetChangeCount" - + }, + { + "first_introduced": "21", + "name": "OH_Pasteboard_SyncDelayedDataAsync" } ] \ No newline at end of file -- Gitee