Lines Matching defs:OH_PasteboardObserver
93 typedef struct OH_PasteboardObserver OH_PasteboardObserver;
96 * @brief Creates a {@link OH_PasteboardObserver} instance.
98 * @return Returns the pointer to the {@link OH_PasteboardObserver} instance created if the operation is successful.
100 * @see OH_PasteboardObserver.
103 OH_PasteboardObserver* OH_PasteboardObserver_Create();
106 * @brief Destroy a {@link OH_PasteboardObserver} instance.
108 * @param observer Pointer to the {@link OH_PasteboardObserver} instance to destroy.
112 * @see OH_PasteboardObserver PASTEBOARD_ErrCode.
115 int OH_PasteboardObserver_Destroy(OH_PasteboardObserver* observer);
120 * @param observer Pointer to the {@link OH_PasteboardObserver} instance.
128 * @see OH_PasteboardObserver Pasteboard_Notify PASTEBOARD_ErrCode.
131 int OH_PasteboardObserver_SetData(OH_PasteboardObserver* observer, void* context,
166 * reporting the pasteboard data change. For details, see {@link OH_PasteboardObserver}.
170 * @see OH_Pasteboard OH_PasteboardObserver PASTEBOARD_ErrCode.
173 int OH_Pasteboard_Subscribe(OH_Pasteboard* pasteboard, int type, const OH_PasteboardObserver* observer);
181 * reporting the pasteboard data change. For details, see {@link OH_PasteboardObserver}.
185 * @see OH_Pasteboard OH_PasteboardObserver PASTEBOARD_ErrCode.
188 int OH_Pasteboard_Unsubscribe(OH_Pasteboard* pasteboard, int type, const OH_PasteboardObserver* observer);