summaryrefslogtreecommitdiffstats
path: root/core/java/android/printservice
diff options
context:
space:
mode:
authorSvet Ganov <svetoslavganov@google.com>2015-06-11 02:46:45 -0700
committerSvet Ganov <svetoslavganov@google.com>2015-06-11 03:32:09 -0700
commit5772b5c671a13d9c4bbc1e3803667166f811cb33 (patch)
tree7b34208ba313c6e613b42d9c612eef4ca1627389 /core/java/android/printservice
parente545bd36a483b51ef681ea063f7bda9352adb4d4 (diff)
downloadframeworks_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.java13
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;