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
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close