A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.chrome.com/docs/extensions/reference/api/printingMetrics below:

chrome.printingMetrics | API | Chrome for Developers

chrome.printingMetrics

Stay organized with collections Save and categorize content based on your preferences.

Important: This API works only on ChromeOS. Description

Use the chrome.printingMetrics API to fetch data about printing usage.

Permissions

printingMetrics

Availability Types Enum

"BLACK_AND_WHITE"
Specifies that black and white mode was used.

"COLOR"
Specifies that color mode was used.

Enum

"ONE_SIDED"
Specifies that one-sided printing was used.

"TWO_SIDED_LONG_EDGE"
Specifies that two-sided printing was used, flipping on long edge.

"TWO_SIDED_SHORT_EDGE"
Specifies that two-sided printing was used, flipping on short edge.

Properties Properties

PrinterSource

The source of the printer.

Enum

"USER"
Specifies that the printer was added by user.

"POLICY"
Specifies that the printer was added via policy.

Properties

PrintJobSource

The source of the print job.

Enum

"PRINT_PREVIEW"
Specifies that the job was created from the Print Preview page initiated by the user.

"ANDROID_APP"
Specifies that the job was created from an Android App.

"EXTENSION"
Specifies that the job was created by extension via Chrome API.

"ISOLATED_WEB_APP"
Specifies that the job was created by an Isolated Web App via API.

PrintJobStatus

Specifies the final status of the print job.

Enum

"FAILED"
Specifies that the print job was interrupted due to some error.

"CANCELED"
Specifies that the print job was canceled by the user or via API.

"PRINTED"
Specifies that the print job was printed without any errors.

Properties Methods

getPrintJobs()

chrome.printingMetrics.getPrintJobs(): Promise<PrintJobInfo[]>

Returns the list of the finished print jobs.

Events

onPrintJobFinished

chrome.printingMetrics.onPrintJobFinished.addListener(
  callback: function,
)

Event fired when the print job is finished. This includes any of termination statuses: FAILED, CANCELED and PRINTED.

Parameters

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-11 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-11 UTC."],[],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4