Available on crate feature
api-12 only.Expand description
Clipboard / Pasteboard bindings for OpenHarmony
§Feature flags
api-12— API-12 is the minimum API-level required for the pasteboard.api-16— Enables bindings for OpenHarmony API-level 16.api-17— Enables bindings for OpenHarmony API-level 17.api-18— Enables bindings for OpenHarmony API-level 18 (5.1.0).api-19— Enables bindings for OpenHarmony API-level 19.api-20— Enables bindings for OpenHarmony API-level 20.api-21— Enables bindings for OpenHarmony API-level 21.document-features— Document available features when building the documentation
Structs§
- OH_
Pasteboard api-13 - Represents the Pasteboard information.
- OH_
Pasteboard Observer api-13 - Defines the Pasteboard subscriber information
- PASTEBOARD_
ErrCode api-13 - Enumerates the error codes.
- Pasteboard_
File Conflict Options api-15 - Enumerates the types of file confilct options when getting data from the Pastedboard.
- Pasteboard_
GetData Params api-15 - Represents the pasteboard get data parameters when getting data from Pasteboard.
- Pasteboard_
Notify Type api-13 - Enumerates the types of data changes that can be observed.
- Pasteboard_
Progress Indicator api-15 - Enumerates the types of progress indicator when getting data from the Pastedboard.
- Pasteboard_
Progress Info api-15 - Represents the Pasteboard progress information.
Functions§
- OH_
Pasteboard ⚠Observer_ Create api-13 - Creates a
OH_PasteboardObserverinstance. - OH_
Pasteboard ⚠Observer_ Destroy api-13 - Destroy a
OH_PasteboardObserverinstance. - OH_
Pasteboard ⚠Observer_ SetData api-13 - Sets a callback function to return the Pasteboard data changed.
- OH_
Pasteboard_ ⚠Clear Data api-13 - Clears the data in the Pastedboard.
- OH_
Pasteboard_ ⚠Create api-13 - Creates a
OH_Pasteboardinstance. - OH_
Pasteboard_ ⚠Destroy api-13 - Destroy a
OH_Pasteboardinstance. - OH_
Pasteboard_ ⚠GetChange Count api-18 - Gets the number of Pasteboard data changes.
- OH_
Pasteboard_ ⚠GetData api-13 - Obtains data from the Pasteboard.
- OH_
Pasteboard_ ⚠GetData Params_ Create api-15 - Create a pointer to the instance of the
Pasteboard_GetDataParams. - OH_
Pasteboard_ ⚠GetData Params_ Destroy api-15 - Destroy a pointer that points to an instance of
Pasteboard_GetDataParams. - OH_
Pasteboard_ ⚠GetData Params_ SetDest Uri api-15 - Set the destination uri to the
Pasteboard_GetDataParams. - OH_
Pasteboard_ ⚠GetData Params_ SetFile Conflict Options api-15 - Set the file conflict options to the
Pasteboard_GetDataParams. - OH_
Pasteboard_ ⚠GetData Params_ SetProgress Indicator api-15 - Set the progress indicator to the
Pasteboard_GetDataParams. - OH_
Pasteboard_ ⚠GetData Params_ SetProgress Listener api-15 - Set the progress indicator to the
Pasteboard_GetDataParams. - OH_
Pasteboard_ ⚠GetData Source api-13 - Obtains the source of Pasteboard data.
- OH_
Pasteboard_ ⚠GetData With Progress api-15 - Obtains data from the Pasteboard with system progress indicator.
- OH_
Pasteboard_ ⚠GetMime Types api-14 - Obtains all MIME types of Pasteboard data.
- OH_
Pasteboard_ ⚠HasData api-13 - Checks whether there is data in the Pasteboard.
- OH_
Pasteboard_ ⚠HasType api-13 - Checks whether the Pasteboard has the specified type of data.
- OH_
Pasteboard_ ⚠IsRemote Data api-13 - Checks whether the Pasteboard data is from a remote device.
- OH_
Pasteboard_ ⚠Progress Cancel api-15 - Defines the cancel function used to cancel the progress when getting PasteData.
- OH_
Pasteboard_ ⚠Progress Info_ GetProgress api-15 - Get the progress from the
Pasteboard_ProgressInfo. - OH_
Pasteboard_ ⚠SetData api-13 - Writes data to the Pasteboard.
- OH_
Pasteboard_ ⚠Subscribe api-13 - Subscribes to the Pasteboard data change.
- OH_
Pasteboard_ ⚠Sync Delayed Data Async api-21 - Notifies the system pasteboard to synchronize all time-lapse paste data from application.
- OH_
Pasteboard_ ⚠Unsubscribe api-13 - Unsubscribes from the Pasteboard data change.
Type Aliases§
- OH_
Pasteboard_ Progress Listener api-15 - Defines the callback function used to return the progress information when getting PasteData.
- Pasteboard_
Finalize api-13 - Defines the callback function used free the context.
- Pasteboard_
Notify api-13 - Defines the callback function used to return the Pasteboard data changed.