Use the chrome.printingMetrics API to fetch data about printing usage.
Use the chrome.printingMetrics API to fetch data about printing usage. * available since Chrome 79 * https://developer.chrome.com/extensions/printingMetrics
(get-print-jobs)
Returns the list of the finished print jobs.
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 [jobs] where:
|jobs| - https://developer.chrome.com/extensions/printingMetrics#property-callback-jobs.
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/printingMetrics#method-getPrintJobs.
Returns the list of the finished print jobs. 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 [jobs] where: |jobs| - https://developer.chrome.com/extensions/printingMetrics#property-callback-jobs. 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/printingMetrics#method-getPrintJobs.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.ext.printing-metrics namespace.
Taps all valid non-deprecated events in chromex.ext.printing-metrics namespace.
(tap-on-print-job-finished-events channel & args)
Event fired when the print job is finished. This includes any of termination statuses: FAILED, CANCELED and PRINTED.
Events will be put on the |channel| with signature [::on-print-job-finished [job-info]] where:
|job-info| - https://developer.chrome.com/extensions/printingMetrics#property-onPrintJobFinished-jobInfo.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
https://developer.chrome.com/extensions/printingMetrics#event-onPrintJobFinished.
Event fired when the print job is finished. This includes any of termination statuses: FAILED, CANCELED and PRINTED. Events will be put on the |channel| with signature [::on-print-job-finished [job-info]] where: |job-info| - https://developer.chrome.com/extensions/printingMetrics#property-onPrintJobFinished-jobInfo. Note: |args| will be passed as additional parameters into Chrome event's .addListener call. https://developer.chrome.com/extensions/printingMetrics#event-onPrintJobFinished.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close