ChromePrinting class

Properties

hashCode int
The hash code for this object.
no setterinherited
isAvailable bool
no setter
maxGetPrinterInfoCallsPerMinute int
The maximum number of times that getPrinterInfo can be called per minute.
no setter
maxSubmitJobCallsPerMinute int
The maximum number of times that submitJob can be called per minute.
no setter
onJobStatusChanged EventStream<OnJobStatusChangedEvent>
Event fired when the status of the job is changed. This is only fired for the jobs created by this extension.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelJob(String jobId) Future<void>
Cancels previously submitted job. |jobId|: The id of the print job to cancel. This should be the same id received in a SubmitJobResponse.
getPrinterInfo(String printerId) Future<GetPrinterInfoResponse>
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.
getPrinters() Future<List<Printer>>
Returns the list of available printers on the device. This includes manually added, enterprise and discovered printers.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
submitJob(SubmitJobRequest request) Future<SubmitJobResponse>
Submits the job for printing. If the extension is not listed in the PrintingAPIExtensionsAllowlist policy, the user is prompted to accept the print job.
Before Chrome 120, this function did not return a promise.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited