Lines Matching defs:print

17 package android.print;
41 import android.print.PrintDocumentAdapter.LayoutResultCallback;
42 import android.print.PrintDocumentAdapter.WriteResultCallback;
68 * should be laid out for the currently selected print options resulting in an
72 * when the user selects some options from the print UI that may affect the way
81 * Print jobs are started by calling the {@link #print(String, PrintDocumentAdapter,
82 * PrintAttributes)} from an activity which results in bringing up the system print
83 * UI. Once the print UI is up, when the user changes a selected print option that
94 * Active print jobs, ones that are not cancelled or completed, are considered failed
96 * choose to restart such print jobs. Once a print job is queued all relevant content
101 * An applications can query the print spooler for current print jobs it created
102 * but not print jobs created by other applications.
119 * Package name of print spooler.
151 * The action for launching the print dialog activity.
155 public static final String ACTION_PRINT_DIALOG = "android.print.PRINT_DIALOG";
158 * Extra with the intent for starting the print dialog.
166 "android.print.intent.extra.EXTRA_PRINT_DIALOG_INTENT";
169 * Extra with a print job.
171 * <strong>Type:</strong> {@link android.print.PrintJobInfo}
177 "android.print.intent.extra.EXTRA_PRINT_JOB";
180 * Extra with the print document adapter to be printed.
182 * <strong>Type:</strong> {@link android.print.IPrintDocumentAdapter}
188 "android.print.intent.extra.EXTRA_PRINT_DOCUMENT_ADAPTER";
215 * Callback notifying that a print job state changed.
217 * @param printJobId The print job id.
231 * Callback notifying that the print services changed.
245 * Callback notifying that the print service recommendations changed.
285 * Creates an instance that can access all print jobs.
287 * @param userId The user id for which to get all print jobs.
288 * @return An instance if the caller has the permission to access all print
294 Log.w(LOG_TAG, "Feature android.software.print not available");
309 * Adds a listener for observing the state of print jobs.
316 Log.w(LOG_TAG, "Feature android.software.print not available");
333 * Removes a listener for observing the state of print jobs.
340 Log.w(LOG_TAG, "Feature android.software.print not available");
363 * Gets a print job given its id.
365 * @param printJobId The id of the print job.
366 * @return The print job list.
372 Log.w(LOG_TAG, "Feature android.software.print not available");
393 * @see android.print.PrinterInfo.Builder#setHasCustomPrinterIcon(boolean)
398 Log.w(LOG_TAG, "Feature android.software.print not available");
409 * Gets the print jobs for this application.
411 * @return The print job list.
416 Log.w(LOG_TAG, "Feature android.software.print not available");
437 Log.w(LOG_TAG, "Feature android.software.print not available");
449 Log.w(LOG_TAG, "Feature android.software.print not available");
460 * Creates a print job for printing a {@link PrintDocumentAdapter} with
461 * default print attributes.
463 * Calling this method brings the print UI allowing the user to customize
464 * the print job and returns a {@link PrintJob} object without waiting for the
465 * user to customize or confirm the print job. The returned print job instance
469 * printing from a service will create an inconsistent user experience as the print
479 * The default print attributes are a hint to the system how the data is to
483 * selected the hinted options in the print dialog, given the current printer
487 * <strong>Note:</strong> Calling this method will bring the print dialog and
498 * @param printJobName A name for the new print job which is shown to the user.
499 * @param documentAdapter An adapter that emits the document to print.
500 * @param attributes The default print job attributes or <code>null</code>.
501 * @return The created print job on success or null on failure.
503 * @throws IllegalArgumentException If the print job name is empty or the
508 public @NonNull PrintJob print(@NonNull String printJobName,
512 Log.w(LOG_TAG, "Feature android.software.print not available");
516 throw new IllegalStateException("Can print only from an activity");
527 Bundle result = mService.print(printJobName, delegate,
539 Log.e(LOG_TAG, "Couldn't start print job config activity.", sie);
549 * Listen for changes to the installed and enabled print services.
554 * @see android.print.PrintManager#getPrintServices
569 Log.w(LOG_TAG, "Feature android.software.print not available");
586 * Stop listening for changes to the installed and enabled print services.
590 * @see android.print.PrintManager#getPrintServices
600 Log.w(LOG_TAG, "Feature android.software.print not available");
618 Log.e(LOG_TAG, "Error removing print services change listener", re);
623 * Gets the list of print services, but does not register for updates. The user has to register
629 * @return The print service list or an empty list.
653 * Listen for changes to the print service recommendations.
658 * @see android.print.PrintManager#getPrintServiceRecommendations
674 Log.w(LOG_TAG, "Feature android.software.print not available");
691 * Stop listening for changes to the print service recommendations.
695 * @see android.print.PrintManager#getPrintServiceRecommendations
706 Log.w(LOG_TAG, "Feature android.software.print not available");
729 * Gets the list of print service recommendations, but does not register for updates. The user
732 * @return The print service recommendations list or an empty list.
759 Log.w(LOG_TAG, "Feature android.software.print not available");
766 * Enable or disable a print service.
775 Log.w(LOG_TAG, "Feature android.software.print not available");
806 // triggered. Hence it is not save to print in this situation.
966 // notify the the print spooler so it can close the print dialog.
1137 + "finish the printing activity before print completion "
1167 + "finish the printing activity before print completion "
1191 + "finish the printing activity before print completion "
1237 + "finish the printing activity before print completion "
1270 + "finish the printing activity before print completion "
1294 + "finish the printing activity before print completion "