diff options
| author | Svetoslav Ganov <svetoslavganov@google.com> | 2013-09-05 02:27:32 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-09-05 02:27:32 +0000 |
| commit | adade10a5186636daaea50e90fddb50c3707d5ed (patch) | |
| tree | 99247c59311431fea448b789242371812e653a71 /core/java/android/print/PrintDocumentAdapter.java | |
| parent | 0e907e8350d01ea6d8093470fd5cf7d1ae008de3 (diff) | |
| parent | 19fba5d34a444ce145ab0d3a12c578d9d5d3f38c (diff) | |
| download | frameworks_base-adade10a5186636daaea50e90fddb50c3707d5ed.zip frameworks_base-adade10a5186636daaea50e90fddb50c3707d5ed.tar.gz frameworks_base-adade10a5186636daaea50e90fddb50c3707d5ed.tar.bz2 | |
Merge "KLP API Review: PrintDocumentAdapter documentation" into klp-dev
Diffstat (limited to 'core/java/android/print/PrintDocumentAdapter.java')
| -rw-r--r-- | core/java/android/print/PrintDocumentAdapter.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/core/java/android/print/PrintDocumentAdapter.java b/core/java/android/print/PrintDocumentAdapter.java index 33b4aad..8a59b6b 100644 --- a/core/java/android/print/PrintDocumentAdapter.java +++ b/core/java/android/print/PrintDocumentAdapter.java @@ -55,7 +55,7 @@ import java.util.List; * The APIs defined in this class are designed to enable doing part or all * of the work on an arbitrary thread. For example, if the printed content * does not depend on the UI state, i.e. on what is shown on the screen, then - * you can off load the entire work on a dedicated thread, thus making your + * you can offload the entire work on a dedicated thread, thus making your * application interactive while the print work is being performed. * </p> * <p> @@ -99,6 +99,7 @@ public abstract class PrintDocumentAdapter { * the last argument <code>true</code> or <code>false</code> depending on * whether the layout changed the content or not, respectively; and {@link * LayoutResultCallback#onLayoutFailed(CharSequence)}, if an error occurred. + * Note that you must call one of the methods of the given callback. * </p> * <p> * When doing a layout you may satisfy some of the constraints in the print @@ -147,13 +148,14 @@ public abstract class PrintDocumentAdapter { /** * Called when specific pages of the content should be written in the - * from of a PDF file to the given file descriptor. This method is invoked + * form of a PDF file to the given file descriptor. This method is invoked * on the main thread. *<p> * After you are done writing, you should close the file descriptor and - * invoke {@link WriteResultCallback #onWriteFinished(List)}, if writing + * invoke {@link WriteResultCallback #onWriteFinished(PageRange[]), if writing * completed successfully; or {@link WriteResultCallback#onWriteFailed( - * CharSequence)}, if an error occurred. + * CharSequence)}, if an error occurred. Note that you must call one of + * the methods of the given callback. * </p> * <p> * <strong>Note:</strong> If the printed content is large, it is a good |
