public class

PrintActivity

extends Activity
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ com.pspdfkit.document.printing.PrintActivity

Class Overview

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.

Summary

[Expand]
Inherited Constants
From class android.app.Activity
From class android.content.Context
From interface android.content.ComponentCallbacks2
[Expand]
Inherited Fields
From class android.app.Activity
Public Constructors
PrintActivity()
Public Methods
static Intent getStartIntent(Context context, PdfDocument document, PrintOptions printOptions, PdfProcessorTask processorTask)
Get intent for starting the print activity.
Protected Methods
void onCreate(Bundle savedInstanceState)
[Expand]
Inherited Methods
From class android.app.Activity
From class android.view.ContextThemeWrapper
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.content.ComponentCallbacks2
From interface android.view.KeyEvent.Callback
From interface android.view.LayoutInflater.Factory
From interface android.view.LayoutInflater.Factory2
From interface android.view.View.OnCreateContextMenuListener
From interface android.view.Window.Callback

Public Constructors

public PrintActivity ()

Public Methods

public static Intent getStartIntent (Context context, PdfDocument document, PrintOptions printOptions, PdfProcessorTask processorTask)

Get 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.

Protected Methods

protected void onCreate (Bundle savedInstanceState)