mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
Added interface for copying text to clipboard (#12029)
* Added interface for copying text to clipboard * Bind the context to the function
This commit is contained in:
@@ -6,4 +6,5 @@ export const native = {
|
||||
zipUtils: globalJsb.zipUtils,
|
||||
fileUtils: globalJsb.fileUtils,
|
||||
DebugRenderer: globalJsb.DebugRenderer,
|
||||
copyTextToClipboard: globalJsb.copyTextToClipboard?.bind(globalJsb),
|
||||
};
|
||||
|
||||
@@ -36,6 +36,12 @@ export declare namespace native {
|
||||
*/
|
||||
export type DownloaderTask = { requestURL: string, storagePath: string, identifier: string };
|
||||
|
||||
/**
|
||||
* @en Copy text to clipboard @zh 拷贝字符串到剪切板
|
||||
* @param text
|
||||
*/
|
||||
export function copyTextToClipboard(text:string): void;
|
||||
|
||||
/**
|
||||
* @en DownloaderHints @zh 下载任务的配置接口
|
||||
* @param countOfMaxProcessingTasks
|
||||
|
||||
Reference in New Issue
Block a user