Crate ohos_pasteboard_sys

Crate ohos_pasteboard_sys 

Source
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_Pasteboardapi-13
Represents the Pasteboard information.
OH_PasteboardObserverapi-13
Defines the Pasteboard subscriber information
PASTEBOARD_ErrCodeapi-13
Enumerates the error codes.
Pasteboard_FileConflictOptionsapi-15
Enumerates the types of file confilct options when getting data from the Pastedboard.
Pasteboard_GetDataParamsapi-15
Represents the pasteboard get data parameters when getting data from Pasteboard.
Pasteboard_NotifyTypeapi-13
Enumerates the types of data changes that can be observed.
Pasteboard_ProgressIndicatorapi-15
Enumerates the types of progress indicator when getting data from the Pastedboard.
Pasteboard_ProgressInfoapi-15
Represents the Pasteboard progress information.

Functions§

OH_PasteboardObserver_Createapi-13
Creates a OH_PasteboardObserver instance.
OH_PasteboardObserver_Destroyapi-13
Destroy a OH_PasteboardObserver instance.
OH_PasteboardObserver_SetDataapi-13
Sets a callback function to return the Pasteboard data changed.
OH_Pasteboard_ClearDataapi-13
Clears the data in the Pastedboard.
OH_Pasteboard_Createapi-13
Creates a OH_Pasteboard instance.
OH_Pasteboard_Destroyapi-13
Destroy a OH_Pasteboard instance.
OH_Pasteboard_GetChangeCountapi-18
Gets the number of Pasteboard data changes.
OH_Pasteboard_GetDataapi-13
Obtains data from the Pasteboard.
OH_Pasteboard_GetDataParams_Createapi-15
Create a pointer to the instance of the Pasteboard_GetDataParams.
OH_Pasteboard_GetDataParams_Destroyapi-15
Destroy a pointer that points to an instance of Pasteboard_GetDataParams.
OH_Pasteboard_GetDataParams_SetDestUriapi-15
Set the destination uri to the Pasteboard_GetDataParams.
OH_Pasteboard_GetDataParams_SetFileConflictOptionsapi-15
Set the file conflict options to the Pasteboard_GetDataParams.
OH_Pasteboard_GetDataParams_SetProgressIndicatorapi-15
Set the progress indicator to the Pasteboard_GetDataParams.
OH_Pasteboard_GetDataParams_SetProgressListenerapi-15
Set the progress indicator to the Pasteboard_GetDataParams.
OH_Pasteboard_GetDataSourceapi-13
Obtains the source of Pasteboard data.
OH_Pasteboard_GetDataWithProgressapi-15
Obtains data from the Pasteboard with system progress indicator.
OH_Pasteboard_GetMimeTypesapi-14
Obtains all MIME types of Pasteboard data.
OH_Pasteboard_HasDataapi-13
Checks whether there is data in the Pasteboard.
OH_Pasteboard_HasTypeapi-13
Checks whether the Pasteboard has the specified type of data.
OH_Pasteboard_IsRemoteDataapi-13
Checks whether the Pasteboard data is from a remote device.
OH_Pasteboard_ProgressCancelapi-15
Defines the cancel function used to cancel the progress when getting PasteData.
OH_Pasteboard_ProgressInfo_GetProgressapi-15
Get the progress from the Pasteboard_ProgressInfo.
OH_Pasteboard_SetDataapi-13
Writes data to the Pasteboard.
OH_Pasteboard_Subscribeapi-13
Subscribes to the Pasteboard data change.
OH_Pasteboard_SyncDelayedDataAsyncapi-21
Notifies the system pasteboard to synchronize all time-lapse paste data from application.
OH_Pasteboard_Unsubscribeapi-13
Unsubscribes from the Pasteboard data change.

Type Aliases§

OH_Pasteboard_ProgressListenerapi-15
Defines the callback function used to return the progress information when getting PasteData.
Pasteboard_Finalizeapi-13
Defines the callback function used free the context.
Pasteboard_Notifyapi-13
Defines the callback function used to return the Pasteboard data changed.