public class PrintUtil
extends java.lang.Object
You will need to set the printJobData in order to invoke the print method.
Modifier and Type | Class and Description |
---|---|
static interface |
PrintUtil.PrintMetricsListener
This interface exists in order to pass print metrics back to the calling activity.
|
Modifier and Type | Field and Description |
---|---|
static boolean |
is4x5media |
static java.lang.String |
mediaSize4x5Label |
protected static PrintUtil.PrintMetricsListener |
metricsListener |
static java.lang.String |
PLAY_STORE_PRINT_SERVICES_URL |
static boolean |
showPluginHelper
Set this to false to disable plugin helper dialogs.
|
static boolean |
uniqueDeviceIdPerApp |
Constructor and Description |
---|
PrintUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
createPrintJob(Activity activity)
Directly create the android PrintJob.
|
static PrintJobData |
getPrintJobData()
Gets the printJobData.
|
static void |
print(Activity activity)
Call to start the HP Print SDK print flow.
|
static void |
setPrintJobData(PrintJobData printJobData)
Sets the printJobData.
|
public static final java.lang.String PLAY_STORE_PRINT_SERVICES_URL
protected static PrintUtil.PrintMetricsListener metricsListener
public static boolean is4x5media
public static final java.lang.String mediaSize4x5Label
public static boolean uniqueDeviceIdPerApp
public static boolean showPluginHelper
public static void print(Activity activity)
activity
- The calling activity.public static void createPrintJob(Activity activity)
print(Activity)
method.activity
- The calling activity.public static void setPrintJobData(PrintJobData printJobData)
printJobData
- The print job data object that you want to use.public static PrintJobData getPrintJobData()
setPrintJobData(PrintJobData)
otherwise it will return null.