Lines Matching refs:printer

33  * system during printer discovery. During printer discovery you are responsible
38 * performing printer discovery multiple times. You will receive a call to {@link
39 * PrinterDiscoverySession#onStartPrinterDiscovery(List)} to start printer
41 * to stop printer discovery. When the system is no longer interested in printers
58 * need to update some printers. It is possible that you add a printer without
60 * printers for their capabilities, rather querying the capabilities of a printer
61 * only if necessary. For example, the system will request that you update a printer
67 * printer you will receive a call to {@link #onStartPrinterStateTracking(PrinterId)}
69 * changes in the printer state and capabilities. You also <strong>must</strong>
70 * update the printer capabilities if you did not provide them when adding it, or
71 * the printer will be ignored. When the system is no longer interested in getting
72 * updates for a printer you will receive a call to {@link #onStopPrinterStateTracking(
129 * the printer that was added but not removed.
150 * Adds discovered printers. Adding an already added printer updates it.
215 * printer has no effect. Removed printers can be added again. You can
281 for (PrinterInfo printer : mPrinters.values()) {
282 PrinterInfo sentPrinter = mLastSentPrinters.get(printer.getId());
283 if (sentPrinter == null || !sentPrinter.equals(printer)) {
287 addedPrinters.add(printer);
324 * Callback asking you to start printer discovery. Discovered printers should be
329 * when you should stop printer discovery.
333 * However, if you were asked to start and then stop performing printer discovery
356 * Callback notifying you that you should stop printer discovery.
370 * the printer capabilities when updating the printers that do exist.
381 * Callback asking you to start tracking the state of a printer. Tracking
383 * of this printer and notify the system if that state changes via calling
386 * <strong>Note: </strong> A printer can be initially added without its
389 * printer <strong>including</strong> its capabilities. Otherwise, the
390 * printer will be ignored.
393 * A scenario when you may be requested to track a printer's state is if
394 * the user selects that printer and the system has to present print
395 * options UI based on the printer's capabilities. In this case the user
396 * should be promptly informed if, for example, the printer becomes
400 * @param printerId The printer to start tracking.
409 * Callback asking you to stop tracking the state of a printer. The passed
410 * in printer id is the one for which you received a call to {@link
413 * @param printerId The printer to stop tracking.
425 * if you should stop tracking a printer.
467 * Gets whether printer discovery is started.
469 * @return Whether printer discovery is destroyed.