public abstract static class PrintJob.Builder extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
flags |
protected boolean |
printToAny |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract PrintJob |
build() |
PrintJob.Builder |
flag(int flag)
Appends a flag to this PrintJob.
|
PrintJob.Builder |
flags(int flags)
Deprecated.
|
PrintJob.Builder |
includePrintGroups(boolean includePrintGroups)
Toggle for enabling print groups for the receipt.
|
PrintJob.Builder |
printJob(PrintJob pj) |
PrintJob.Builder |
printToAny(boolean printToAny)
Indicate that this job should be printed to any available printer in case the default is
not available.
|
public PrintJob.Builder printJob(PrintJob pj)
@Deprecated public PrintJob.Builder flags(int flags)
public PrintJob.Builder flag(int flag)
PrintJob.FLAG_EXPEDITOR
and PrintJob.FLAG_UNLABELED_ITEMS
both cannot be set, otherwise it will throw IllegalArgumentException
public PrintJob.Builder includePrintGroups(boolean includePrintGroups)
PrintJob.FLAG_USE_PRINT_GROUP
public PrintJob.Builder printToAny(boolean printToAny)
public abstract PrintJob build()