public abstract class PrintJob extends Object implements Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
PrintJob.Builder |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static int |
FLAG_BILL
Indicate this print out is a bill of sale, transaction such as payments will not print out
|
static int |
FLAG_CUSTOMER
Print receipt for the customer with appropriate verbiage and without signature line
|
static int |
FLAG_EXPEDITOR
When this flag is set on a print job for an order receipt it will print subtitle
"Expo Receipt" or localized version of it.
|
static int |
FLAG_FORCE_SIGNATURE
Force customer signature line on print out even if normally not required
|
static int |
FLAG_FORCE_TIP
Force customer tip line on print out even if normally not required
|
static int |
FLAG_MERCHANT
Print receipt for the merchant with signature line if required
|
static int |
FLAG_NO_SIGNATURE
Do not show customer signature line on print out even if normally required
|
static int |
FLAG_NO_TIP |
static int |
FLAG_NONE |
static int |
FLAG_REFUND
Indicate this print job is for a refund, additional refund information will be included on print out
|
static int |
FLAG_REPRINT
Indicate this is a reprint on the print out
|
static int |
FLAG_SALE
Deprecated.
|
static int |
FLAG_UNLABELED_ITEMS
When this flag is set on a print job for an order receipt it will print subtitle
"Unlabeled Items" or localized version of it.
|
static int |
FLAG_USE_PRINT_GROUP
Enable the printing of print groups for the receipt.
|
int |
flags |
boolean |
printToAny
Indicate that this job should be printed to any available printer in case the default is
not available.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
protected |
PrintJob(int flags)
Deprecated.
|
protected |
PrintJob(Parcel in) |
protected |
PrintJob(PrintJob.Builder builder) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
int |
describeContents() |
abstract Category |
getPrinterCategory() |
void |
print(Context context,
Account account)
Send this PrintJob to the default printer.
|
void |
print(Context context,
Account account,
Printer printer)
Send this PrintJob to the specified printer.
|
void |
writeToParcel(Parcel dest,
int f) |
public static final int FLAG_NONE
public static final int FLAG_REPRINT
public static final int FLAG_BILL
@Deprecated public static final int FLAG_SALE
public static final int FLAG_REFUND
public static final int FLAG_NO_SIGNATURE
public static final int FLAG_FORCE_SIGNATURE
public static final int FLAG_CUSTOMER
public static final int FLAG_MERCHANT
public static final int FLAG_USE_PRINT_GROUP
public static final int FLAG_EXPEDITOR
Note : you can either set this flag FLAG_EXPEDITOR
or
FLAG_UNLABELED_ITEMS
but not both on a same print job
public static final int FLAG_UNLABELED_ITEMS
StaticOrderPrintJob.Builder.itemIds(ArrayList)
to pass list of unlabeled line item ids.
you can either set this flag or FLAG_UNLABELED_ITEMS
FLAG_EXPEDITOR
but not both on a same print job
public static final int FLAG_NO_TIP
public static final int FLAG_FORCE_TIP
public final int flags
public final boolean printToAny
@Deprecated protected PrintJob(int flags)
protected PrintJob(PrintJob.Builder builder)
protected PrintJob(Parcel in)
public abstract Category getPrinterCategory()
public void print(Context context, Account account)
public void print(Context context, Account account, Printer printer)
public void cancel()
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int f)
writeToParcel
in interface Parcelable