Package com.pspdfkit.document.printing
Class PrintActivity
-
- All Implemented Interfaces:
-
android.content.ComponentCallbacks
,android.content.ComponentCallbacks2
,android.view.KeyEvent.Callback
,android.view.LayoutInflater.Factory
,android.view.LayoutInflater.Factory2
,android.view.View.OnCreateContextMenuListener
,android.view.Window.Callback
public class PrintActivity extends Activity
Container for system print dialog.
As of now it is not possible to restore print attributes after orientation change. To work around this issue we use separate activity that is not restarted on orientations change as context for printing.
-
-
Constructor Summary
Constructors Constructor Description PrintActivity()
-
Method Summary
Modifier and Type Method Description static Intent
getStartIntent(@NonNull() Context context, @NonNull() PdfDocument document, @Nullable() PrintOptions printOptions, @Nullable() PdfProcessorTask processorTask)
Gets intent for starting the print activity. -
-
Method Detail
-
getStartIntent
@NonNull() static Intent getStartIntent(@NonNull() Context context, @NonNull() PdfDocument document, @Nullable() PrintOptions printOptions, @Nullable() PdfProcessorTask processorTask)
Gets intent for starting the print activity.
- Parameters:
context
- The context to use.document
- Document for printing.printOptions
- Options for processing document before printing.processorTask
- Processing task for processing document before printing.
-
-
-
-