Lines Matching defs:OH_PasteboardObserver
87 typedef struct OH_PasteboardObserver OH_PasteboardObserver;
90 * @brief Creates a {@link OH_PasteboardObserver} instance.
92 * @return Returns the pointer to the {@link OH_PasteboardObserver} instance created if the operation is successful.
94 * @see OH_PasteboardObserver.
97 OH_PasteboardObserver* OH_PasteboardObserver_Create();
100 * @brief Destroy a {@link OH_PasteboardObserver} instance.
102 * @param observer Pointer to the {@link OH_PasteboardObserver} instance to destroy.
106 * @see OH_PasteboardObserver PASTEBOARD_ErrCode.
109 int OH_PasteboardObserver_Destroy(OH_PasteboardObserver* observer);
114 * @param observer Pointer to the {@link OH_PasteboardObserver} instance.
122 * @see OH_PasteboardObserver Pasteboard_Notify PASTEBOARD_ErrCode.
125 int OH_PasteboardObserver_SetData(OH_PasteboardObserver* observer, void* context,
160 * reporting the pasteboard data change. For details, see {@link OH_PasteboardObserver}.
164 * @see OH_Pasteboard OH_PasteboardObserver PASTEBOARD_ErrCode.
167 int OH_Pasteboard_Subscribe(OH_Pasteboard* pasteboard, int type, const OH_PasteboardObserver* observer);
175 * reporting the pasteboard data change. For details, see {@link OH_PasteboardObserver}.
179 * @see OH_Pasteboard OH_PasteboardObserver PASTEBOARD_ErrCode.
182 int OH_Pasteboard_Unsubscribe(OH_Pasteboard* pasteboard, int type, const OH_PasteboardObserver* observer);