Package com.clover.sdk.v1.printer.job
Class ImagePrintJob2
- java.lang.Object
-
- com.clover.sdk.v1.printer.job.PrintJob
-
- com.clover.sdk.v1.printer.job.ImagePrintJob2
-
- All Implemented Interfaces:
Parcelable
public class ImagePrintJob2 extends PrintJob implements Parcelable
Create a PrintJob to print one or more bitmaps. If multiple bitmaps are provided they printed one after another vertically on the receipt. Bitmaps will be scaled down proportionally to the paper width as needed. TheImagePrintJob2.Builder.build()
performs blocking IO so it must be invoked on a background thread.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImagePrintJob2.Builder
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<ImagePrintJob2>
CREATOR
ArrayList<String>
imageFiles
For internal use only.static int
MAX_HEIGHT
-
Fields inherited from class com.clover.sdk.v1.printer.job.PrintJob
FLAG_BILL, FLAG_CUSTOMER, FLAG_EXPEDITOR, FLAG_FORCE_SIGNATURE, FLAG_FORCE_TIP, FLAG_MERCHANT, FLAG_NO_SIGNATURE, FLAG_NO_TIP, FLAG_NONE, FLAG_REFUND, FLAG_REPRINT, FLAG_SALE, FLAG_UNLABELED_ITEMS, FLAG_USE_PRINT_GROUP, flags, printToAny
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ImagePrintJob2(Parcel in)
protected
ImagePrintJob2(ImagePrintJob2.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Category
getPrinterCategory()
void
print(Context context, Account account, Printer printer)
Send this PrintJob to the specified printer.void
writeToParcel(Parcel dest, int flags)
-
Methods inherited from class com.clover.sdk.v1.printer.job.PrintJob
cancel, describeContents, print
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface android.os.Parcelable
describeContents
-
-
-
-
Field Detail
-
MAX_HEIGHT
public static final int MAX_HEIGHT
- See Also:
- Constant Field Values
-
CREATOR
public static final Parcelable.Creator<ImagePrintJob2> CREATOR
-
-
Constructor Detail
-
ImagePrintJob2
protected ImagePrintJob2(ImagePrintJob2.Builder builder)
-
ImagePrintJob2
protected ImagePrintJob2(Parcel in)
-
-
Method Detail
-
getPrinterCategory
public Category getPrinterCategory()
- Specified by:
getPrinterCategory
in classPrintJob
-
print
public void print(Context context, Account account, Printer printer)
Description copied from class:PrintJob
Send this PrintJob to the specified printer.
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceParcelable
- Overrides:
writeToParcel
in classPrintJob
-
-