The chrome.clipboard API is provided to allow users to access data of the clipboard. This is a temporary solution for chromeos platform apps until open-web alternative is available. It will be deprecated once open-web solution is available, which could be in 2017 Q4.
The chrome.clipboard API is provided to allow users to access data of the clipboard. This is a temporary solution for chromeos platform apps until open-web alternative is available. It will be deprecated once open-web solution is available, which could be in 2017 Q4. * available since Chrome 77 * https://developer.chrome.com/apps/clipboard
(set-image-data image-data type)
(set-image-data image-data type additional-items)
Sets image data to clipboard.
|image-data| - The encoded image data. |type| - The type of image being passed. |additional-items| - Additional data items for describing image data. The callback is called with chrome.runtime.lastError set to error code if there is an error. Requires clipboard and clipboardWrite permissions.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/apps/clipboard#method-setImageData.
Sets image data to clipboard. |image-data| - The encoded image data. |type| - The type of image being passed. |additional-items| - Additional data items for describing image data. The callback is called with chrome.runtime.lastError set to error code if there is an error. Requires clipboard and clipboardWrite permissions. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/apps/clipboard#method-setImageData.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.app.clipboard namespace.
Taps all valid non-deprecated events in chromex.app.clipboard namespace.
(tap-on-clipboard-data-changed-events channel & args)
Fired when clipboard data changes. Requires clipboard and clipboardRead permissions for adding listener to chrome.clipboard.onClipboardDataChanged event. After this event fires, the clipboard data is available by calling document.execCommand('paste').
Events will be put on the |channel| with signature [::on-clipboard-data-changed []].
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
https://developer.chrome.com/apps/clipboard#event-onClipboardDataChanged.
Fired when clipboard data changes. Requires clipboard and clipboardRead permissions for adding listener to chrome.clipboard.onClipboardDataChanged event. After this event fires, the clipboard data is available by calling document.execCommand('paste'). Events will be put on the |channel| with signature [::on-clipboard-data-changed []]. Note: |args| will be passed as additional parameters into Chrome event's .addListener call. https://developer.chrome.com/apps/clipboard#event-onClipboardDataChanged.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close