summaryrefslogtreecommitdiffstats
path: root/core/java/android/print/PrintDocumentAdapter.java
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2013-09-18 15:58:28 -0700
committerSvetoslav <svetoslavganov@google.com>2013-09-19 17:12:47 -0700
commit6811f4e92cbb64e72a0d13eb9b99b5894bd59c76 (patch)
tree5b0ebddf52a449b1ea84d91d6313e897a03e2b3e /core/java/android/print/PrintDocumentAdapter.java
parentf95c9aa7e1229963a4cb92eed46eafc205b03cb3 (diff)
downloadframeworks_base-6811f4e92cbb64e72a0d13eb9b99b5894bd59c76.zip
frameworks_base-6811f4e92cbb64e72a0d13eb9b99b5894bd59c76.tar.gz
frameworks_base-6811f4e92cbb64e72a0d13eb9b99b5894bd59c76.tar.bz2
Move PdfDocument to android.graphics.pdf
1. Move PdfDocument to android.graphics.pdf. 2. Changed the PdfDocument as per API concil request. 3. Updated the documentation. bug:10461180 bug:10552565 bug:10681585 bug:10552336 Change-Id: I08e15b34cf37bb064248c887e6f59808019cafe8
Diffstat (limited to 'core/java/android/print/PrintDocumentAdapter.java')
-rw-r--r--core/java/android/print/PrintDocumentAdapter.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/java/android/print/PrintDocumentAdapter.java b/core/java/android/print/PrintDocumentAdapter.java
index 8ac34c1..4113ac7 100644
--- a/core/java/android/print/PrintDocumentAdapter.java
+++ b/core/java/android/print/PrintDocumentAdapter.java
@@ -74,10 +74,10 @@ import android.os.ParcelFileDescriptor;
public abstract class PrintDocumentAdapter {
/**
- * Meta-data key: mapped to a boolean value that is <code>true</code> if
+ * Extra: mapped to a boolean value that is <code>true</code> if
* the current layout is for a print preview, <code>false</code> otherwise.
*/
- public static final String METADATA_KEY_PRINT_PREVIEW = "KEY_METADATA_PRINT_PREVIEW";
+ public static final String EXTRA_PRINT_PREVIEW = "EXTRA_PRINT_PREVIEW";
/**
* Called when printing starts. You can use this callback to allocate
@@ -112,15 +112,15 @@ public abstract class PrintDocumentAdapter {
* @param newAttributes The new print attributes.
* @param cancellationSignal Signal for observing cancel layout requests.
* @param callback Callback to inform the system for the layout result.
- * @param metadata Additional information about how layout the content.
+ * @param extras Additional information about how to layout the content.
*
* @see LayoutResultCallback
* @see CancellationSignal
- * @see #METADATA_KEY_PRINT_PREVIEW
+ * @see #EXTRA_PRINT_PREVIEW
*/
public abstract void onLayout(PrintAttributes oldAttributes, PrintAttributes newAttributes,
CancellationSignal cancellationSignal, LayoutResultCallback callback,
- Bundle metadata);
+ Bundle extras);
/**
* Called when specific pages of the content should be written in the