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 81
  * https://developer.chrome.com/extensions/printing
raw docstring

api-tableclj

source

cancel-jobclj/smacro

(cancel-job job-id)

Cancels previously submitted job.

|job-id| - The id of the print job to cancel. This should be the same id received in a 'SubmitJobResponse'.

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

Cancels previously submitted job.

  |job-id| - The id of the print job to cancel. This should be the same id received in a 'SubmitJobResponse'.

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

cancel-job*cljs

(cancel-job* config job-id)
source

gen-callclj

source

gen-wrapclj/smacro

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

get-max-get-printer-info-calls-per-minuteclj/smacro

(get-max-get-printer-info-calls-per-minute)

The maximum number of times that 'getPrinterInfo' can be called per minute.

https://developer.chrome.com/extensions/printing#property-MAX_GET_PRINTER_INFO_CALLS_PER_MINUTE.

The maximum number of times that 'getPrinterInfo' can be called per minute.

https://developer.chrome.com/extensions/printing#property-MAX_GET_PRINTER_INFO_CALLS_PER_MINUTE.
sourceraw docstring

get-max-submit-job-calls-per-minuteclj/smacro

(get-max-submit-job-calls-per-minute)

The maximum number of times that 'submitJob' can be called per minute.

https://developer.chrome.com/extensions/printing#property-MAX_SUBMIT_JOB_CALLS_PER_MINUTE.

The maximum number of times that 'submitJob' can be called per minute.

https://developer.chrome.com/extensions/printing#property-MAX_SUBMIT_JOB_CALLS_PER_MINUTE.
sourceraw docstring

get-printer-infoclj/smacro

(get-printer-info printer-id)

Returns the status and capabilities of the printer in CDD format. This call will fail with a runtime error if no printers with given id are installed.

|printer-id| - https://developer.chrome.com/extensions/printing#property-getPrinterInfo-printerId.

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

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

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-getPrinterInfo.

Returns the status and capabilities of the printer in  CDD format. This call will fail with a runtime error if no printers
with given id are installed.

  |printer-id| - https://developer.chrome.com/extensions/printing#property-getPrinterInfo-printerId.

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

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

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

get-printer-info*cljs

(get-printer-info* config printer-id)
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

max-get-printer-info-calls-per-minute*cljs

(max-get-printer-info-calls-per-minute* config)
source

max-submit-job-calls-per-minute*cljs

(max-submit-job-calls-per-minute* config)
source

on-job-status-changed*cljs

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

submit-jobclj/smacro

(submit-job request)

Submits the job for print. If the extension is not listed in PrintingAPIExtensionsAllowlist policy, the user will be prompted to accept the print job.

|request| - https://developer.chrome.com/extensions/printing#property-submitJob-request.

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

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

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-submitJob.

Submits the job for print. If the extension is not listed in PrintingAPIExtensionsAllowlist policy, the user will be
prompted to accept the print job.

  |request| - https://developer.chrome.com/extensions/printing#property-submitJob-request.

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

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

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

submit-job*cljs

(submit-job* config request)
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