Liking cljdoc? Tell your friends :D

chromex.app.clipboard

clj

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 87
  * https://developer.chrome.com/apps/clipboard
raw docstring

api-tableclj

source

gen-callclj

source

gen-wrapclj/smacro

(gen-wrap kind item-id config & args)
source

on-clipboard-data-changed*cljs

(on-clipboard-data-changed* config channel & args)
source

set-image-dataclj/smacro

(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.
sourceraw docstring

set-image-data*cljs

(set-image-data* config image-data type additional-items)
source

tap-all-eventsclj/smacro

(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.
sourceraw docstring

tap-on-clipboard-data-changed-eventsclj/smacro

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close