harmony 鸿蒙oh_pasteboard.h
oh_pasteboard.h
概述
提供访问系统剪贴板的接口、数据结构、枚举类型。
库: libpasteboard.so
引用文件:
系统能力: SystemCapability.MiscServices.Pasteboard
起始版本: 13
相关模块:Pasteboard
汇总
类型定义
名称 | 描述 |
---|---|
typedef enum Pasteboard_NotifyType Pasteboard_NotifyType | 剪贴板的数据变更类型。 |
typedef void(* Pasteboard_Notify) (void *context, Pasteboard_NotifyType type) | 定义剪贴板内容变更时触发的回调函数。 |
typedef void(* Pasteboard_Finalize) (void *context) | 定义用于释放上下文的回调函数,剪贴板数据变更观察者对象销毁时触发。 |
typedef struct OH_PasteboardObserver OH_PasteboardObserver | 定义剪贴板数据变更观察者。 |
typedef struct OH_Pasteboard OH_Pasteboard | 定义剪贴板对象,用以操作系统剪贴板。 |
typedef enum Pasteboard_FileConflictOptions Pasteboard_FileConflictOptions | 定义文件拷贝冲突时的选项。 |
typedef enum Pasteboard_ProgressIndicator Pasteboard_ProgressIndicator | 定义进度条指示选项,可选择是否采用系统默认进度显示。 |
typedef struct Pasteboard_ProgressInfo Pasteboard_ProgressInfo | 定义进度上报的数据结构,且仅当进度指示选项Pasteboard_ProgressIndicator设置为PASTEBOARD_NONE时才会上报此信息。 |
typedef void (* OH_Pasteboard_ProgressListener)(Pasteboard_ProgressInfo* progressInfo) | 定义获取进度数据的回调函数,当选择不使用系统默认进度显示时,可设置该项获取粘贴过程的进度。 |
typedef struct Pasteboard_GetDataParams Pasteboard_GetDataParams | 获取剪贴板数据支持进度提示时需要设置的参数,包含进度条指示选项、目标文件路径、文件冲突选项等。 |
枚举
名称 | 描述 |
---|---|
Pasteboard_NotifyType { [NOTIFY_LOCAL_DATA_CHANGE] = 1, [NOTIFY_REMOTE_DATA_CHANGE] = 2 } | 剪贴板的数据变更类型。 |
Pasteboard_FileConflictOptions { [PASTEBOARD_OVERWRITE] = 0, [PASTEBOARD_SKIP] = 1 } | 拷贝文件文件冲突时的选项。 |
Pasteboard_ProgressIndicator { [PASTEBOARD_NONE] = 0, [PASTEBOARD_DEFAULT] = 1 } | 从剪贴板获取数据时的进度条类型。 |
函数
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Basic Services Kit(基础服务)
harmony 鸿蒙Print_PrintAttributes
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦