Class PrintRequest
java.lang.Object
com.clover.remote.client.messages.BaseRequest
com.clover.remote.client.messages.PrintRequest
Request object for requesting a print job.
-
Constructor Summary
ConstructorsConstructorDescriptionPrintRequest(android.graphics.Bitmap image) Constructor Create a PrintRequest to print a given imagePrintRequest(android.graphics.Bitmap image, String printRequestId, String printDeviceId) Constructor Create a PrintRequest to print a given imagePrintRequest(String imageUrl) Constructor Create a PrintRequest to print a given imagePrintRequest(String imageUrl, String printRequestId, String printDeviceId) Constructor Create a PrintRequest to print an image at a given URLPrintRequest(List<String> text) Constructor Create a PrintRequest to print a given imagePrintRequest(List<String> text, String printRequestId, String printDeviceId) Constructor Create a PrintRequest to print an array of strings to print -
Method Summary
Modifier and TypeMethodDescriptionList<android.graphics.Bitmap>Get the field valueGet the field valueGet the field valueGet the field valuegetText()Get the field valuevoidsetPrintDeviceId(String printDeviceId) Set the field valuevoidsetPrintRequestId(String printRequestId) Set the field value
-
Constructor Details
-
PrintRequest
Constructor Create a PrintRequest to print a given image- Parameters:
image- Image to printprintRequestId- identifier to give to the print job, so it can be later queriedprintDeviceId- identifier to specify printer to use
-
PrintRequest
Constructor Create a PrintRequest to print an image at a given URL- Parameters:
imageUrl- URL to the image to printprintRequestId- identifier to give to the print job, so it can be later queriedprintDeviceId- identifier to specify printer to use
-
PrintRequest
Constructor Create a PrintRequest to print an array of strings to print- Parameters:
text- Array of strings to be printedprintRequestId- identifier to give to the print job, so it can be later queriedprintDeviceId- identifier to specify printer to use
-
PrintRequest
public PrintRequest(android.graphics.Bitmap image) Constructor Create a PrintRequest to print a given image- Parameters:
image- Image to print
-
PrintRequest
Constructor Create a PrintRequest to print a given image- Parameters:
imageUrl- URL to the image to print
-
PrintRequest
Constructor Create a PrintRequest to print a given image- Parameters:
text- Array of strings to be printed
-
-
Method Details
-
getImages
Get the field value- Returns:
- Image to print
-
getImageURLs
Get the field value- Returns:
- URL of image to print
-
getText
Get the field value- Returns:
- list of strings to be printed
-
getPrintRequestId
Get the field value- Returns:
- identifier to give to the print job, so it can later be queried
-
getPrintDeviceId
Get the field value- Returns:
- identifier to specify printer to use
-
setPrintRequestId
Set the field value- Parameters:
printRequestId- id of print job
-
setPrintDeviceId
Set the field value- Parameters:
printDeviceId- id of the printer
-