diff options
author | Svet Ganov <svetoslavganov@google.com> | 2015-06-11 02:46:45 -0700 |
---|---|---|
committer | Svet Ganov <svetoslavganov@google.com> | 2015-06-11 03:32:09 -0700 |
commit | 5772b5c671a13d9c4bbc1e3803667166f811cb33 (patch) | |
tree | 7b34208ba313c6e613b42d9c612eef4ca1627389 /core/java/android/printservice | |
parent | e545bd36a483b51ef681ea063f7bda9352adb4d4 (diff) | |
download | frameworks_base-5772b5c671a13d9c4bbc1e3803667166f811cb33.zip frameworks_base-5772b5c671a13d9c4bbc1e3803667166f811cb33.tar.gz frameworks_base-5772b5c671a13d9c4bbc1e3803667166f811cb33.tar.bz2 |
Propagete document meta-data to custom print UI.
Change-Id: I3f122224e1b311a222969253ae0336177989a414
Diffstat (limited to 'core/java/android/printservice')
-rw-r--r-- | core/java/android/printservice/PrintService.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/java/android/printservice/PrintService.java b/core/java/android/printservice/PrintService.java index 527c8ae..6295822 100644 --- a/core/java/android/printservice/PrintService.java +++ b/core/java/android/printservice/PrintService.java @@ -231,6 +231,19 @@ public abstract class PrintService extends Service { */ public static final String EXTRA_PRINTER_INFO = "android.intent.extra.print.EXTRA_PRINTER_INFO"; + /** + * If you declared an optional activity with advanced print options via the + * {@link android.R.attr#advancedPrintOptionsActivity advancedPrintOptionsActivity} + * attribute, this extra is used to pass in the meta-data for the currently printed + * document as a {@link android.print.PrintDocumentInfo} to your activity allowing + * you to inspect it. + * + * @see #EXTRA_PRINT_JOB_INFO + * @see #EXTRA_PRINTER_INFO + */ + public static final String EXTRA_PRINT_DOCUMENT_INFO = + "android.printservice.extra.PRINT_DOCUMENT_INFO"; + private Handler mHandler; private IPrintServiceClient mClient; |