Liking cljdoc? Tell your friends :D

chromex.ext.printing

clj

Use the chrome.printing API to send print jobs to printers installed on Chromebook.

Use the chrome.printing API to send print jobs to printers
installed on Chromebook.

  * available since Chrome 80
  * https://developer.chrome.com/extensions/printing
raw docstring

api-tableclj

source

gen-callclj

source

gen-wrapclj/smacro

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

get-printersclj/smacro

(get-printers)

Returns the list of available printers on the device. This includes manually added, enterprise and discovered printers.

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 [printers] where:

|printers| - https://developer.chrome.com/extensions/printing#property-callback-printers.

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/extensions/printing#method-getPrinters.

Returns the list of available printers on the device. This includes manually added, enterprise and discovered printers.

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 [printers] where:

  |printers| - https://developer.chrome.com/extensions/printing#property-callback-printers.

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/extensions/printing#method-getPrinters.
sourceraw docstring

get-printers*cljs

(get-printers* config)
source

on-job-status-changed*cljs

(on-job-status-changed* config channel & args)
source

tap-all-eventsclj/smacro

(tap-all-events chan)

Taps all valid non-deprecated events in chromex.ext.printing namespace.

Taps all valid non-deprecated events in chromex.ext.printing namespace.
sourceraw docstring

tap-on-job-status-changed-eventsclj/smacro

(tap-on-job-status-changed-events channel & args)

Event fired when the status of the job is changed. This is only fired for the jobs created by this extension.

Events will be put on the |channel| with signature [::on-job-status-changed [job-id status]] where:

|job-id| - https://developer.chrome.com/extensions/printing#property-onJobStatusChanged-jobId. |status| - https://developer.chrome.com/extensions/printing#property-onJobStatusChanged-status.

Note: |args| will be passed as additional parameters into Chrome event's .addListener call.

https://developer.chrome.com/extensions/printing#event-onJobStatusChanged.

Event fired when the status of the job is changed. This is only fired for the jobs created by this extension.

Events will be put on the |channel| with signature [::on-job-status-changed [job-id status]] where:

  |job-id| - https://developer.chrome.com/extensions/printing#property-onJobStatusChanged-jobId.
  |status| - https://developer.chrome.com/extensions/printing#property-onJobStatusChanged-status.

Note: |args| will be passed as additional parameters into Chrome event's .addListener call.

https://developer.chrome.com/extensions/printing#event-onJobStatusChanged.
sourceraw docstring

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

× close